import type { Factory , Seeder } from 'typeorm-seeding' ; import { UserEntity } from '../../modules/user/user.entity' ; export default class CreateUsers implements Seeder { public async run ( factory ) { await factory ( UserEntity ) ( { roles : [ ] } ) . createMany ( 1 ) ; } }