3
0
corteza/compose/attachment.cue

54 lines
1.1 KiB
CUE

package compose
import (
"github.com/cortezaproject/corteza-server/codegen/schema"
)
attachment: schema.#Resource & {
features: {
labels: false
}
struct: {
id: schema.IdField
owner_id: { goType: "uint64", storeIdent: "rel_owner", ident: "ownerID" }
namespace_id: { goType: "uint64", storeIdent: "rel_namespace", ident: "namespaceID" }
kind: {}
url: {}
preview_url: {}
name: {}
meta: { goType: "types.AttachmentMeta" }
created_at: schema.SortableTimestampField
updated_at: schema.SortableTimestampNilField
deleted_at: schema.SortableTimestampNilField
}
filter: {
struct: {
kind: {}
namespace_id: { goType: "uint64", ident: "namespaceID" }
page_id: { goType: "uint64", ident: "pageID" }
record_id: { goType: "uint64", ident: "recordID" }
module_id: { goType: "uint64", ident: "moduleID" }
field_name: { }
}
byValue: ["kind", "namespace_id"]
}
store: {
ident: "composeAttachment"
settings: {
rdbms: {
table: "compose_attachment"
}
}
api: {
lookups: [
{ fields: ["id"] },
]
}
}
}