@optimatech88/titomeet-shared-lib 1.0.2 → 1.0.3

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.2",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -34,6 +34,7 @@ model User {
34
34
 
35
35
  accounts Account[]
36
36
  messages Message[]
37
+ events Event[]
37
38
  }
38
39
 
39
40
  model Account {
@@ -80,8 +81,7 @@ model Event {
80
81
  endDate DateTime
81
82
  startTime String // Format: "HH:mm"
82
83
  endTime String // Format: "HH:mm"
83
- address Address @relation(fields: [addressId], references: [id])
84
- addressId String
84
+
85
85
  capacity Int
86
86
  coverPicture String
87
87
  badge String
@@ -92,6 +92,12 @@ model Event {
92
92
  chat Chat? // Optional one-to-one relation
93
93
  status EventStatus @default(DRAFT)
94
94
 
95
+ address Address @relation(fields: [addressId], references: [id])
96
+ addressId String
97
+
98
+ postedBy User @relation(fields: [postedById], references: [id])
99
+ postedById String
100
+
95
101
  createdAt DateTime @default(now())
96
102
  updatedAt DateTime @updatedAt
97
103
  }
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from './auth/auth.guard';
2
- export { PrismaClient, User, Account, UserRole, Event, EventAccess, EventVisibility, EventStatus, EventPrice } from '@prisma/client';
2
+ export { PrismaClient, User, Account, UserRole, Event, EventAccess, EventVisibility, EventStatus, EventPrice, Address } from '@prisma/client';
3
3
 
4
4
  //auth
5
5
  export * from './auth/auth.guard';