zen: support stripe link

This commit is contained in:
Frank
2025-10-16 14:59:44 -04:00
parent 1c1380d3c8
commit 7ec5e49e19
11 changed files with 960 additions and 10 deletions

View File

@@ -27,6 +27,7 @@ export namespace Billing {
.select({
customerID: BillingTable.customerID,
paymentMethodID: BillingTable.paymentMethodID,
paymentMethodType: BillingTable.paymentMethodType,
paymentMethodLast4: BillingTable.paymentMethodLast4,
balance: BillingTable.balance,
reload: BillingTable.reload,

View File

@@ -9,6 +9,7 @@ export const BillingTable = mysqlTable(
...timestamps,
customerID: varchar("customer_id", { length: 255 }),
paymentMethodID: varchar("payment_method_id", { length: 255 }),
paymentMethodType: varchar("payment_method_type", { length: 32 }),
paymentMethodLast4: varchar("payment_method_last4", { length: 4 }),
balance: bigint("balance", { mode: "number" }).notNull(),
monthlyLimit: int("monthly_limit"),