dankventskalender migrate to flask
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 satır
466B

  1. DROP TABLE IF EXISTS user;
  2. DROP TABLE IF EXISTS post;
  3. CREATE TABLE user (
  4. id INTEGER PRIMARY KEY AUTOINCREMENT,
  5. username TEXT UNIQUE NOT NULL,
  6. password TEXT NOT NULL
  7. );
  8. CREATE TABLE post (
  9. id INTEGER PRIMARY KEY AUTOINCREMENT,
  10. author_id INTEGER NOT NULL,
  11. created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
  12. title TEXT NOT NULL,
  13. nickname TEXT NOT NULL,
  14. body TEXT NOT NULL,
  15. file TEXT NOT NULL,
  16. FOREIGN KEY (author_id) REFERENCES user (id)
  17. );