A copyright violation detector running on Wikimedia Cloud Services https://tools.wmflabs.org/copyvios/
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

45 satır
1.9 KiB

  1. CREATE TABLE cache (
  2. cache_id VARCHAR(32) NOT NULL,
  3. cache_site VARCHAR(1024) NOT NULL,
  4. cache_page_title VARCHAR(1024) NOT NULL,
  5. cache_time TIMESTAMP NOT NULL DEFAULT current_timestamp(),
  6. cache_user VARCHAR(1024) DEFAULT NULL,
  7. cache_queries INT(4) NOT NULL DEFAULT 0,
  8. cache_process_time DOUBLE NOT NULL DEFAULT 0,
  9. cache_possible_miss BOOLEAN NOT NULL DEFAULT 0,
  10. PRIMARY KEY (cache_id),
  11. KEY cache_time_idx (cache_time)
  12. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
  13. CREATE TABLE cache_data (
  14. cdata_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  15. cdata_cache_id VARCHAR(32) NOT NULL,
  16. cdata_url VARCHAR(1024) NOT NULL,
  17. cdata_confidence DOUBLE NOT NULL DEFAULT 0,
  18. cdata_skipped BOOLEAN NOT NULL DEFAULT 0,
  19. cdata_excluded BOOLEAN NOT NULL DEFAULT 0,
  20. PRIMARY KEY (cdata_id),
  21. KEY cdata_cache_id (cdata_cache_id),
  22. FOREIGN KEY (cdata_cache_id) REFERENCES cache (cache_id)
  23. ON DELETE CASCADE ON UPDATE CASCADE
  24. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;
  25. CREATE TABLE history (
  26. hist_id BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT,
  27. hist_cache_id VARCHAR(32) NOT NULL,
  28. hist_site VARCHAR(1024) NOT NULL,
  29. hist_page_title VARCHAR(1024) NOT NULL,
  30. hist_timestamp TIMESTAMP NOT NULL DEFAULT current_timestamp(),
  31. hist_user VARCHAR(1024) DEFAULT NULL,
  32. hist_best_url VARCHAR(1024) DEFAULT NULL,
  33. hist_best_confidence DOUBLE NOT NULL DEFAULT 0,
  34. hist_num_queries INT(4) NOT NULL DEFAULT 0,
  35. hist_process_time DOUBLE NOT NULL DEFAULT 0,
  36. hist_did_short_circuit BOOLEAN NOT NULL DEFAULT 0,
  37. hist_via_api BOOLEAN NOT NULL DEFAULT 0,
  38. PRIMARY KEY (hist_id),
  39. KEY hist_timestamp_idx (hist_timestamp),
  40. KEY hist_page_idx (hist_site(64), hist_page_title(128)),
  41. KEY hist_user_idx (hist_user(128))
  42. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_unicode_ci;