Add missing sorting to application codegen definition

This commit is contained in:
Tomaž Jerman
2022-06-16 13:06:23 +02:00
parent 4edcf0e838
commit ef503e433f
2 changed files with 13 additions and 3 deletions
+3 -3
View File
@@ -7,10 +7,10 @@ import (
application: schema.#Resource & {
struct: {
id: schema.IdField
name: {}
owner_id: { ident: "ownerID", goType: "uint64", storeIdent: "rel_owner" }
name: {sortable: true}
owner_id: { ident: "ownerID", goType: "uint64", storeIdent: "rel_owner", sortable: true }
enabled: {goType: "bool"}
weight: {goType: "int"}
weight: {goType: "int", sortable: true}
unify: {goType: "*types.ApplicationUnify"}
created_at: schema.SortableTimestampField
updated_at: schema.SortableTimestampNilField