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,17 +1,17 @@
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
import { User } from './user';
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core'
import { User } from './user'
@Entity()
export class PasswordResetToken {
@PrimaryKey()
id!: number;
id!: number
@ManyToOne(() => User)
user!: User;
user!: User
@Property({ unique: true })
token!: string;
token!: string
@Property()
createdAt = new Date();
}
createdAt = new Date()
}