+/- table definition

Query

CREATE TABLE textbook_lessons  (
  id          INTEGER PRIMARY KEY AUTOINCREMENT,
  unit_id     INTEGER NOT NULL REFERENCES textbook_units(id),
  lesson_order INTEGER NOT NULL,
  -- 课序号
    title       TEXT NOT NULL,
  -- 课文标题
    lesson_type TEXT DEFAULT 'text',
  -- text/poem/vocab/dialogue/song
    page_start  INTEGER,
  -- 起始页码(对应扫描图)
    page_end    INTEGER,
  -- 结束页码
    created_at  DATETIME DEFAULT (datetime('now'))
)
Use Shift + Up/Down to navigate recently-executed queries