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'
|
|
|
|
|
|
|
|
export class UserListFactory extends Factory {
|
2021-03-30 18:41:05 +00:00
|
|
|
static table = 'users_lists'
|
2020-12-10 13:52:35 +00:00
|
|
|
|
|
|
|
static factory() {
|
|
|
|
const now = new Date()
|
|
|
|
|
|
|
|
return {
|
|
|
|
id: '{increment}',
|
|
|
|
list_id: 1,
|
|
|
|
user_id: 1,
|
|
|
|
right: 0,
|
2022-12-15 21:35:17 +00:00
|
|
|
created: now.toISOString(),
|
|
|
|
updated: now.toISOString(),
|
2020-12-10 13:52:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|