-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.prisma
More file actions
67 lines (59 loc) · 1.88 KB
/
Copy pathschema.prisma
File metadata and controls
67 lines (59 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// This file is automatically generated by Keystone, do not modify it manually.
// Modify your Keystone config when you want to change this.
datasource sqlite {
url = env("DATABASE_URL")
provider = "sqlite"
}
generator client {
provider = "prisma-client-js"
output = "node_modules/.prisma/client"
engineType = "binary"
}
model User {
id String @id @default(cuid())
name String @default("")
email String @unique @default("")
password String
posts Post[] @relation("Post_author")
}
model Post {
id String @id @default(cuid())
title String @default("")
status String? @default("draft")
content String @default("[{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"}]}]")
publishDate DateTime?
author User? @relation("Post_author", fields: [authorId], references: [id])
authorId String? @map("author")
tags Tag[] @relation("Post_tags_Tag_posts")
@@index([authorId])
}
model Tag {
id String @id @default(cuid())
name String @default("")
posts Post[] @relation("Post_tags_Tag_posts")
projects Project[] @relation("Project_tags_Tag_projects")
}
model Image {
id String @id @default(cuid())
img_filesize Int?
img_extension String?
img_width Int?
img_height Int?
img_mode String?
img_id String?
}
model Project {
id String @id @default(cuid())
title String @default("")
subtitle String @default("")
description String @default("")
content String @default("[{\"type\":\"paragraph\",\"children\":[{\"text\":\"\"}]}]")
image_filesize Int?
image_extension String?
image_width Int?
image_height Int?
image_mode String?
image_id String?
clientName String @default("")
tags Tag[] @relation("Project_tags_Tag_projects")
}