schema.sql 278 B

1234567891011
  1. CREATE TABLE IF NOT EXISTS games
  2. ( id INTEGER PRIMARY KEY ASC
  3. , name TEXT NOT NULL
  4. );
  5. CREATE TABLE IF NOT EXISTS chat
  6. ( id INTEGER PRIMARY KEY ASC
  7. , game INTEGER NOT NULL
  8. , user TEXT NOT NULL
  9. , content TEXT NOT NULL
  10. , FOREIGN KEY(game) REFERENCES games(id)
  11. );