+/- table definition

Query

CREATE TABLE communication_comments  (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  communication_id INTEGER NOT NULL REFERENCES communications(id) ON DELETE CASCADE,
  comment TEXT NOT NULL,
  link TEXT,
  created_by INTEGER REFERENCES users(id),
  created_at TEXT NOT NULL DEFAULT (datetime('now','localtime'))
)
Use Shift + Up/Down to navigate recently-executed queries