@optimatech88/titomeet-shared-lib 1.0.54 → 1.0.56
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 +1 -1
- package/prisma/schema.prisma +25 -0
- package/.env +0 -1
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -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 {
|
|
@@ -466,3 +470,24 @@ model Feedback {
|
|
|
466
470
|
createdAt DateTime @default(now())
|
|
467
471
|
updatedAt DateTime @updatedAt
|
|
468
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
DATABASE_URL="postgresql://postgres:postgre@localhost:5432/titomeet?schema=public"
|