mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 15:49:10 +00:00
56 lines
648 B
TypeScript
56 lines
648 B
TypeScript
import { Column, Entity, Index } from 'typeorm';
|
|
import BaseModel from './BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
|
|
|
|
@Entity({
|
|
name: "EmailLog"
|
|
})
|
|
export default class EmailLog extends BaseModel {
|
|
|
|
@Column()
|
|
fromEmail!: string;
|
|
|
|
@Column()
|
|
fromName!: string;
|
|
|
|
|
|
@Column()
|
|
project!: Project;
|
|
|
|
|
|
@Column()
|
|
toEmail!: string;
|
|
|
|
@Column()
|
|
subject!: string;
|
|
|
|
@Column()
|
|
body!: string;
|
|
|
|
@Column()
|
|
templateType!: string;
|
|
|
|
@Column()
|
|
status!: string;
|
|
|
|
@Column()
|
|
errorDescription!: string;
|
|
|
|
@Column()
|
|
smtpHost!: string;
|
|
|
|
|
|
@Column()
|
|
deletedByUser!: User;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|