ConstBuild a feature's component facet map from its schema scopes, stamping each
scope's flags (see ScopeGroups). Declare only the scopes you use —
a document-only feature is just { document: { … } }. Component entries are
any Schema; no default required (unlike Database.resources).
export const components = Database.components({
document: { mark: PlayerMark.schema },
session: { dragPosition: DragPosition.schema },
});
Facet builders for a feature's
core-database. Each groups declarations by schema scope (document/settings/presence/session) and stamps the matching flags; archetypes validate keys against the component map. See thefacets/folder.