package kr.co.accura.wbx.spring.rbac;

import jakarta.persistence.*;
import lombok.*;

@Entity
@Table(name = "wbx_roles")
@Getter @Setter
@NoArgsConstructor @AllArgsConstructor @Builder
public class WbxRole {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(nullable = false, unique = true, length = 30)
    private String code;

    @Column(nullable = false, length = 100)
    private String name;

    @Column(length = 500)
    private String description;

    @Builder.Default
    @Column(name = "is_system")
    private boolean isSystem = false;
}
