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.

schema_campaigns.sql 1.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. -- Schema for Calefaction's Campaign module's internal database
  2. DROP TABLE IF EXISTS last_updated;
  3. CREATE TABLE last_updated (
  4. lu_campaign TEXT,
  5. lu_operation TEXT,
  6. lu_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
  7. lu_key INTEGER DEFAULT NULL,
  8. UNIQUE (lu_campaign, lu_operation)
  9. );
  10. DROP TABLE IF EXISTS overview;
  11. CREATE TABLE overview (
  12. ov_campaign TEXT,
  13. ov_operation TEXT,
  14. ov_primary INTEGER DEFAULT 0,
  15. ov_secondary REAL DEFAULT NULL,
  16. UNIQUE (ov_campaign, ov_operation)
  17. );
  18. DROP TABLE IF EXISTS kill;
  19. CREATE TABLE kill (
  20. kill_id INTEGER PRIMARY KEY,
  21. kill_date TIMESTAMP,
  22. kill_system INTEGER,
  23. kill_victim_shipid INTEGER,
  24. kill_victim_charid INTEGER,
  25. kill_victim_charname TEXT,
  26. kill_victim_corpid INTEGER,
  27. kill_victim_corpname TEXT,
  28. kill_victim_allianceid INTEGER,
  29. kill_victim_alliancename TEXT,
  30. kill_victim_factionid INTEGER,
  31. kill_victim_factionname TEXT,
  32. kill_value REAL
  33. );
  34. DROP TABLE IF EXISTS oper_kill;
  35. CREATE TABLE oper_kill (
  36. ok_campaign TEXT,
  37. ok_operation TEXT,
  38. ok_killid INTEGER,
  39. UNIQUE (ok_campaign, ok_operation, ok_killid),
  40. FOREIGN KEY (ok_killid) REFERENCES kill (kill_id)
  41. ON DELETE CASCADE ON UPDATE CASCADE
  42. );
  43. CREATE INDEX ok_campaign_operation ON oper_kill (ok_campaign, ok_operation);
  44. CREATE INDEX ok_campaign_killid ON oper_kill (ok_campaign, ok_killid);
  45. DROP TABLE IF EXISTS oper_item;
  46. CREATE TABLE oper_item (
  47. oi_campaign TEXT,
  48. oi_operation TEXT,
  49. oi_character INTEGER,
  50. oi_type INTEGER,
  51. oi_count INTEGER,
  52. UNIQUE (oi_campaign, oi_operation, oi_character, oi_type)
  53. );
  54. CREATE INDEX oi_campaign_operation ON oper_item (oi_campaign, oi_operation);