提交 4962420d 作者: 方治民

feat: disabled/deleted 添加默认值

上级 8df0cf55
...@@ -86,7 +86,7 @@ public class Permission extends BasicEntity implements Serializable { ...@@ -86,7 +86,7 @@ public class Permission extends BasicEntity implements Serializable {
Boolean hidden; Boolean hidden;
@Comment("是否禁用") @Comment("是否禁用")
@Column(columnDefinition = "bool default false") @Column(columnDefinition = "bool default false", nullable = false)
Boolean disabled; Boolean disabled;
@Comment("权限父级ID") @Comment("权限父级ID")
......
...@@ -61,7 +61,7 @@ public class Role extends BasicEntity implements Serializable { ...@@ -61,7 +61,7 @@ public class Role extends BasicEntity implements Serializable {
String name; String name;
@Comment("是否禁用") @Comment("是否禁用")
@Column(columnDefinition = "bool default false") @Column(columnDefinition = "bool default false", nullable = false)
Boolean disabled; Boolean disabled;
@JsonIgnore @JsonIgnore
......
...@@ -60,7 +60,7 @@ public class BasicEntity { ...@@ -60,7 +60,7 @@ public class BasicEntity {
@Builder.Default @Builder.Default
@Comment("删除时间") @Comment("删除时间")
@Column(columnDefinition = "bool default false") @Column(columnDefinition = "bool default false", nullable = false)
Boolean deleted = Boolean.FALSE; Boolean deleted = Boolean.FALSE;
public interface Where { public interface Where {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论