@optimatech88/titomeet-shared-lib 1.0.44 → 1.0.46
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
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -78,32 +78,33 @@ model EventCategory {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
model Event {
|
|
81
|
-
id
|
|
82
|
-
name
|
|
83
|
-
description
|
|
84
|
-
startDate
|
|
85
|
-
endDate
|
|
86
|
-
startTime
|
|
87
|
-
endTime
|
|
88
|
-
capacity
|
|
89
|
-
coverPicture
|
|
90
|
-
badge
|
|
91
|
-
tags
|
|
92
|
-
accessType
|
|
93
|
-
visibility
|
|
94
|
-
status
|
|
95
|
-
addressId
|
|
96
|
-
postedById
|
|
97
|
-
createdAt
|
|
98
|
-
updatedAt
|
|
99
|
-
chat
|
|
100
|
-
address
|
|
101
|
-
postedBy
|
|
102
|
-
prices
|
|
103
|
-
favorites
|
|
104
|
-
orders
|
|
105
|
-
categories
|
|
106
|
-
providers
|
|
81
|
+
id String @id @default(cuid())
|
|
82
|
+
name String
|
|
83
|
+
description String
|
|
84
|
+
startDate DateTime
|
|
85
|
+
endDate DateTime
|
|
86
|
+
startTime String
|
|
87
|
+
endTime String
|
|
88
|
+
capacity Int
|
|
89
|
+
coverPicture String
|
|
90
|
+
badge String
|
|
91
|
+
tags String[]
|
|
92
|
+
accessType EventAccess @default(FREE)
|
|
93
|
+
visibility EventVisibility @default(PUBLIC)
|
|
94
|
+
status EventStatus @default(DRAFT)
|
|
95
|
+
addressId String
|
|
96
|
+
postedById String
|
|
97
|
+
createdAt DateTime @default(now())
|
|
98
|
+
updatedAt DateTime @updatedAt
|
|
99
|
+
chat Chat?
|
|
100
|
+
address Address @relation(fields: [addressId], references: [id])
|
|
101
|
+
postedBy User @relation(fields: [postedById], references: [id])
|
|
102
|
+
prices EventPrice[]
|
|
103
|
+
favorites Favorite[]
|
|
104
|
+
orders Order[]
|
|
105
|
+
categories EventCategory[] @relation("EventToEventCategory")
|
|
106
|
+
providers ProviderOnEvent[]
|
|
107
|
+
remainingSeats Int @default(0)
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
model EventPrice {
|
|
@@ -112,6 +113,7 @@ model EventPrice {
|
|
|
112
113
|
amount Float
|
|
113
114
|
description String?
|
|
114
115
|
eventId String
|
|
116
|
+
totalSeats Int @default(1)
|
|
115
117
|
createdAt DateTime @default(now())
|
|
116
118
|
updatedAt DateTime @updatedAt
|
|
117
119
|
event Event @relation(fields: [eventId], references: [id])
|