import Faker from "faker" ; import { define } from "typeorm-seeding" ; import { Roles } from "../api/enums/role.enum" ; import { User } from "../api/models/user.model" ; define ( User , ( faker ) => { const user = new User ( { email : faker . internet . email ( ) , first_name : faker . name . firstName ( ) , last_name : faker . name . lastName ( ) , password : faker . internet . password ( 8 , true ) , role : Roles . Admin } ) ; return user ; } ) ;