diff options
| author | Frank <[email protected]> | 2026-01-16 17:46:32 -0500 |
|---|---|---|
| committer | Frank <[email protected]> | 2026-01-16 17:46:36 -0500 |
| commit | cbe1c81470564a8f5042047d7422219426e78030 (patch) | |
| tree | 73d3f2b3d8f806d7978dc6f2031f1fa2040ba397 /packages/console/core/src | |
| parent | c25155586cd57b8db68a479c714c44f2bfbf667b (diff) | |
| download | opencode-cbe1c81470564a8f5042047d7422219426e78030.tar.gz opencode-cbe1c81470564a8f5042047d7422219426e78030.zip | |
wip: black
Diffstat (limited to 'packages/console/core/src')
| -rw-r--r-- | packages/console/core/src/schema/billing.sql.ts | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/packages/console/core/src/schema/billing.sql.ts b/packages/console/core/src/schema/billing.sql.ts index f1300f849..56b2ef33b 100644 --- a/packages/console/core/src/schema/billing.sql.ts +++ b/packages/console/core/src/schema/billing.sql.ts @@ -21,16 +21,17 @@ export const BillingTable = mysqlTable( reloadError: varchar("reload_error", { length: 255 }), timeReloadError: utc("time_reload_error"), timeReloadLockedTill: utc("time_reload_locked_till"), + subscription: json("subscription").$type<{ + status: "subscribed" + coupon?: string + seats: number + plan: "20" | "100" | "200" + }>(), subscriptionID: varchar("subscription_id", { length: 28 }), - subscriptionCouponID: varchar("subscription_coupon_id", { length: 28 }), subscriptionPlan: mysqlEnum("subscription_plan", ["20", "100", "200"] as const), timeSubscriptionBooked: utc("time_subscription_booked"), }, - (table) => [ - ...workspaceIndexes(table), - uniqueIndex("global_customer_id").on(table.customerID), - uniqueIndex("global_subscription_id").on(table.subscriptionID), - ], + (table) => [...workspaceIndexes(table), uniqueIndex("global_customer_id").on(table.customerID)], ) export const SubscriptionTable = mysqlTable( |
