🗃️ Add new fields to subscription (#1564)

This commit is contained in:
Luke Vella 2025-02-17 17:26:40 +07:00 committed by GitHub
parent e022c4c279
commit 7cf578bedf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 289 additions and 198 deletions

View file

@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "subscriptions" ADD COLUMN "amount" INTEGER,
ADD COLUMN "status" TEXT;

View file

@ -88,6 +88,8 @@ model UserPaymentData {
model Subscription {
id String @id
priceId String @map("price_id")
amount Int?
status String?
active Boolean
currency String?
interval String?