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