package com.hzs.common.domain.member.base;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 会员信息-代理商信息
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("CU_MEMBER_AGENT_SEQ")
@TableName("CU_MEMBER_AGENT")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CuMemberAgent extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 会员ID
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 代理类型 (1=代理商,2=店铺)
     */
    @TableField("AGENT_TYPE")
    private Integer agentType;

    /**
     * 省
     */
    @TableField("AGENT_PROVINCE")
    private Integer agentProvince;

    /**
     * 市
     */
    @TableField("AGENT_CITY")
    private Integer agentCity;

    /**
     * 县
     */
    @TableField("AGENT_COUNTY")
    private Integer agentCounty;

    /**
     * 级别来源(1=代理商级别, 2=店铺级别)
     */
    @TableField("AGENT_GRADE")
    private Integer agentGrade;

}
