forked from noxious/server
npm run format
This commit is contained in:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user