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.
|
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,
|
|
created: now.toISOString(),
|
|
}
|
|
}
|
|
} |