forked from copilot-platforms/custom-app-base
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.prisma
37 lines (33 loc) · 980 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
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL")
directUrl = env("POSTGRES_URL_NON_POOLING")
}
enum SettingType {
ENABLED
DISABLED
OUTSIDE_WORKING_HOURS
}
model Setting {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
type SettingType
timezone String?
workingHours Json? @db.JsonB
createdById String @db.Uuid
senderId String? @db.Uuid
message String?
createdAt DateTime @default(now()) @db.Timestamptz()
updatedAt DateTime @updatedAt @ignore @db.Timestamptz()
}
model Message {
id String @id @default(dbgenerated("gen_random_uuid()")) @db.Uuid
message String
clientId String @db.Uuid
channelId String @db.Uuid
senderId String @db.Uuid
createdAt DateTime @default(now()) @db.Timestamptz()
updatedAt DateTime @updatedAt @ignore @db.Timestamptz()
}