@optimatech88/titomeet-shared-lib 1.0.45 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimatech88/titomeet-shared-lib",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -0,0 +1,2 @@
1
+ -- AlterTable
2
+ ALTER TABLE "public"."Event" ADD COLUMN "remainingSeats" INTEGER NOT NULL DEFAULT 0;
@@ -78,32 +78,33 @@ model EventCategory {
78
78
  }
79
79
 
80
80
  model Event {
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[]
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 {