import { EntityModel } from '@midwayjs/orm';
import { BaseEntity } from 'midwayjs-cool-core';
import { Column } from 'typeorm';

/**
 * 身份信息使用记录表
 */
@EntityModel('shuyou_id_card_usage')
export class ShuyouIdCardUsageEntity extends BaseEntity {

  @Column({ comment: '身份证号',length: 100})
  id_number: string;

  @Column({ comment: 'id_card表中主键id'})
  id_idCard: number;

  @Column({ comment: '使用渠道,默认为0,表示其他', default:'0', length: 100})
  channel: string;

  @Column({ comment: '该渠道使用次数', default:0 })
  use_count: number;


}
