@optimatech88/titomeet-shared-lib 1.0.12 → 1.0.14
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
package/prisma/schema.prisma
CHANGED
|
@@ -69,6 +69,8 @@ model Address {
|
|
|
69
69
|
events Event[]
|
|
70
70
|
createdAt DateTime @default(now())
|
|
71
71
|
updatedAt DateTime @updatedAt
|
|
72
|
+
|
|
73
|
+
Provider Provider[]
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
enum EventAccess {
|
|
@@ -210,6 +212,16 @@ model Notification {
|
|
|
210
212
|
updatedAt DateTime @updatedAt
|
|
211
213
|
}
|
|
212
214
|
|
|
215
|
+
model ProviderCategory {
|
|
216
|
+
id String @id @default(cuid())
|
|
217
|
+
name String @unique
|
|
218
|
+
description String?
|
|
219
|
+
providers Provider[]
|
|
220
|
+
|
|
221
|
+
createdAt DateTime @default(now())
|
|
222
|
+
updatedAt DateTime @updatedAt
|
|
223
|
+
}
|
|
224
|
+
|
|
213
225
|
enum ProviderStatus {
|
|
214
226
|
PENDING
|
|
215
227
|
APPROVED
|
|
@@ -222,6 +234,13 @@ model Provider {
|
|
|
222
234
|
description String?
|
|
223
235
|
image String?
|
|
224
236
|
rating Float?
|
|
237
|
+
|
|
238
|
+
address Address? @relation(fields: [addressId], references: [id])
|
|
239
|
+
addressId String?
|
|
240
|
+
|
|
241
|
+
category ProviderCategory @relation(fields: [categoryId], references: [id])
|
|
242
|
+
categoryId String
|
|
243
|
+
|
|
225
244
|
reviews Review[]
|
|
226
245
|
|
|
227
246
|
user User @relation(fields: [userId], references: [id])
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prisma.service.spec.d.ts","sourceRoot":"","sources":["../../src/prisma/prisma.service.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const testing_1 = require("@nestjs/testing");
|
|
4
|
-
const prisma_service_1 = require("./prisma.service");
|
|
5
|
-
describe('PrismaService', () => {
|
|
6
|
-
let service;
|
|
7
|
-
beforeEach(async () => {
|
|
8
|
-
const module = await testing_1.Test.createTestingModule({
|
|
9
|
-
providers: [prisma_service_1.PrismaService],
|
|
10
|
-
}).compile();
|
|
11
|
-
service = module.get(prisma_service_1.PrismaService);
|
|
12
|
-
});
|
|
13
|
-
it('should be defined', () => {
|
|
14
|
-
expect(service).toBeDefined();
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
//# sourceMappingURL=prisma.service.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prisma.service.spec.js","sourceRoot":"","sources":["../../src/prisma/prisma.service.spec.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AACtD,qDAAiD;AAEjD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,IAAI,OAAsB,CAAC;IAE3B,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,MAAM,MAAM,GAAkB,MAAM,cAAI,CAAC,mBAAmB,CAAC;YAC3D,SAAS,EAAE,CAAC,8BAAa,CAAC;SAC3B,CAAC,CAAC,OAAO,EAAE,CAAC;QAEb,OAAO,GAAG,MAAM,CAAC,GAAG,CAAgB,8BAAa,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;QAC3B,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|