package com.zfire.jiasm.syncdata.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 省
 * </p>
 *
 * @author gejiang
 * @since 2023-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Province对象", description="省")
public class Province extends Model<Province> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "省id")
    @TableId(value = "province_id", type = IdType.ID_WORKER_STR)
    private String provinceId;

    @ApiModelProperty(value = "省份")
    private String province;

    @ApiModelProperty(value = "0=历史 1=正常")
    private Boolean status;

    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "首字母(大写)")
    @TableField("Initial")
    private String Initial;


    @Override
    protected Serializable pkVal() {
        return this.provinceId;
    }

}
