2022-10-05 14:40:42 +00:00
|
|
|
import {Factory} from '../support/factory'
|
|
|
|
|
|
|
|
export class TaskAttachmentFactory extends Factory {
|
|
|
|
static table = 'task_attachments'
|
|
|
|
|
|
|
|
static factory() {
|
|
|
|
const now = new Date()
|
|
|
|
|
|
|
|
return {
|
|
|
|
id: '{increment}',
|
|
|
|
task_id: 1,
|
|
|
|
file_id: 1,
|
2022-12-15 21:35:17 +00:00
|
|
|
created: now.toISOString(),
|
2022-10-05 14:40:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|