import { Column, Entity, PrimaryGeneratedColumn, VersionColumn } from 'typeorm';

/**
 * 数据记录
 */
@Entity()
export class ReportData {
  @PrimaryGeneratedColumn('increment')
  id: number;

  @Column({ name: 'create_time', comment: '上报数据创建时间' })
  createTime: Date;

  @Column({ name: 'end_time', comment: '上报结束时间' })
  endTime: Date;

  @Column({ comment: '预览人' })
  creator: string;

  @Column({ comment: '数据类型' })
  type: string;

  @Column({ comment: '上报页面' })
  page: string;

  @VersionColumn({ select: false, comment: '更新版本' })
  version: number;

  @Column({ nullable: true, comment: '备注说明' })
  remarks: string;

  @Column({ nullable: true, comment: '备用字段' })
  field01: string;

  @Column({ nullable: true, comment: '备用字段' })
  field02: string;

  @Column({ nullable: true, comment: '备用字段' })
  field03: string;
}
