add data to seeder
This commit is contained in:
parent
28e5b8a33f
commit
1f834ab79d
18
package-lock.json
generated
18
package-lock.json
generated
@ -1437,9 +1437,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@types/node": {
|
||||
"version": "18.16.6",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.6.tgz",
|
||||
"integrity": "sha512-N7KINmeB8IN3vRR8dhgHEp+YpWvGFcpDoh5XZ8jB5a00AdFKCKEyyGTOPTddUf4JqU1ZKTVxkOxakDvchNVI2Q=="
|
||||
"version": "18.16.7",
|
||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.7.tgz",
|
||||
"integrity": "sha512-MFg7ua/bRtnA1hYE3pVyWxGd/r7aMqjNOdHvlSsXV3n8iaeGKkOaPzpJh6/ovf4bEXWcojkeMJpTsq3mzXW4IQ=="
|
||||
},
|
||||
"node_modules/@types/node-schedule": {
|
||||
"version": "2.1.0",
|
||||
@ -1501,9 +1501,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/@types/validator": {
|
||||
"version": "13.7.16",
|
||||
"resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.7.16.tgz",
|
||||
"integrity": "sha512-VyKmLktUHYLbrSbsRi241MSUlGYomQgK/tfCNpej3Gt5qDOM10AZ3nU2aR2s5JritClXuOBu4K7MkywVW/Y6Ow=="
|
||||
"version": "13.7.17",
|
||||
"resolved": "https://registry.npmjs.org/@types/validator/-/validator-13.7.17.tgz",
|
||||
"integrity": "sha512-aqayTNmeWrZcvnG2MG9eGYI6b7S5fl+yKgPs6bAjOTwPS316R5SxBGKvtSExfyoJU7pIeHJfsHI0Ji41RVMkvQ=="
|
||||
},
|
||||
"node_modules/@types/yargs": {
|
||||
"version": "17.0.24",
|
||||
@ -2371,9 +2371,9 @@
|
||||
"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="
|
||||
},
|
||||
"node_modules/electron-to-chromium": {
|
||||
"version": "1.4.387",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.387.tgz",
|
||||
"integrity": "sha512-tutLf+alr1/0YqJwKPdstVvDLmxmLb5xNyDLNS0RZmenHcEYk9qKfpKDCVZEKJ00JVbnayJm1MZAbYhYDFpcOw==",
|
||||
"version": "1.4.388",
|
||||
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.388.tgz",
|
||||
"integrity": "sha512-xZ0y4zjWZgp65okzwwt00f2rYibkFPHUv9qBz+Vzn8cB9UXIo9Zc6Dw81LJYhhNt0G/vR1OJEfStZ49NKl0YxQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/emittery": {
|
||||
|
@ -42,6 +42,8 @@ import {
|
||||
|
||||
const uidContact1: string = randomString();
|
||||
const uidContact2: string = randomString();
|
||||
const uidContact3: string = randomString();
|
||||
const uidContact4: string = randomString();
|
||||
|
||||
const uidAddress1: string = randomString();
|
||||
const uidAddress2: string = randomString();
|
||||
@ -151,6 +153,32 @@ import {
|
||||
updated_at: new Date(),
|
||||
civility: ECivility.FEMALE,
|
||||
},
|
||||
{
|
||||
uid: uidContact3,
|
||||
address_uid: uidAddress2,
|
||||
first_name: "Maitre Marcelino",
|
||||
last_name: "Jack",
|
||||
email: "Marcelino.Jack@example.com",
|
||||
phone_number: randomString(),
|
||||
cell_phone_number: randomString(),
|
||||
birthdate: null,
|
||||
created_at: new Date(),
|
||||
updated_at: new Date(),
|
||||
civility: ECivility.MALE,
|
||||
},
|
||||
{
|
||||
uid: uidContact4,
|
||||
address_uid: uidAddress2,
|
||||
first_name: "Maitre Massi",
|
||||
last_name: "Jack",
|
||||
email: "Massi.Jack@example.com",
|
||||
phone_number: randomString(),
|
||||
cell_phone_number: randomString(),
|
||||
birthdate: null,
|
||||
created_at: new Date(),
|
||||
updated_at: new Date(),
|
||||
civility: ECivility.FEMALE,
|
||||
},
|
||||
];
|
||||
|
||||
const offices: Offices[] = [
|
||||
@ -509,4 +537,4 @@ import {
|
||||
}
|
||||
|
||||
console.log(">MOCK DATA - Seeding completed!");
|
||||
})();
|
||||
})();
|
Loading…
x
Reference in New Issue
Block a user