chore: src/modules/task/entity/log.ts

This commit is contained in:
2026-07-01 17:57:25 +08:00
parent 0ab81ac44a
commit 433f7f8a9c
+18
View File
@@ -0,0 +1,18 @@
import { BaseEntity } from '../../base/entity/base';
import { Column, Index, Entity } from 'typeorm';
/**
* 任务日志
*/
@Entity('task_log')
export class TaskLogEntity extends BaseEntity {
@Index()
@Column({ comment: '任务ID', nullable: true })
taskId: number;
@Column({ comment: '状态 0-失败 1-成功', default: 0 })
status: number;
@Column({ comment: '详情描述', nullable: true, type: 'text' })
detail: string;
}