From 313c7112a3563ff070e0b18c600a5185bcf3214d Mon Sep 17 00:00:00 2001 From: Vincent Alamelle Date: Thu, 11 May 2023 16:47:22 +0200 Subject: [PATCH] seeder update --- src/common/databases/seeders/seeder2.ts | 77 +++++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/src/common/databases/seeders/seeder2.ts b/src/common/databases/seeders/seeder2.ts index c11e30fe..e0e6b892 100644 --- a/src/common/databases/seeders/seeder2.ts +++ b/src/common/databases/seeders/seeder2.ts @@ -151,6 +151,7 @@ import { const uidDeedType1: string = randomString(); const uidDeedType2: string = randomString(); const uidDeedType3: string = randomString(); + const uidDeedType4: string = randomString(); const uidDocument1: string = randomString(); const uidDocument2: string = randomString(); @@ -173,6 +174,8 @@ import { const uidDocumentType14: string = randomString(); const uidDocumentType15: string = randomString(); const uidDocumentType16: string = randomString(); + const uidDocumentType17: string = randomString(); + const uidDocumentType18: string = randomString(); const uidOfficeFolderHasCustomer1: string = randomString(); const uidOfficeFolderHasCustomer2: string = randomString(); @@ -243,6 +246,14 @@ import { const uidDeedTypeHasDocumentType1: string = randomString(); const uidDeedTypeHasDocumentType2: string = randomString(); const uidDeedTypeHasDocumentType3: string = randomString(); + const uidDeedTypeHasDocumentType4: string = randomString(); + const uidDeedTypeHasDocumentType5: string = randomString(); + const uidDeedTypeHasDocumentType6: string = randomString(); + const uidDeedTypeHasDocumentType7: string = randomString(); + const uidDeedTypeHasDocumentType8: string = randomString(); + + + const uidDocumentHistory1: string = randomString(); const uidDocumentHistory2: string = randomString(); @@ -1250,6 +1261,16 @@ import { created_at: new Date(), updated_at: new Date(), }, + { + uid: uidDeedType4, + name: "Acte de vente de maison individuelle", + archived_at: null, + description: "Acte de vente de maison individuelle", + office_uid: uidOffice1, + created_at: new Date(), + updated_at: new Date(), + }, + ]; const documents: Documents[] = [ @@ -1456,6 +1477,26 @@ import { created_at: new Date(), updated_at: new Date(), }, + { + uid: uidDocumentType17, + archived_at: null, + name: "DPE", + office_uid: uidOffice1, + private_description: "Ce document est confidentiel, et ne doit pas être divulgué", + public_description: "Diagnostic de Performance Energétique.", + created_at: new Date(), + updated_at: new Date(), + }, + { + uid: uidDocumentType18, + archived_at: null, + name: "RIB", + office_uid: uidOffice1, + private_description: "Ce document est confidentiel, et ne doit pas être divulgué", + public_description: "RIB.", + created_at: new Date(), + updated_at: new Date(), + }, ]; const officeFolderHasCustomers: OfficeFolderHasCustomers[] = [ @@ -1927,6 +1968,42 @@ import { created_at: new Date(), updated_at: new Date(), }, + + { + uid: uidDeedTypeHasDocumentType4, + deed_type_uid: uidDeedType4, + document_type_uid: uidDocumentType1, + created_at: new Date(), + updated_at: new Date(), + }, + { + uid: uidDeedTypeHasDocumentType5, + deed_type_uid: uidDeedType4, + document_type_uid: uidDocumentType6, + created_at: new Date(), + updated_at: new Date(), + }, + { + uid: uidDeedTypeHasDocumentType6, + deed_type_uid: uidDeedType4, + document_type_uid: uidDocumentType10, + created_at: new Date(), + updated_at: new Date(), + }, + { + uid: uidDeedTypeHasDocumentType7, + deed_type_uid: uidDeedType4, + document_type_uid: uidDocumentType17, + created_at: new Date(), + updated_at: new Date(), + }, + { + uid: uidDeedTypeHasDocumentType8, + deed_type_uid: uidDeedType4, + document_type_uid: uidDocumentType18, + created_at: new Date(), + updated_at: new Date(), + }, ]; const documentHistories: DocumentHistory[] = [