package com.fdkankan.scene.entity; import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Getter; import lombok.Setter; /** *
* 用户角色关系表 *
* * @author * @since 2023-01-03 */ @Getter @Setter @TableName("t_user_role") public class UserRole implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) private Long id; /** * 用户表id */ @TableField("user_id") private Long userId; /** * 角色表id */ @TableField("role_id") private Long roleId; /** * 创建时间 */ @TableField("create_time") private Date createTime; /** * 记录的状态,A: 生效,I: 禁用 */ @TableField("rec_status") @TableLogic(value = "A", delval = "I") private String recStatus; /** * 更新时间 */ @TableField("update_time") private Date updateTime; }