2021-01-06 23:36:31 +01:00
|
|
|
import {Factory} from '../support/factory'
|
|
|
|
import {formatISO} from 'date-fns'
|
|
|
|
|
|
|
|
export class LabelTaskFactory extends Factory {
|
2021-03-30 20:41:05 +02:00
|
|
|
static table = 'label_tasks'
|
2021-01-06 23:36:31 +01:00
|
|
|
|
|
|
|
static factory() {
|
|
|
|
const now = new Date()
|
|
|
|
|
|
|
|
return {
|
|
|
|
id: '{increment}',
|
|
|
|
task_id: 1,
|
|
|
|
label_id: 1,
|
|
|
|
created: formatISO(now),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|