17 lines
309 B
JavaScript
17 lines
309 B
JavaScript
|
import {Factory} from '../support/factory'
|
||
|
import {formatISO} from 'date-fns'
|
||
|
|
||
|
export class TaskAssigneeFactory extends Factory {
|
||
|
static table = 'task_assignees'
|
||
|
|
||
|
static factory() {
|
||
|
const now = new Date()
|
||
|
|
||
|
return {
|
||
|
id: '{increment}',
|
||
|
task_id: 1,
|
||
|
user_id: 1,
|
||
|
created: formatISO(now),
|
||
|
}
|
||
|
}
|
||
|
}
|