adding the plan post api
This commit is contained in:
@@ -12,6 +12,9 @@ model Account {
|
||||
lastOtpSendingTime DateTime?
|
||||
isDeleted Boolean @default(false)
|
||||
isAccountVerified Boolean @default(false)
|
||||
isSubscribe Boolean @default(false)
|
||||
subscriptionId String?
|
||||
plan Plan? @relation(fields: [subscriptionId], references: [id])
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @default(now())
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
enum PType {
|
||||
FREE
|
||||
STANDARD
|
||||
PRO
|
||||
}
|
||||
|
||||
model Plan {
|
||||
id String @id @default(uuid())
|
||||
planName String
|
||||
price Int
|
||||
planType PType
|
||||
planDesc String
|
||||
planFeatures Json
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
account Account[]
|
||||
}
|
||||
Reference in New Issue
Block a user