forked from noxious/server
npm run format
This commit is contained in:
@ -1,25 +1,25 @@
|
||||
import { Collection, Entity, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { Character } from './character';
|
||||
import { Sprite } from './sprite';
|
||||
import { CharacterGender } from '#utilities/enums';
|
||||
import { Collection, Entity, ManyToOne, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
import { Character } from './character'
|
||||
import { Sprite } from './sprite'
|
||||
import { CharacterGender } from '#utilities/enums'
|
||||
|
||||
@Entity()
|
||||
export class CharacterHair {
|
||||
@PrimaryKey()
|
||||
id!: number;
|
||||
id!: number
|
||||
|
||||
@Property()
|
||||
name!: string;
|
||||
name!: string
|
||||
|
||||
@Property()
|
||||
gender: CharacterGender = CharacterGender.MALE;
|
||||
gender: CharacterGender = CharacterGender.MALE
|
||||
|
||||
@Property()
|
||||
isSelectable = false;
|
||||
isSelectable = false
|
||||
|
||||
@ManyToOne(() => Sprite, { nullable: true })
|
||||
sprite?: Sprite;
|
||||
sprite?: Sprite
|
||||
|
||||
@OneToMany(() => Character, character => character.characterHair)
|
||||
characters = new Collection<Character>(this);
|
||||
}
|
||||
@OneToMany(() => Character, (character) => character.characterHair)
|
||||
characters = new Collection<Character>(this)
|
||||
}
|
||||
|
Reference in New Issue
Block a user