mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2026-02-06 01:45:50 +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>
17 lines
470 B
TypeScript
17 lines
470 B
TypeScript
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
|
import { v4 as uuid } from 'uuid'
|
|
|
|
export default {
|
|
id: { type: 'string', primary: true, default: uuid },
|
|
url: { type: 'string', uri: true, required: true },
|
|
createdAt: { type: 'string', isoDate: true, default: () => new Date().toISOString() },
|
|
ownedBy: {
|
|
type: 'relationship',
|
|
relationship: 'OWNED_BY',
|
|
target: 'User',
|
|
direction: 'out',
|
|
eager: true,
|
|
cascade: 'detach',
|
|
},
|
|
}
|