This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2022-06-22 19:30:30 +00:00
|
|
|
import {faker} from '@faker-js/faker'
|
2020-12-10 13:52:35 +00:00
|
|
|
import {Factory} from '../support/factory'
|
|
|
|
|
|
|
|
export class TeamFactory extends Factory {
|
|
|
|
static table = 'teams'
|
|
|
|
|
|
|
|
static factory() {
|
|
|
|
const now = new Date()
|
|
|
|
|
|
|
|
return {
|
|
|
|
name: faker.lorem.words(3),
|
|
|
|
created_by_id: 1,
|
2022-12-15 21:35:17 +00:00
|
|
|
created: now.toISOString(),
|
|
|
|
updated: now.toISOString(),
|
2020-12-10 13:52:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|