forked from noxious/server
npm run format
This commit is contained in:
@ -1,33 +1,33 @@
|
||||
import { randomUUID } from 'node:crypto';
|
||||
import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
|
||||
import { SpriteAction } from './spriteAction';
|
||||
import { CharacterType } from './characterType';
|
||||
import { CharacterHair } from './characterHair';
|
||||
import { Item } from './item';
|
||||
import { randomUUID } from 'node:crypto'
|
||||
import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
|
||||
import { SpriteAction } from './spriteAction'
|
||||
import { CharacterType } from './characterType'
|
||||
import { CharacterHair } from './characterHair'
|
||||
import { Item } from './item'
|
||||
|
||||
@Entity()
|
||||
export class Sprite {
|
||||
@PrimaryKey()
|
||||
id = randomUUID();
|
||||
id = randomUUID()
|
||||
|
||||
@Property()
|
||||
name!: string;
|
||||
name!: string
|
||||
|
||||
@Property()
|
||||
createdAt = new Date();
|
||||
createdAt = new Date()
|
||||
|
||||
@Property()
|
||||
updatedAt = new Date();
|
||||
updatedAt = new Date()
|
||||
|
||||
@OneToMany(() => SpriteAction, action => action.sprite)
|
||||
spriteActions = new Collection<SpriteAction>(this);
|
||||
@OneToMany(() => SpriteAction, (action) => action.sprite)
|
||||
spriteActions = new Collection<SpriteAction>(this)
|
||||
|
||||
@OneToMany(() => CharacterType, type => type.sprite)
|
||||
characterTypes = new Collection<CharacterType>(this);
|
||||
@OneToMany(() => CharacterType, (type) => type.sprite)
|
||||
characterTypes = new Collection<CharacterType>(this)
|
||||
|
||||
@OneToMany(() => CharacterHair, hair => hair.sprite)
|
||||
characterHairs = new Collection<CharacterHair>(this);
|
||||
@OneToMany(() => CharacterHair, (hair) => hair.sprite)
|
||||
characterHairs = new Collection<CharacterHair>(this)
|
||||
|
||||
@OneToMany(() => Item, item => item.sprite)
|
||||
items = new Collection<Item>(this);
|
||||
}
|
||||
@OneToMany(() => Item, (item) => item.sprite)
|
||||
items = new Collection<Item>(this)
|
||||
}
|
||||
|
Reference in New Issue
Block a user