-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.prisma
53 lines (47 loc) · 1.05 KB
/
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
46
47
48
49
50
51
52
53
generator client {
provider = "prisma-client-py"
output = "oono_akira/db/prisma"
interface = "asyncio"
recursive_type_depth = -1
}
datasource db {
provider = "sqlite"
url = "file:.oono/oono.db"
}
model Workspace {
id String @id
name String
botId String
adminId String
hookUrl String
token String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Payload {
id String @id @default(uuid())
source String
content String
createdAt DateTime @default(now())
}
model Session {
key String @id
content String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Lock {
workspace String
channel String
module String
createdAt DateTime @default(now())
@@unique(name: "lock", [workspace, channel, module])
}
model Access {
workspace String
channel String @default("")
user String @default("")
module String
createdAt DateTime @default(now())
@@unique(name: "access", [workspace, channel, user, module])
}