package com.cool.store.entity.menu;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

/**
 * 小程序菜单配置
 */
@Table(name = "zxjp_mini_menu_config")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MiniMenuConfigDO {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 角色id
     */
    @Column(name = "role_id")
    private Long roleId;

    /**
     * 菜单
     */
    @Column(name = "menu_id")
    private Long menuId;
}