mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
47 lines
1.0 KiB
TypeScript
47 lines
1.0 KiB
TypeScript
import { Column, Entity } from 'typeorm';
|
|
import BaseModel from 'Common/Models/BaseModel';
|
|
import User from './User';
|
|
import Project from './Project';
|
|
import Email from 'Common/Types/Email';
|
|
import EmailTemplateType from 'Common/Types/Email/EmailTemplateType';
|
|
import OperationResult from 'Common/Types/Operation/OperationResult';
|
|
import Hostname from 'Common/Types/API/Hostname';
|
|
|
|
@Entity({
|
|
name: 'EmailLog',
|
|
})
|
|
export default class EmailLog extends BaseModel {
|
|
@Column()
|
|
public fromEmail?: Email = undefined;
|
|
|
|
@Column()
|
|
public fromName?: string = undefined;
|
|
|
|
@Column()
|
|
public project?: Project;
|
|
|
|
@Column()
|
|
public toEmail?: Email = undefined;
|
|
|
|
@Column()
|
|
public subject?: string = undefined;
|
|
|
|
@Column()
|
|
public body?: string = undefined;
|
|
|
|
@Column()
|
|
public templateType?: EmailTemplateType;
|
|
|
|
@Column()
|
|
public status?: OperationResult;
|
|
|
|
@Column()
|
|
public errorDescription?: string = undefined;
|
|
|
|
@Column()
|
|
public smtpHost?: Hostname;
|
|
|
|
@Column()
|
|
public deletedByUser?: User;
|
|
}
|