@optimatech88/titomeet-shared-lib 1.0.53 → 1.0.55

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/.env ADDED
@@ -0,0 +1 @@
1
+ DATABASE_URL="postgresql://postgres:postgre@localhost:5432/titomeet?schema=public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optimatech88/titomeet-shared-lib",
3
- "version": "1.0.53",
3
+ "version": "1.0.55",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -35,6 +35,7 @@ model User {
35
35
  userInterests UserInterests?
36
36
  transactions Transaction[]
37
37
  feedbacks Feedback[]
38
+ reports Report[]
38
39
  }
39
40
 
40
41
  enum AccountType {
@@ -127,6 +128,8 @@ model Event {
127
128
  lng Float?
128
129
  lat Float?
129
130
  location String?
131
+ countryId String?
132
+ country Country? @relation(fields: [countryId], references: [id])
130
133
  }
131
134
 
132
135
  enum EventType {
@@ -156,6 +159,7 @@ model Chat {
156
159
  event Event @relation(fields: [eventId], references: [id])
157
160
  users ChatUser[]
158
161
  messages Message[]
162
+ reports Report[]
159
163
  }
160
164
 
161
165
  model ChatUser {
@@ -225,6 +229,7 @@ model Provider {
225
229
  pricingDetails String?
226
230
  rating Float?
227
231
  website String?
232
+ location String?
228
233
  address Address? @relation(fields: [addressId], references: [id])
229
234
  category ProviderCategory @relation(fields: [categoryId], references: [id])
230
235
  user User @relation(fields: [userId], references: [id])
@@ -465,3 +470,24 @@ model Feedback {
465
470
  createdAt DateTime @default(now())
466
471
  updatedAt DateTime @updatedAt
467
472
  }
473
+
474
+ model Report {
475
+ id String @id @default(cuid())
476
+ chatId String
477
+ userId String
478
+ reason String
479
+ createdAt DateTime @default(now())
480
+ updatedAt DateTime @updatedAt
481
+ chat Chat @relation(fields: [chatId], references: [id])
482
+ user User @relation(fields: [userId], references: [id])
483
+ }
484
+
485
+ model Country {
486
+ id String @id @default(cuid())
487
+ name String @unique
488
+ code String @unique
489
+ indicatif String
490
+ createdAt DateTime @default(now())
491
+ updatedAt DateTime @updatedAt
492
+ events Event[]
493
+ }
package/.env.example DELETED
@@ -1 +0,0 @@
1
- DATABASE_URL="postgresql://postgres:admin@localhost:5433/titomeet-dev?schema=public"