forked from vikunja/frontend
22 lines
411 B
TypeScript
22 lines
411 B
TypeScript
import {Factory} from '../support/factory'
|
|
import {faker} from '@faker-js/faker'
|
|
|
|
export class LinkShareFactory extends Factory {
|
|
static table = 'link_shares'
|
|
|
|
static factory() {
|
|
const now = new Date()
|
|
|
|
return {
|
|
id: '{increment}',
|
|
hash: faker.random.word(32),
|
|
list_id: 1,
|
|
right: 0,
|
|
sharing_type: 0,
|
|
shared_by_id: 1,
|
|
created: now.toISOString(),
|
|
updated: now.toISOString(),
|
|
}
|
|
}
|
|
}
|