mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-06-01 19:01:37 +00:00
19 lines
358 B
TypeScript
19 lines
358 B
TypeScript
import {Factory} from '../support/factory'
|
|
|
|
export class TaskRelationFactory extends Factory {
|
|
static table = 'task_relations'
|
|
|
|
static factory() {
|
|
const now = new Date()
|
|
|
|
return {
|
|
id: '{increment}',
|
|
task_id: '{increment}',
|
|
other_task_id: '{increment}',
|
|
relation_kind: 'related',
|
|
created_by_id: 1,
|
|
created: now.toISOString(),
|
|
}
|
|
}
|
|
}
|