fourier.sql 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. -- MySQL dump 10.13 Distrib 5.7.17, for Linux (x86_64)
  2. --
  3. -- Host: localhost Database: fourier
  4. -- ------------------------------------------------------
  5. -- Server version 5.7.17-0ubuntu0.16.04.1
  6. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  7. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  8. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  9. /*!40101 SET NAMES utf8 */;
  10. /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
  11. /*!40103 SET TIME_ZONE='+00:00' */;
  12. /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
  13. /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
  14. /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
  15. /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
  16. --
  17. -- Table structure for table `ads`
  18. --
  19. DROP TABLE IF EXISTS `ads`;
  20. /*!40101 SET @saved_cs_client = @@character_set_client */;
  21. /*!40101 SET character_set_client = utf8 */;
  22. CREATE TABLE `ads` (
  23. `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  24. `name` varchar(250) NOT NULL,
  25. `length` bigint(20) DEFAULT '0',
  26. `fingerprinted` tinyint(4) DEFAULT '0',
  27. `file_sha1` binary(20) NOT NULL,
  28. PRIMARY KEY (`id`),
  29. UNIQUE KEY `id` (`id`)
  30. ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=latin1;
  31. /*!40101 SET character_set_client = @saved_cs_client */;
  32. --
  33. -- Table structure for table `fingerprints`
  34. --
  35. DROP TABLE IF EXISTS `fingerprints`;
  36. /*!40101 SET @saved_cs_client = @@character_set_client */;
  37. /*!40101 SET character_set_client = utf8 */;
  38. CREATE TABLE `fingerprints` (
  39. `hash` binary(10) NOT NULL,
  40. `id` int(10) unsigned NOT NULL,
  41. `offset` int(10) unsigned NOT NULL,
  42. UNIQUE KEY `unique_constraint` (`id`,`offset`,`hash`),
  43. KEY `hash` (`hash`),
  44. CONSTRAINT `fingerprints_ibfk_1` FOREIGN KEY (`id`) REFERENCES `ads` (`id`) ON DELETE CASCADE
  45. ) ENGINE=InnoDB DEFAULT CHARSET=latin1;
  46. /*!40101 SET character_set_client = @saved_cs_client */;
  47. --
  48. -- Table structure for table `matches`
  49. --
  50. DROP TABLE IF EXISTS `matches`;
  51. /*!40101 SET @saved_cs_client = @@character_set_client */;
  52. /*!40101 SET character_set_client = utf8 */;
  53. CREATE TABLE `matches` (
  54. `id` bigint(20) NOT NULL AUTO_INCREMENT,
  55. `ad` varchar(256) DEFAULT NULL,
  56. `station` varchar(256) DEFAULT NULL,
  57. `confidence` int(11) DEFAULT NULL,
  58. `datetime` bigint(20) DEFAULT NULL,
  59. PRIMARY KEY (`id`)
  60. ) ENGINE=InnoDB AUTO_INCREMENT=6464059 DEFAULT CHARSET=latin1;
  61. /*!40101 SET character_set_client = @saved_cs_client */;
  62. /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
  63. /*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
  64. /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
  65. /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
  66. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  67. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  68. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  69. /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
  70. -- Dump completed on 2017-05-05 16:22:14