up.sql 400 B

12345678910111213141516171819
  1. -- word_statistics
  2. CREATE TABLE word_statistics
  3. (
  4. id SERIAL PRIMARY KEY,
  5. bookid INTEGER,
  6. word TEXT,
  7. count INTEGER,
  8. base TEXT,
  9. end1 TEXT,
  10. end2 TEXT,
  11. type INTEGER,
  12. length INTEGER,
  13. created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
  14. );
  15. -- 索引:pali
  16. CREATE INDEX word_statistics_bookid ON word_statistics (bookid);
  17. CREATE INDEX word_statistics_base ON word_statistics (base);