-
Notifications
You must be signed in to change notification settings - Fork 3
/
datamodel.prisma
131 lines (111 loc) · 2.81 KB
/
datamodel.prisma
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
datasource db {
provider = "mysql"
url = "mysql://prisma:localhost:3306/strapi"
}
generator client {
provider = "prisma-client-js"
output = "something"
}
enum Test {
SOMETHING
SOMETHING2
}
// but only inside a model so we need to adjust the plugin grammer
model CoreStore {
// comments doesn't get properly highlighted yet
id Int @id
environment String?
key String?
tag String? @default("test")
type String?
value String?
@@unique([key, tag])
@@map("core_store")
}
model Migration {
revision Int
applied Int
databaseMigration String @map("database_migration")
datamodel String
datamodelSteps String @map("datamodel_steps")
errors String
finishedAt DateTime? @map("finished_at")
name String
rolledBack Int @map("rolled_back")
startedAt DateTime @map("started_at")
status String
@@id([revision, applied])
@@map("_Migration")
}
model Post {
id Int @id
content String?
createdAt DateTime? @map("created_at")
reads Int
title String
updatedAt DateTime? @map("updated_at")
@@map("posts")
}
model StrapiAdministrator {
id Int @id
blocked Boolean?
email String
password String
resetPasswordToken String?
username String
@@map("strapi_administrator")
}
model UploadFile {
id Int @id
createdAt DateTime? @map("created_at")
ext String?
hash String
mime String
name String
provider String
publicId String? @map("public_id")
sha256 String?
size String
updatedAt DateTime? @map("updated_at")
url String
@@map("upload_file")
}
model UploadFileMorph {
id Int @id
field String?
relatedId Int? @map("related_id")
relatedType String? @map("related_type")
uploadFileId Int? @map("upload_file_id")
@@map("upload_file_morph")
}
model UsersPermissionsPermission {
id Int @id
action String
controller String
enabled Boolean
policy String?
role Int?
type String
@@map("users-permissions_permission")
}
model UsersPermissionsRole {
id Int @id
description String?
name String
type String?
@@map("users-permissions_role")
}
model UsersPermissionsUser {
id Int @id
blocked Boolean?
confirmed Boolean?
createdAt DateTime? @map("created_at")
email String
password String?
provider String?
resetPasswordToken String?
role Int?
updatedAt DateTime? @map("updated_at")
username String
@@map("users-permissions_user")
}