This repository has been archived on 2024-02-08. You can view files and clone it, but cannot push or open issues or pull requests.
2020-12-10 13:52:35 +00:00
|
|
|
import {Factory} from '../support/factory'
|
|
|
|
import {formatISO} from "date-fns"
|
2022-01-20 07:54:39 +00:00
|
|
|
import faker from '@faker-js/faker'
|
2020-12-10 13:52:35 +00:00
|
|
|
|
|
|
|
export class LinkShareFactory extends Factory {
|
2021-03-30 18:41:05 +00:00
|
|
|
static table = 'link_shares'
|
2020-12-10 13:52:35 +00:00
|
|
|
|
|
|
|
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: formatISO(now),
|
|
|
|
updated: formatISO(now)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|