database.sql 348 B

1234567891011
  1. CREATE TABLE IF NOT EXISTS 'user' (
  2. 'id' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
  3. 'username' VARCHAR(35) DEFAULT NULL,
  4. 'password' VARCHAR(35) DEFAULT NULL
  5. );
  6. CREATE TABLE IF NOT EXISTS 'log' (
  7. 'id' INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
  8. 'description' VARCHAR(160) DEFAULT NULL,
  9. 'id_user' INTEGER DEFAULT NULL REFERENCES 'user' ('id')
  10. );