package com.chinaweal.aiccs.aiccs.business.entity;

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

/**
 * <p>
 * 业务组用户与流程关系表
 * </p>
 *
 * @author <a href="https://blog.lroyia.top">lroyia</a>
 * @since 2021-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tsrefgroupanduser")
public class TSRefGroupAndUser extends Model<TSRefGroupAndUser> {

    private static final long serialVersionUID=1L;

    /**
     * 关系主键
     */
    @TableId(value = "REFID", type = IdType.ASSIGN_UUID)
    private String refid;

    /**
     * 组id
     */
    @TableField("GROUPID")
    private String groupid;

    /**
     * 用户id
     */
    @TableField("USERID")
    private String userid;

    /**
     * 流程id
     */
    @TableField("PROCESSID")
    private String processid;

    /**
     * 最后更新时间
     */
    @TableField("LAUPTIME")
    private LocalDateTime lauptime;

    /**
     * 地区编码
     */
    @TableField("AREA_CODE")
    private String areaCode;


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

}
