Mailservice

This commit is contained in:
Bastian Wagner
2025-01-20 13:17:00 +01:00
parent abb703f592
commit add2fd0240
19 changed files with 3071 additions and 67 deletions

View File

@@ -0,0 +1,33 @@
import {
Column,
CreateDateColumn,
Entity,
ManyToOne,
PrimaryGeneratedColumn,
} from 'typeorm';
import { KeySystem } from '../system.entity';
import { EmailEvent } from 'src/modules/log/log.service';
@Entity()
export class EmailLog {
@PrimaryGeneratedColumn('uuid')
id: string;
@CreateDateColumn({ name: 'created_at' })
createdAt: Date;
@Column({ type: 'text'})
to: string;
@Column({ type: 'text'})
message: string;
@Column({ name: 'type', type: 'text',})
type: EmailEvent;
@ManyToOne(() => KeySystem, { nullable: true })
system: KeySystem;
@Column({type: 'boolean'})
success: boolean;
}