🗃️ Update subscription status enum (#1572)

This commit is contained in:
Luke Vella 2025-02-24 15:35:40 +00:00 committed by GitHub
parent f8747e45f0
commit ba613e3f09
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 2 deletions

View file

@ -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