CREATE TABLE IF NOT EXISTS calendar_events (
  id TEXT PRIMARY KEY,
  title TEXT NOT NULL,
  date TEXT NOT NULL,
  time TEXT,
  location TEXT,
  node_id TEXT,
  color TEXT DEFAULT 'blue',
  created_at TEXT DEFAULT (datetime('now'))
);
