mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-27 07:35:35 +00:00
20 lines
394 B
TypeScript
20 lines
394 B
TypeScript
import {Factory} from '../support/factory'
|
|
import {faker} from '@faker-js/faker'
|
|
|
|
export class ProjectViewFactory extends Factory {
|
|
static table = 'project_views'
|
|
|
|
static factory() {
|
|
const now = new Date()
|
|
|
|
return {
|
|
id: '{increment}',
|
|
title: faker.lorem.words(3),
|
|
project_id: '{increment}',
|
|
view_kind: 0,
|
|
created: now.toISOString(),
|
|
updated: now.toISOString(),
|
|
}
|
|
}
|
|
}
|