// Package db vendors the minimal subset of the CMS-internal sqlc types the // calcomblock plugin references for its settings storage. A standalone wasm // plugin may not import git.dev.alexdunmow.com/block/cms/internal/db, so the // two structs the plugin actually touches (only the Key + Value fields) are // reproduced here. // // Provenance: cms/backend/internal/db/{models.go (Setting), // settings.sql.go (UpsertSettingParams)}. The upstream structs also carry // UpdatedAt/UpdatedBy columns; the plugin never reads them, so they are // intentionally omitted from this vendored subset. package db // Setting mirrors the CMS `settings` row as far as the plugin consumes it. type Setting struct { Key string `json:"key"` Value []byte `json:"value"` } // UpsertSettingParams mirrors the upstream sqlc UpsertSetting params the plugin // constructs. type UpsertSettingParams struct { Key string `json:"key"` Value []byte `json:"value"` }