/**
 * Applies the file data cache schema to the database.
 *
 * The cache stores materialized file data to avoid repeated
 * plugin processing and change aggregation.
 *
 * @example
 * applyFileDataCacheSchema(lix);
 */
export function applyFileDataCacheSchema(args) {
    args.engine.sqlite.exec(`
    CREATE TABLE IF NOT EXISTS lix_internal_file_data_cache (
      file_id TEXT NOT NULL,
      version_id TEXT NOT NULL,
      data BLOB NOT NULL,
      PRIMARY KEY (file_id, version_id)
    ) strict;

    -- Index for fast version_id filtering
    CREATE INDEX IF NOT EXISTS idx_lix_internal_file_data_cache_version_id 
      ON lix_internal_file_data_cache (version_id);
  `);
}
//# sourceMappingURL=schema.js.map