mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
* lint @typescript-eslint/recommended * lint @typescript-eslint/recommended-requiring-type-checking fix type not detected locally due to wierd uuid typings missing save error not reported locally --------- Co-authored-by: Wolfgang Huß <wolle.huss@pjannto.com>
22 lines
619 B
TypeScript
22 lines
619 B
TypeScript
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
import { v4 as uuid } from 'uuid'
|
|
|
|
export default {
|
|
id: { type: 'string', primary: true, default: uuid },
|
|
name: { type: 'string', required: true, default: false },
|
|
slug: { type: 'string', unique: 'true' },
|
|
icon: { type: 'string', required: true, default: false },
|
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
|
updatedAt: {
|
|
type: 'string',
|
|
isoDate: true,
|
|
required: false,
|
|
},
|
|
post: {
|
|
type: 'relationship',
|
|
relationship: 'CATEGORIZED',
|
|
target: 'Post',
|
|
direction: 'in',
|
|
},
|
|
}
|