package com.codvision.basic.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author KX
 */
@Data
@Builder
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_person")
public class Person implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @ApiModelProperty("出生日期")
    private String birthday;

    @ApiModelProperty("宗教信仰-字典(RELIGIOUS)")
    private String religious;

    @ApiModelProperty("文化程度-字典(EDUCATION)")
    private String education;

    @ApiModelProperty("民族-字典(NATION)")
    private String nation;

    @ApiModelProperty("兵役状况-字典(MILITARY_STATUS)")
    private String militaryStatus;

    @ApiModelProperty("人口类型-字典(PERSON_TYPE)")
    private String personType;

    @ApiModelProperty("证件号码")
    private String idCard;

    @ApiModelProperty("户籍地编码")
    private String residenceCode;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("现住地详址")
    private String inhabitedAddress;

    @ApiModelProperty("现住地编码")
    private String inhabitedCode;

    @ApiModelProperty("证件类型-字典(ID_TYPE)")
    private String idType;

    @ApiModelProperty("曾用名")
    private String usedName;

    @ApiModelProperty("人员标签(,逗号隔开)")
    private String personTags;

    @TableLogic
    @ApiModelProperty("删除标记,1:已删除,0:正常")
    private Integer delFlag;

    @ApiModelProperty("性别-字典(PERSON_SEX)")
    private String sex;

    @ApiModelProperty("户籍地详址")
    private String residenceAddress;

    @ApiModelProperty("籍贯")
    private String nativePlace;

    @ApiModelProperty("婚姻状况-字典(MARITAL_STATUS)")
    private String maritalStatus;

    @ApiModelProperty("国籍-字典(NATIONALITY)")
    private String nationality;

    @ApiModelProperty("联系电话")
    private String phone;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("政治面貌-字典(POLITIC_FACE)")
    private String politicFace;

    @ApiModelProperty("年龄")
    private Integer age;

    @ApiModelProperty("组织id")
    private Integer oid;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}