forked from vikunja/vikunja
20 lines
375 B
TypeScript
20 lines
375 B
TypeScript
import {faker} from '@faker-js/faker'
|
|
import {Factory} from '../support/factory'
|
|
|
|
export class BucketFactory extends Factory {
|
|
static table = 'buckets'
|
|
|
|
static factory() {
|
|
const now = new Date()
|
|
|
|
return {
|
|
id: '{increment}',
|
|
title: faker.lorem.words(3),
|
|
project_id: 1,
|
|
created_by_id: 1,
|
|
created: now.toISOString(),
|
|
updated: now.toISOString(),
|
|
}
|
|
}
|
|
}
|