Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

736 B
Raw Blame
// The Slack edge's own tables, applied with the connector schema; same column rules as there.
const SLACK_SCHEMA = `
CREATE TABLE IF NOT EXISTS connector_slack_installs (
  team_id TEXT PRIMARY KEY,
  bot_user_id TEXT NOT NULL,
  bot_token TEXT NOT NULL,
  paused INTEGER NOT NULL,
  installed_at BIGINT NOT NULL
);

CREATE TABLE IF NOT EXISTS connector_slack_users (
  team_id TEXT NOT NULL,
  slack_user_id TEXT NOT NULL,
  membership TEXT NOT NULL,
  display_name TEXT NOT NULL,
  checked_at BIGINT NOT NULL,
  PRIMARY KEY (team_id, slack_user_id)
);
`

export function slackSchemaStatements(): string[] {
  return SLACK_SCHEMA.split(';')
    .map((statement) => statement.trim())
    .filter((statement) => statement.length > 0)
}