CREATE TABLE provider_drafts (
    id INTEGER PRIMARY KEY AUTOINCREMENT,
    draft_id TEXT NOT NULL UNIQUE,
    pack_id TEXT NOT NULL,
    provider_id TEXT NOT NULL,
    display_name TEXT NOT NULL,
    platform TEXT NOT NULL DEFAULT '',
    base_url TEXT NOT NULL DEFAULT '',
    smoke_test_model TEXT NOT NULL DEFAULT '',
    supported_models_json TEXT NOT NULL DEFAULT '[]',
    manifest_json TEXT NOT NULL DEFAULT '{}',
    source_host_id TEXT NOT NULL DEFAULT '',
    notes TEXT NOT NULL DEFAULT '',
    created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
);

CREATE INDEX idx_provider_drafts_pack_id ON provider_drafts(pack_id);
CREATE INDEX idx_provider_drafts_provider_id ON provider_drafts(provider_id);
