@optimatech88/titomeet-shared-lib 1.0.1 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimatech88/titomeet-shared-lib",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -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,7 +80,8 @@ model Event {
67
80
  endDate DateTime
68
81
  startTime String // Format: "HH:mm"
69
82
  endTime String // Format: "HH:mm"
70
- address String
83
+ address Address @relation(fields: [addressId], references: [id])
84
+ addressId String
71
85
  capacity Int
72
86
  coverPicture String
73
87
  badge String