feat: add unlimitedSeats to subscription
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
ALTER TABLE "subscription" ADD COLUMN "unlimitedSeats" boolean DEFAULT false NOT NULL;
|
||||||
2543
packages/db/migrations/meta/20250907185512_snapshot.json
Normal file
2543
packages/db/migrations/meta/20250907185512_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -71,6 +71,13 @@
|
|||||||
"when": 1756803246096,
|
"when": 1756803246096,
|
||||||
"tag": "20250902085406_AddSubscriptions",
|
"tag": "20250902085406_AddSubscriptions",
|
||||||
"breakpoints": true
|
"breakpoints": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idx": 10,
|
||||||
|
"version": "7",
|
||||||
|
"when": 1757271312974,
|
||||||
|
"tag": "20250907185512_AddUnlimitedSeatsToSubscription",
|
||||||
|
"breakpoints": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -23,6 +23,7 @@ export const subscription = pgTable("subscription", {
|
|||||||
periodEnd: timestamp("periodEnd"),
|
periodEnd: timestamp("periodEnd"),
|
||||||
cancelAtPeriodEnd: boolean("cancelAtPeriodEnd"),
|
cancelAtPeriodEnd: boolean("cancelAtPeriodEnd"),
|
||||||
seats: integer("seats"),
|
seats: integer("seats"),
|
||||||
|
unlimitedSeats: boolean("unlimitedSeats").default(false).notNull(),
|
||||||
trialStart: timestamp("trialStart"),
|
trialStart: timestamp("trialStart"),
|
||||||
trialEnd: timestamp("trialEnd"),
|
trialEnd: timestamp("trialEnd"),
|
||||||
createdAt: timestamp("createdAt").notNull().defaultNow(),
|
createdAt: timestamp("createdAt").notNull().defaultNow(),
|
||||||
|
|||||||
Reference in New Issue
Block a user