refacto seeders with FC test db
This commit is contained in:
parent
8e974ed50b
commit
73cb62f200
@ -19,7 +19,6 @@ export default async function main() {
|
|||||||
try {
|
try {
|
||||||
const prisma = new PrismaClient();
|
const prisma = new PrismaClient();
|
||||||
|
|
||||||
const idNot2 = "jelkvelknvlkn";
|
|
||||||
const idNot3 = "rleenrenlnr";
|
const idNot3 = "rleenrenlnr";
|
||||||
const idNot4 = "ljfeflecnmd";
|
const idNot4 = "ljfeflecnmd";
|
||||||
const idNot5 = "rflrefrjf";
|
const idNot5 = "rflrefrjf";
|
||||||
@ -231,9 +230,9 @@ export default async function main() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
address: addresses[5],
|
address: addresses[5],
|
||||||
first_name: "Thibault",
|
first_name: "Paul",
|
||||||
last_name: "Dubois",
|
last_name: "Dupont",
|
||||||
email: "thibault.dubois@outlook.com",
|
email: "paul.dupont@outlook.com",
|
||||||
phone_number: "06 67 89 01 23",
|
phone_number: "06 67 89 01 23",
|
||||||
cell_phone_number: "06 67 89 01 23",
|
cell_phone_number: "06 67 89 01 23",
|
||||||
birthdate: null,
|
birthdate: null,
|
||||||
@ -243,9 +242,9 @@ export default async function main() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
address: addresses[6],
|
address: addresses[6],
|
||||||
first_name: "Léa",
|
first_name: "Jean",
|
||||||
last_name: "Fontaine",
|
last_name: "Dubigot",
|
||||||
email: "lea.fontaine@gmail.com",
|
email: "jean.dubigot@gmail.com",
|
||||||
phone_number: "06 78 90 12 34",
|
phone_number: "06 78 90 12 34",
|
||||||
cell_phone_number: "06 78 90 12 34",
|
cell_phone_number: "06 78 90 12 34",
|
||||||
birthdate: null,
|
birthdate: null,
|
||||||
@ -255,9 +254,9 @@ export default async function main() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
address: addresses[7],
|
address: addresses[7],
|
||||||
first_name: "Guillaume",
|
first_name: "Vincent",
|
||||||
last_name: "Renaud",
|
last_name: "Martin",
|
||||||
email: "guillaume.renaud@gmail.com",
|
email: "vincent.martin@gmail.com",
|
||||||
phone_number: "06 89 01 23 45",
|
phone_number: "06 89 01 23 45",
|
||||||
cell_phone_number: "06 89 01 23 45",
|
cell_phone_number: "06 89 01 23 45",
|
||||||
birthdate: null,
|
birthdate: null,
|
||||||
@ -424,6 +423,12 @@ export default async function main() {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const customers: Customer[] = [
|
const customers: Customer[] = [
|
||||||
|
{
|
||||||
|
contact: contacts[0],
|
||||||
|
created_at: new Date(),
|
||||||
|
updated_at: new Date(),
|
||||||
|
status: ECustomerStatus.PENDING,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
contact: contacts[5],
|
contact: contacts[5],
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
@ -796,14 +801,6 @@ export default async function main() {
|
|||||||
];
|
];
|
||||||
|
|
||||||
const users: User[] = [
|
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(),
|
created_at: new Date(),
|
||||||
updated_at: new Date(),
|
updated_at: new Date(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user