Socialify

Folder ..

Viewing TaskLog.ts
18 lines (14 loc) • 364.0 B

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn } from "typeorm";

@Entity()
export class TaskLog {
    @PrimaryGeneratedColumn()
    id: number;

    @Column()
    taskName: string;

    @Column()
    status: 'success' | 'error';

    @Column({ type: 'text', nullable: true })
    error?: string;

    @CreateDateColumn()
    executedAt: Date;
}