package com.dtok.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.util.List;

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

/**
 * @Description  
 * @Author  C.J
 * @Date 2024-03-08 
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table ( name ="acc_permission" )
public class Permission implements Serializable {

	private static final long serialVersionUID =  8390331033213864704L;

	@Id
   	@Column(name = "code" )
	private String code;

   	@Column(name = "name" )
	private String name;

   	@Column(name = "is_active" )
	private Integer isActive;

   	@Column(name = "url" )
	private String url;

   	@Column(name = "icon" )
	private String icon;

   	@Column(name = "seq" )
	private Long seq;

   	@Column(name = "parent" )
	private String parent;

   	@Column(name = "level" )
	private Long level;

   	@Column(name = "is_menu" )
	private Integer isMenu;

	@Transient
	private List<Permission> children;
}
