mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
29 lines
422 B
TypeScript
Executable File
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
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|