1
0
forked from noxious/server

npm run format

This commit is contained in:
2024-12-25 02:06:58 +01:00
parent c35e27799e
commit b4989aac26
28 changed files with 252 additions and 243 deletions

View File

@ -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)
}