Files
vikunja/frontend/cypress/factories/link_sharing.ts
2025-08-13 11:05:05 +02:00

22 lines
418 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.lorem.word(32),
project_id: 1,
permission: 0,
sharing_type: 0,
shared_by_id: 1,
created: now.toISOString(),
updated: now.toISOString(),
}
}
}