-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema.prisma
45 lines (39 loc) · 903 Bytes
/
schema.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
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = "file:./dev.db"
}
model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
sessionID String @unique
socketID String?
name String?
univ String?
}
model CatchmindRoom {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
painterId Int?
answererList String?
solution String?
pointSnu Int @default(0)
pointKu Int @default(0)
}
model OxGameRoom {
id Int @id @default(autoincrement())
pointSnu Int @default(0)
pointKu Int @default(0)
}
model StarGameRoom {
id Int @id @default(autoincrement())
pointSnu Int @default(0)
pointKu Int @default(0)
}
model DodgingGameRoom {
id Int @id @default(autoincrement())
pointSnu Int @default(0)
pointKu Int @default(0)
}