import { Entity, Property, types, type Opt } from '@mikro-orm/core'; 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; }