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

/**
 * 身份信息
 */
@EntityModel('shuyou_id_card')
export class ShuyouIdCardEntity extends BaseEntity {
  @Index()
  @Column({ comment: '姓名',length: 100 })
  id_name: string;

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

  @Column({ comment: '标记',nullable:true })
  flag: string;

}
