summaryrefslogtreecommitdiffhomepage
path: root/packages/console/core/src/schema/billing.sql.ts
diff options
context:
space:
mode:
authorFrank <[email protected]>2026-01-07 01:55:36 -0500
committerFrank <[email protected]>2026-01-07 02:45:57 -0500
commite91cc7e5142ea6568836c463de69b06d35fc3fc3 (patch)
treeb4b2f54d1d24eca9c1630425045270e229f184ab /packages/console/core/src/schema/billing.sql.ts
parentc961072d20f1dcafa5e608a1f28a79a1b6bc7334 (diff)
downloadopencode-e91cc7e5142ea6568836c463de69b06d35fc3fc3.tar.gz
opencode-e91cc7e5142ea6568836c463de69b06d35fc3fc3.zip
wip: black
Diffstat (limited to 'packages/console/core/src/schema/billing.sql.ts')
-rw-r--r--packages/console/core/src/schema/billing.sql.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/console/core/src/schema/billing.sql.ts b/packages/console/core/src/schema/billing.sql.ts
index 8210bc152..42da13776 100644
--- a/packages/console/core/src/schema/billing.sql.ts
+++ b/packages/console/core/src/schema/billing.sql.ts
@@ -23,7 +23,11 @@ export const BillingTable = mysqlTable(
timeReloadLockedTill: utc("time_reload_locked_till"),
subscriptionID: varchar("subscription_id", { length: 28 }),
},
- (table) => [...workspaceIndexes(table), uniqueIndex("global_customer_id").on(table.customerID)],
+ (table) => [
+ ...workspaceIndexes(table),
+ uniqueIndex("global_customer_id").on(table.customerID),
+ uniqueIndex("global_subscription_id").on(table.subscriptionID),
+ ],
)
export const PaymentTable = mysqlTable(