import { Seeder , Factory } from '../../src/types' ; import { User } from '../entities/User.entity' ; export default class CreateUsers implements Seeder { public async run ( factory ) { await factory ( User ) ( { roles : [ ] } ) . createMany ( 10 ) ; } }