import { type Opt, types } from '@mikro-orm/core'; import { Entity, Property } from '@mikro-orm/decorators/legacy'; import { MinimalBaseEntity } from './MinimalBaseEntity'; @Entity({ abstract: true }) export abstract class MinimalResourceBaseEntity extends MinimalBaseEntity { @Property({ type: types.string, nullable: true }) eid?: string; @Property({ type: types.json, nullable: false, default: '{}' }) attributes!: Record & Opt; @Property({ type: types.json, nullable: false, default: '{}' }) properties!: Record & Opt; @Property({ type: types.json, nullable: false, default: '{}' }) extensions!: Record & Opt; }