add permission logic

This commit is contained in:
dirgantarasiahaan
2023-05-25 21:58:37 +07:00
parent f8f489f565
commit 6bc02da741
8 changed files with 163 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ import javax.persistence.*;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "permission")
public class Permission extends BaseEntity {
@@ -32,6 +33,10 @@ public class Permission extends BaseEntity {
@Type(type = "org.hibernate.type.NumericBooleanType")
private Boolean canView;
@Column(name = "can_create")
@Type(type = "org.hibernate.type.NumericBooleanType")
private Boolean canCreate;
@Column(name = "can_read")
@Type(type = "org.hibernate.type.NumericBooleanType")
private Boolean canRead;