feat(don): add payment method indicator in admin
Build and Push Image / build-backend (push) Successful in 2m32s
Build and Push Image / build-frontend (push) Successful in 3m40s
Build and Push Image / push (push) Successful in 1m10s

This commit is contained in:
2026-07-14 14:12:27 +07:00 Unverified
parent bceaf9e7f4
commit 745a9152d9
3 changed files with 16 additions and 1 deletions
+2
View File
@@ -347,6 +347,7 @@ export const guides = pgTable("guides", {
//#region Donate
export const schDonate = pgSchema("donate");
export const paymentMethod = schDonate.enum("payment_method", ["tmn", "pp"]);
export const donations = schDonate.table("donations", {
id: text().primaryKey().$defaultFn(uuidv7),
@@ -359,6 +360,7 @@ export const donations = schDonate.table("donations", {
lastPing: timestamp("last_ping").default(new Date("01-01-2000")).notNull(),
sent: boolean().default(false).notNull(),
uid: text(),
method: paymentMethod().notNull().default("pp"),
});
//#endregion