1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-29 00:40:57 +01:00
phorge-phorge/resources/sql/autopatches/20150430.multimeter.1.sql

15 lines
545 B
MySQL
Raw Normal View History

CREATE TABLE {$NAMESPACE}_multimeter.multimeter_event (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
eventType INT UNSIGNED NOT NULL,
eventLabelID INT UNSIGNED NOT NULL,
resourceCost BIGINT NOT NULL,
sampleRate INT UNSIGNED NOT NULL,
eventContextID INT UNSIGNED NOT NULL,
eventHostID INT UNSIGNED NOT NULL,
eventViewerID INT UNSIGNED NOT NULL,
epoch INT UNSIGNED NOT NULL,
requestKey BINARY(12) NOT NULL,
KEY `key_request` (requestKey),
KEY `key_type` (eventType, epoch)
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};