package system import ( "github.com/cortezaproject/corteza/server/codegen/schema" ) report: { model: { attributes: { id: schema.IdField handle: schema.HandleField meta: { goType: "*types.ReportMeta" dal: { type: "JSON", defaultEmptyObject: true } omitSetter: true omitGetter: true } scenarios: { goType: "types.ReportScenarioSet" dal: { type: "JSON", defaultEmptyObject: true } omitSetter: true omitGetter: true } sources: { goType: "types.ReportDataSourceSet" dal: { type: "JSON", defaultEmptyObject: true } omitSetter: true omitGetter: true } blocks: { goType: "types.ReportBlockSet" dal: { type: "JSON", defaultEmptyObject: true } omitSetter: true omitGetter: true } owned_by: schema.AttributeUserRef created_at: schema.SortableTimestampNowField updated_at: schema.SortableTimestampNilField deleted_at: schema.SortableTimestampNilField created_by: schema.AttributeUserRef updated_by: schema.AttributeUserRef deleted_by: schema.AttributeUserRef } indexes: { "primary": { attribute: "id" } } } envoy: { yaml: { supportMappedInput: true mappedField: "Handle" identKeyAlias: ["reports"] } store: {} } filter: { struct: { report_id: {goType: "[]uint64", storeIdent: "id", ident: "reportID" } handle: {goType: "string"} deleted: {goType: "filter.State", storeIdent: "deleted_at"} } query: ["handle"] byValue: ["handle", "report_id"] byNilState: ["deleted"] } rbac: { operations: { read: description: "Read report" update: description: "Update report" delete: description: "Delete report" run: description: "Run report" } } store: { api: { lookups: [ { fields: ["id"] description: """ searches for report by ID It returns report even if deleted """ }, { fields: ["handle"] nullConstraint: ["deleted_at"] constraintCheck: true description: """ searches for report by handle It returns report if deleted """ }, ] } } // locale: // extended: true // keys: // - { path: name, field: "Meta.Name" } // - { path: description, field: "Meta.Description" } // - { name: block title, path: "block.{{blockID}}.title", custom: true } // - { name: block description, path: "block.{{blockID}}.description", custom: true } }