content: package ai.llmchat.server.repository.entity;
  
  import com.baomidou.mybatisplus.annotation.FieldFill;
  import com.baomidou.mybatisplus.annotation.IdType;
  import com.baomidou.mybatisplus.annotation.TableField;
  import com.baomidou.mybatisplus.annotation.TableId;
  import com.baomidou.mybatisplus.annotation.TableName;
  import java.io.Serializable;
  import java.time.LocalDateTime;
  import lombok.Getter;
  import lombok.Setter;
  import lombok.experimental.Accessors;
  
  /**
   * <p>
   * 用户角色关联表
   * </p>
   *
   * @author lixw
   * @since 2024-10-24
   */
  @Getter
  @Setter
  @Accessors(chain = true)
  @TableName("oauth_user_role")
  public class OauthUserRole implements Serializable {
  
  	private static final long serialVersionUID = 1L;
  
  	@TableId(value = "id", type = IdType.ASSIGN_ID)
  	private Long id;
  
  	/**
  	 * 用户Id
  	 */
  	@TableField("user_id")
  	private Long userId;
  
  	/**
  	 * 角色Id
  	 */
  	@TableField("role_id")
  	private Long roleId;
  
  	/**
  	 * 状态:0-无效;1-有效
  	 */
  	@TableField(value = "status", fill = FieldFill.INSERT)
  	private Integer status;
  
  	/**
  	 * 创建人
  	 */
  	@TableField(value = "create_by", fill = FieldFill.INSERT)
  	private String createBy;
  
  	/**
  	 * 创建时间
  	 */
  	@TableField(value = "create_at", fill = FieldFill.INSERT)
  	private LocalDateTime createAt;
  
  	/**
  	 * 更新人
  	 */
  	@TableField(value = "update_by", fill = FieldFill.INSERT_UPDATE)
  	private String updateBy;
  
  	/**
  	 * 更新时间
  	 */
  	@TableField(value = "update_at", fill = FieldFill.INSERT_UPDATE)
  	private LocalDateTime updateAt;
  
  }
  