forked from Sairyss/domain-driven-hexagon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuser.seeds.ts
More file actions
25 lines (24 loc) · 784 Bytes
/
user.seeds.ts
File metadata and controls
25 lines (24 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { UserRoles } from '@modules/user/domain/entities/user.types';
import { NonFunctionProperties } from '@libs/types';
import { createdAtUpdatedAtMock } from '@src/libs/test-utils/mocks/generic-model-props.mock';
import { UserOrmEntity } from '../user.orm-entity';
export const userSeeds: NonFunctionProperties<UserOrmEntity>[] = [
{
...createdAtUpdatedAtMock,
id: '675b5c6f-52de-474f-aba6-f7717844a5e8',
email: 'john-doe@gmail.com',
country: 'London',
postalCode: '23321',
street: 'Abbey Road',
role: UserRoles.guest,
},
{
...createdAtUpdatedAtMock,
id: 'a877f456-3284-42d1-b426-4c5f44eca561',
email: 'jane-doe@gmail.com',
country: 'Spain',
postalCode: '28034',
street: 'Plaza Mayor',
role: UserRoles.guest,
},
];