package system import ( "github.com/cortezaproject/corteza-server/codegen/schema" ) application: { model: { id: schema.IdField name: {sortable: true} owner_id: { ident: "ownerID", goType: "uint64", storeIdent: "rel_owner", sortable: true } enabled: {sortable: true, goType: "bool"} weight: {goType: "int", sortable: true} unify: {goType: "*types.ApplicationUnify"} created_at: schema.SortableTimestampField updated_at: schema.SortableTimestampNilField deleted_at: schema.SortableTimestampNilField } filter: { model: { name: {goType: "string"} // not sure about the type of flagged_ids flagged_ids: {goType: "[]uint64"} flags: {goType: "[]string"} inc_flags: {goType: "uint"} deleted: {goType: "filter.State", storeIdent: "deleted_at"} } query: ["name"] byValue: ["name"] byNilState: ["deleted"] } features: { flags: true } rbac: { operations: { read: description: "Read application" update: description: "Update application" delete: description: "Delete application" } } store: { api: { lookups: [ { fields: ["id"] description: """ searches for role by ID It returns role even if deleted or suspended """ }, ] functions: [ { expIdent: "ApplicationMetrics" return: [ "*types.ApplicationMetrics"] }, { expIdent: "ReorderApplications" // not sure about the ident args: [ {ident: "order", goType: "[]uint64"}] }, ] } } }