Add API routes
This commit is contained in:
@@ -120,6 +120,10 @@ model Proclamation {
|
||||
category ProclamationCategory @relation(fields: [categoryId], references: [id])
|
||||
price Float @default(0.99)
|
||||
userProclamations UserProclamations[]
|
||||
subscriptionLevelId Int @default(1)
|
||||
subscriptionLevel SubscriptionLevel @relation(fields: [subscriptionLevelId], references: [id])
|
||||
|
||||
@@index(subscriptionLevelId)
|
||||
}
|
||||
|
||||
model UserProclamations {
|
||||
@@ -159,3 +163,10 @@ model LicenseKey {
|
||||
userId String
|
||||
user User @relation(fields: [userId], references: [id])
|
||||
}
|
||||
|
||||
model SubscriptionLevel {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
description String?
|
||||
proclamations Proclamation[]
|
||||
}
|
||||
Reference in New Issue
Block a user