1
0
forked from noxious/server

Added README.md, started refactoring init. command

This commit is contained in:
2024-12-25 19:07:03 +01:00
parent bf64a6df70
commit 2de2bec705
8 changed files with 250 additions and 274 deletions

View File

@ -1,3 +1,4 @@
import { randomUUID } from 'node:crypto'
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
import { BaseEntity } from '#application/bases/baseEntity'
import { Zone } from './zone'
@ -5,7 +6,7 @@ import { Zone } from './zone'
@Entity()
export class ZoneEffect extends BaseEntity {
@PrimaryKey()
id!: string
id = randomUUID()
@ManyToOne(() => Zone)
zone!: Zone