forked from thiagobardini/george-voice-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.prisma
35 lines (29 loc) · 1.04 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
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
// Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
// Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id Int @id @default(autoincrement())
email String @unique
name String?
}
model Inspection {
id Int @id @default(autoincrement())
propertyAddress String @map("property_address")
propertyType String @map("property_type")
squareFootage Int @map("square_footage")
scheduledDate DateTime @map("scheduled_date")
customerName String @map("customer_name")
customerEmail String @map("customer_email")
createdAt DateTime @default(now()) @map("created_at")
calEventId String? @map("cal_event_id")
status String @default("scheduled")
@@map("inspections")
}