add initial
This commit is contained in:
32
prisma/schema.prisma
Normal file
32
prisma/schema.prisma
Normal file
@ -0,0 +1,32 @@
|
||||
datasource db {
|
||||
provider = "postgresql"
|
||||
url = env("DATABASE_URL")
|
||||
}
|
||||
|
||||
generator client {
|
||||
provider = "prisma-client-js"
|
||||
}
|
||||
|
||||
model Post {
|
||||
id Int @id @default(autoincrement())
|
||||
slug String @unique @db.Text
|
||||
title String @db.Text
|
||||
contentRendered Json @db.Json
|
||||
contentMarkdown String @db.Text
|
||||
blurb String @db.Text
|
||||
publishedDate DateTime @db.Timestamp(6)
|
||||
is_draft Boolean
|
||||
tags Tag[]
|
||||
}
|
||||
|
||||
model Tag {
|
||||
id Int @id @default(autoincrement())
|
||||
name String @unique
|
||||
posts Post[]
|
||||
}
|
||||
|
||||
model User {
|
||||
id Int @id @default(autoincrement())
|
||||
username String @unique
|
||||
password String
|
||||
}
|
Reference in New Issue
Block a user