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,27 +1,27 @@
import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
import { Character } from './character';
import { PasswordResetToken } from './passwordResetToken';
import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core'
import { Character } from './character'
import { PasswordResetToken } from './passwordResetToken'
@Entity()
export class User {
@PrimaryKey()
id!: number;
id!: number
@Property({ unique: true })
username!: string;
username!: string
@Property({ unique: true })
email!: string;
email!: string
@Property()
password!: string;
password!: string
@Property()
online = false;
online = false
@OneToMany(() => Character, character => character.user)
characters = new Collection<Character>(this);
@OneToMany(() => Character, (character) => character.user)
characters = new Collection<Character>(this)
@OneToMany(() => PasswordResetToken, token => token.user)
passwordResetTokens = new Collection<PasswordResetToken>(this);
}
@OneToMany(() => PasswordResetToken, (token) => token.user)
passwordResetTokens = new Collection<PasswordResetToken>(this)
}