@optimatech88/titomeet-shared-lib 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +16 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -44,6 +44,19 @@ model Account {
|
|
|
44
44
|
userId String
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
model Address {
|
|
48
|
+
id String @id @default(uuid())
|
|
49
|
+
name String
|
|
50
|
+
city String
|
|
51
|
+
state String
|
|
52
|
+
country String
|
|
53
|
+
postalCode String
|
|
54
|
+
|
|
55
|
+
events Event[]
|
|
56
|
+
createdAt DateTime @default(now())
|
|
57
|
+
updatedAt DateTime @updatedAt
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
enum EventAccess {
|
|
48
61
|
FREE
|
|
49
62
|
PAID
|
|
@@ -67,9 +80,11 @@ model Event {
|
|
|
67
80
|
endDate DateTime
|
|
68
81
|
startTime String // Format: "HH:mm"
|
|
69
82
|
endTime String // Format: "HH:mm"
|
|
70
|
-
address
|
|
83
|
+
address Address @relation(fields: [addressId], references: [id])
|
|
84
|
+
addressId String
|
|
71
85
|
capacity Int
|
|
72
86
|
coverPicture String
|
|
87
|
+
badge String
|
|
73
88
|
tags String[] // Array of tags
|
|
74
89
|
accessType EventAccess @default(FREE)
|
|
75
90
|
visibility EventVisibility @default(PUBLIC)
|