wangzhibo
2026-08-16 c19f1f7e21c93d1f13b4f44a8a615f65af577559
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// 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;
}