Dominik Pschenitschni
4908469d49
Also align repo closer to `create-vue` template and improve cypress integration
18 lines
375 B
TypeScript
18 lines
375 B
TypeScript
import {faker} from '@faker-js/faker'
|
|
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,
|
|
created: now.toISOString(),
|
|
updated: now.toISOString(),
|
|
}
|
|
}
|
|
}
|