// src/modules/push/entity/capturetask.ts
|
import { BaseEntity } from '../../base/entity/base';
|
import { Column, Entity, Index } from 'typeorm';
|
|
@Entity('t_push_capture_task')
|
export class PushCaptureTaskEntity extends BaseEntity {
|
@Index()
|
@Column({ comment: '设备序列号' })
|
deviceSerial: string;
|
|
@Column({ comment: '通道号', type: 'int', default: 0 })
|
channelNo: number;
|
|
@Column({ comment: '抓图任务ID(萤石返回)', nullable: true })
|
captureTaskId: string;
|
|
@Column({ comment: '云空间spaceId', nullable: true })
|
spaceId: string;
|
|
@Column({ comment: '图片在云空间的URL', type: 'text', nullable: true })
|
cloudUrl: string;
|
|
@Column({ comment: '图片在本地的URL', type: 'text', nullable: true })
|
localUrl: string;
|
|
@Column({ comment: '本地存储路径', type: 'text', nullable: true })
|
localPath: string;
|
|
@Column({ comment: '抓拍状态', dict: ['PENDING','SUCCESS','FAILED'], default: 'PENDING' })
|
status: string;
|
|
@Column({ comment: '任务执行日期', nullable: true })
|
captureDate: string;
|
}
|