Created
January 28, 2014 20:15
-
-
Save aristus/8675417 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE `analytics` ( | |
`classifier_id` bigint unsigned, | |
`ts_msec` bigint unsigned, | |
`value` double, | |
PRIMARY KEY (`classifier_id`,`ts_msec`), | |
KEY `ts_msec` (`ts_msec`) | |
); | |
CREATE /*!90618 REFERENCE*/ TABLE `classifiers` ( | |
`id` bigint(20) unsigned NOT NULL, | |
`ts_msec` bigint unsigned, | |
`hostname` varchar(255), | |
-- ... a small number of "required" fields | |
tags JSON not null, | |
PRIMARY KEY (`id`), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment