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

36 lines
470 B
TypeScript

import { Column, Entity, Index } from 'typeorm';
import BaseModel from './BaseModel';
import Project from './Project';
@Entity({
name: "DomainVerificationToken"
})
export default class Model extends BaseModel {
@Index()
@Column()
domain!: string; // The main or base domain eg oneuptime.com
@Column()
verificationToken!: string;
@Column()
verified!: boolean;
@Column()
verifiedAt!: Date;
@Column()
project!: Project
}