oneuptime/Common/Models/UserVerificationToken.ts
2022-04-27 20:38:55 +01:00

29 lines
422 B
TypeScript
Executable File

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import User from './User';
@Entity({
name: "UserVerificationToken"
})
export default class UserVerificationToken extends BaseModel {
@Column({nullable: false})
user!: User
@Index()
@Column({nullable: false})
token!: string
@Column({nullable: false})
expires!: Date
}