import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'; import { Character } from './character'; import { Chat } from './chat'; @Entity() export class Zone { @PrimaryKey() id!: number; @OneToMany(() => Character, character => character.zone) characters = new Collection(this); @OneToMany(() => Chat, chat => chat.zone) chats = new Collection(this); }