package com.rf.psychological.menu.dao.model;

import com.rf.psychological.base.model.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @Author:zzf
 * @Date:2022/7/7:14:52
 * @Description:菜单角色关联信息
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper=false)
@Table(name = "t_role_menu")
@org.hibernate.annotations.Table(appliesTo = "t_role_menu", comment = "角色菜单关联表")
@DynamicUpdate
public class RoleMenuEntry extends BaseEntity {
    @Column(name = "role",columnDefinition = "varchar(2) not null comment '角色'")
    private String role;
    @Column(name = "menu_no",columnDefinition = "varchar(20) not null comment '菜单编号'")
    private String menuNo;
}
