feat: 新增预警定时扫描器,移除附件归档字段并为角色表补充更新时间
This commit is contained in:
@@ -30,6 +30,7 @@ func (Role) Fields() []ent.Field {
|
||||
dialect.Postgres: "jsonb",
|
||||
}).Comment("权限编码列表,如 produce.workorder:view"),
|
||||
field.Time("createdAt").Default(time.Now).Immutable(),
|
||||
field.Time("updatedAt").Default(time.Now).UpdateDefault(time.Now).Optional().Nillable().Comment("更新时间"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user