A corporation manager and dashboard for EVE Online
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

44 lignes
1.2 KiB

  1. -- Schema for Calefaction's internal database
  2. DROP TABLE IF EXISTS character;
  3. CREATE TABLE character (
  4. character_id INTEGER PRIMARY KEY,
  5. character_name TEXT,
  6. character_style TEXT DEFAULT NULL
  7. );
  8. DROP TABLE IF EXISTS session;
  9. CREATE TABLE session (
  10. session_id INTEGER PRIMARY KEY AUTOINCREMENT,
  11. session_character INTEGER DEFAULT NULL,
  12. session_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  13. session_touched TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  14. FOREIGN KEY (session_character) REFERENCES character (character_id)
  15. ON DELETE SET NULL ON UPDATE CASCADE
  16. );
  17. DROP TABLE IF EXISTS auth;
  18. CREATE TABLE auth (
  19. auth_character INTEGER PRIMARY KEY,
  20. auth_token BLOB,
  21. auth_refresh BLOB,
  22. auth_token_expiry TIMESTAMP,
  23. FOREIGN KEY (auth_character) REFERENCES character (character_id)
  24. ON DELETE CASCADE ON UPDATE CASCADE
  25. );
  26. DROP TABLE IF EXISTS character_prop;
  27. CREATE TABLE character_prop (
  28. cprop_character INTEGER,
  29. cprop_module TEXT,
  30. cprop_key TEXT,
  31. cprop_value TEXT,
  32. UNIQUE (cprop_character, cprop_module, cprop_key),
  33. FOREIGN KEY (cprop_character) REFERENCES character (character_id)
  34. ON DELETE CASCADE ON UPDATE CASCADE
  35. );