-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.prisma
More file actions
45 lines (37 loc) · 961 Bytes
/
schema.prisma
File metadata and controls
45 lines (37 loc) · 961 Bytes
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 = "postgresql"
url = env("DATABASE_URL")
}
model Dummy {
id Int @id @default(autoincrement())
name String
}
model GatewayReading {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
timestamp DateTime
gatewayManufacturer String
gatewayModel String
gatewaySerialNumber String
systemSummaryJson Json
overallOperationalStatusJson Json
acGridParametersJson Json
environmentalContextJson Json
gatewayInternalTemperaturesJson Json
individualModulePerformanceJson Json
}
model Device {
uuid String @id @unique
userId String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
}
model Producents {
id Int @id @default(autoincrement())
name String @unique
link String @unique
}