package com.gxwebsoft.shop.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.gxwebsoft.common.system.entity.Area;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分红角色
 *
 * @author 科技小王子
 * @since 2024-12-02 12:43:40
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "CommissionRole对象", description = "分红角色")
@TableName("shop_commission_role")
public class CommissionRole implements Serializable {
    private static final long serialVersionUID = 1L;

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

    private String title;

    private Integer provinceId;

    private Integer cityId;

    private Integer regionId;

    @ApiModelProperty(value = "状态, 0正常, 1异常")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private Area province;

    @TableField(exist = false)
    private Area city;

    @TableField(exist = false)
    private Area region;
}
