refacto seeders with FC test db

This commit is contained in:
OxSaitama 2023-09-28 21:35:26 +02:00
parent 8e974ed50b
commit 73cb62f200

View File

@ -19,7 +19,6 @@ export default async function main() {
try {
const prisma = new PrismaClient();
const idNot2 = "jelkvelknvlkn";
const idNot3 = "rleenrenlnr";
const idNot4 = "ljfeflecnmd";
const idNot5 = "rflrefrjf";
@ -231,9 +230,9 @@ export default async function main() {
},
{
address: addresses[5],
first_name: "Thibault",
last_name: "Dubois",
email: "thibault.dubois@outlook.com",
first_name: "Paul",
last_name: "Dupont",
email: "paul.dupont@outlook.com",
phone_number: "06 67 89 01 23",
cell_phone_number: "06 67 89 01 23",
birthdate: null,
@ -243,9 +242,9 @@ export default async function main() {
},
{
address: addresses[6],
first_name: "Léa",
last_name: "Fontaine",
email: "lea.fontaine@gmail.com",
first_name: "Jean",
last_name: "Dubigot",
email: "jean.dubigot@gmail.com",
phone_number: "06 78 90 12 34",
cell_phone_number: "06 78 90 12 34",
birthdate: null,
@ -255,9 +254,9 @@ export default async function main() {
},
{
address: addresses[7],
first_name: "Guillaume",
last_name: "Renaud",
email: "guillaume.renaud@gmail.com",
first_name: "Vincent",
last_name: "Martin",
email: "vincent.martin@gmail.com",
phone_number: "06 89 01 23 45",
cell_phone_number: "06 89 01 23 45",
birthdate: null,
@ -424,6 +423,12 @@ export default async function main() {
];
const customers: Customer[] = [
{
contact: contacts[0],
created_at: new Date(),
updated_at: new Date(),
status: ECustomerStatus.PENDING,
},
{
contact: contacts[5],
created_at: new Date(),
@ -796,14 +801,6 @@ export default async function main() {
];
const users: User[] = [
{
created_at: new Date(),
updated_at: new Date(),
idNot: idNot2,
contact: contacts[0],
office_membership: offices[0],
role: roles[0],
},
{
created_at: new Date(),
updated_at: new Date(),