Changed seeds and added link to user accounts

This commit is contained in:
Sockenklaus
2021-10-29 17:06:13 +02:00
parent dd5bb50ba3
commit 411db6759e

View File

@@ -8,19 +8,21 @@ export default class EmployeeSeeder extends BaseSeeder {
try {
await Employee.createMany([
{
firstName: 'Pascal',
lastName: 'König',
shorthand: 'PK'
firstName: 'Max',
lastName: 'Mustermann',
shorthand: 'MM',
userId: 1
},
{
firstName: 'Sandra',
lastName: 'Sühl',
shorthand: 'SS'
firstName: 'Jane',
lastName: 'Doe',
shorthand: 'JD',
userId: 2
},
{
firstName: 'Karin',
lastName: 'Behr',
shorthand: 'KB'
firstName: 'Bingo',
lastName: 'Bongo',
shorthand: 'BB'
}
])
} catch (error) {