CREATE TABLE IF NOT EXISTS runtime_engines (
  code                TEXT PRIMARY KEY,
  name                TEXT NOT NULL,
  icon                TEXT,
  protocol            TEXT NOT NULL,
  access_key_id       TEXT,
  access_key_secret   TEXT,
  security_token      TEXT,
  account_id          TEXT,
  region_id           TEXT DEFAULT 'cn-hangzhou',
  runtime_name        TEXT,
  endpoint_name       TEXT DEFAULT 'default',
  runtime_id          TEXT,
  endpoint_id         TEXT,
  endpoint_public_url TEXT,
  runtime_status      TEXT,
  endpoint_status     TEXT,
  enabled             INTEGER DEFAULT 0,
  is_active           INTEGER DEFAULT 0,
  updated_at          INTEGER
);

INSERT OR IGNORE INTO runtime_engines (
  code, name, icon, protocol, region_id, endpoint_name, enabled, is_active, updated_at
) VALUES (
  'agentrun', '阿里云 AgentRun', '☁️', 'agentrun', 'cn-hangzhou', 'default', 0, 0, unixepoch()
);
