feat(prisma): add Traning model
This commit is contained in:
parent
d765851f29
commit
a8b7a0c118
2 changed files with 40 additions and 0 deletions
|
|
@ -15,6 +15,23 @@ datasource db {
|
|||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
model Training {
|
||||
id String @id @default(cuid())
|
||||
name String
|
||||
slug String @unique
|
||||
description String?
|
||||
days Int
|
||||
weight Int
|
||||
draft Boolean @default(true)
|
||||
logoURL String?
|
||||
repositoryURL String?
|
||||
priceOpen Int
|
||||
priceCorporate Int
|
||||
content String?
|
||||
|
||||
@@index([slug])
|
||||
}
|
||||
|
||||
// Necessary for Next auth
|
||||
model Account {
|
||||
id String @id @default(cuid())
|
||||
|
|
|
|||
Reference in a new issue