// adminx-storage/src/schema.rs
//
// SQL bootstrap for the attachment-metadata table. As with the RBAC and audit
// tables, `Storage` has no portable "create table" primitive, so a SQL backend
// runs this at startup and Mongo needs nothing.
//
// Dialect note: SQLite-flavoured (the demo backend). On PostgreSQL use
// `SERIAL PRIMARY KEY`, on MySQL `INT AUTO_INCREMENT PRIMARY KEY` — supply your
// own migration.
/// `CREATE TABLE IF NOT EXISTS` + index for the attachment table. Run once on a
/// SQL backend via `adminx_core::seed(adminx_storage::migrate_sql())`.
///
/// One row per attached file. `(owner_type, owner_id, field)` is unique — a
/// field holds at most one file, so re-uploading replaces. `storage_key` is the
/// opaque key handed to the `BlobStore`.
pub const SQL: & = &;