All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.javaclub.base.domain.UserRole Maven / Gradle / Ivy

/* Automatic generated by CrudCodeGenerator wirtten by Gerald Chen
 *
 * @(#)UserRole.java	 2023-09-06
 *
 * Copyright (c) 2023 - 2099. All Rights Reserved.
 *
 */

package com.github.javaclub.base.domain;


import java.io.Serializable;
import java.util.Date;

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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * UserRole 实体类
 *
 * @version $Id: UserRole.java 2023-09-06 19:11:12 Exp $
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("s_sys_user_role")
@ApiModel(description = "用户与角色关联关系")
public class UserRole implements Serializable {

	private static final long serialVersionUID = 1693998671728L;
	
	@ApiModelProperty(value = "主键ID")	 
	@TableId(type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "用户ID")	 
	private Long userId;

	@ApiModelProperty(value = "角色ID")	 
	private Long roleId;
	
	@ApiModelProperty(value = "创建者ID")	 
	private Long creatorId;
	
	@ApiModelProperty(value = "创建时间")
	private Date createdTime;
	
	@ApiModelProperty(value = "修改时间")
	@TableField(update = "now()")
	private Date modifiedTime;


    public UserRole() {}

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy