-
Notifications
You must be signed in to change notification settings - Fork 3
/
schema.prisma
45 lines (38 loc) · 906 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
// 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"
// for local development
url = env("DATABASE_URL")
// for Vercel
// url = env("POSTGRES_PRISMA_URL")
// directUrl = env("POSTGRES_URL_NON_POOLING")
}
enum Role {
USER
ADMIN
}
model User {
id Int @id @default(autoincrement())
email String @unique
password String
role Role @default(USER)
}
enum Condition {
excellent
good
fair
poor
}
model Stuff {
id Int @id @default(autoincrement())
name String
quantity Int
condition Condition
owner String
}