package com.chinaweal.aiccs.aiccs.market.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author sh
 * @since 2023-02-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("address_assign")
public class AddressAssign extends Model<AddressAssign> {

    private static final long serialVersionUID=1L;

    /**
     * 数据id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 识别地址
     */
    @TableField("address")
    private String address;

    /**
     * 片区id
     */
    @TableField("org_number")
    private String orgNumber;

    /**
     * 单双类型 0不区分单双号,1单,2双
     */
    @TableField("type")
    private String type;

    /**
     * 上传人
     */
    @TableField("operator")
    private String operator;

    /**
     * 删除人
     */
    @TableField("rem_operator")
    private String remOperator;

    /**
     * 插入时间
     */
    @TableField("insert_time")
    private LocalDateTime insertTime;

    /**
     * 删除时间
     */
    @TableField("rem_time")
    private LocalDateTime remTime;

    /**
     * 执行状态 0未执行，1已执行
     */
    @TableField("state")
    private String state;


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

}
