-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.prisma
59 lines (53 loc) · 1.69 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
54
55
56
57
58
59
datasource db {
provider = "postgresql"
url = env("POSTGRES_PRISMA_URL")
directUrl = env("POSTGRES_URL_NON_POOLING")
}
generator client {
provider = "prisma-client-js"
}
model User {
id String @id @unique @default(uuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
secret String @unique
email String @unique
password String @default(uuid())
name String @default("New User")
roles String[] @default(["member"])
permissions String[] @default(["default"])
image String
}
model Event {
id String @id @unique @default(uuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
name String @default("New Event")
description String @default("New Event Description")
date String @default("No date provided")
location String @default("No location provided")
perks String[] @default([])
rsvps String[] @default([]) // User IDs
pinned Boolean @default(false)
image String
}
model Club {
id String @id @unique @default(uuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
name String @default("New Club")
description String @default("New Club Description")
linktree String
image String
}
model Initiative {
id String @id @unique @default(uuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
name String @default("New Initiative")
description String @default("New Initiative Description")
image String
}
// npx prisma migrate dev --name init
// npx prisma db push
// npx prisma generate