A corporation manager and dashboard for EVE Online
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.
 
 
 
 
 

28 lines
642 B

  1. -- Schema for Calefaction's internal database
  2. DROP TABLE IF EXISTS session;
  3. CREATE TABLE session (
  4. session_id INTEGER PRIMARY KEY AUTOINCREMENT,
  5. session_character INTEGER DEFAULT NULL,
  6. session_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  7. session_touched TIMESTAMP DEFAULT CURRENT_TIMESTAMP
  8. );
  9. DROP TABLE IF EXISTS character;
  10. CREATE TABLE character (
  11. character_id INTEGER PRIMARY KEY,
  12. character_name TEXT,
  13. character_style TEXT DEFAULT NULL
  14. );
  15. DROP TABLE IF EXISTS auth;
  16. CREATE TABLE auth (
  17. auth_character INTEGER PRIMARY KEY,
  18. auth_token BLOB,
  19. auth_refresh BLOB,
  20. auth_token_expiry TIMESTAMP
  21. );