package com.zanxiang.game.gs.data.serve.pojo.entity.game.order;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 游戏授权角色分组 实体类。
 *
 * @author shaosong
 * @since 1.0
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "t_game_auth_role_group")
public class GameAuthRoleGroup {

    /**
     * SDK来源
     */
    @Column(value = "source_system")
    private String sourceSystem;

    /**
     * 主键
     */
    @Column(value = "id")
    private Long id;

    /**
     * 用户id
     */
    @Column(value = "user_id")
    private Long userId;

    /**
     * 分组id
     */
    @Column(value = "group_id")
    private Long groupId;

    /**
     * 是否组长
     */
    @Column(value = "is_leader")
    private Integer isLeader;

    /**
     * 0正常1删除
     */
    @Column(value = "is_delete",isLogicDelete = true)
    private Integer isDelete;

    /**
     * 创建者
     */
    @Column(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @Column(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新者
     */
    @Column(value = "update_by")
    private Long updateBy;

    /**
     * 更新时间
     */
    @Column(value = "update_time")
    private LocalDateTime updateTime;


}
