mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 16:38:34 +02:00
🗃️ Update subscription status enum (#1572)
This commit is contained in:
parent
f8747e45f0
commit
ba613e3f09
2 changed files with 30 additions and 2 deletions
|
@ -65,11 +65,15 @@ model User {
|
|||
}
|
||||
|
||||
enum SubscriptionStatus {
|
||||
incomplete
|
||||
incomplete_expired
|
||||
active
|
||||
paused
|
||||
deleted
|
||||
trialing
|
||||
past_due
|
||||
canceled
|
||||
unpaid
|
||||
deleted // @deprecated - Only used in UserPaymentData which is also deprecated
|
||||
|
||||
@@map("subscription_status")
|
||||
}
|
||||
|
@ -112,7 +116,7 @@ model Subscription {
|
|||
id String @id
|
||||
priceId String @map("price_id")
|
||||
amount Int
|
||||
status String
|
||||
status SubscriptionStatus
|
||||
active Boolean
|
||||
currency String
|
||||
interval SubscriptionInterval
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue