revised comments && renamed sars to trends

This commit is contained in:
gezimbll
2024-07-02 04:55:05 -04:00
committed by Dan Christian Bogos
parent 6c2fbbec28
commit 4d4392d196
52 changed files with 853 additions and 830 deletions

View File

@@ -318,11 +318,11 @@ CREATE TABLE tp_sags(
);
--
-- Table structure for tabls `tp_sars`
-- Table structure for tabls `tp_trends`
--
DROP TABLE IF EXISTS tp_sars;
CREATE TABLE tp_sars(
DROP TABLE IF EXISTS tp_trends;
CREATE TABLE tp_trends(
`pk` int(11) NOT NULL AUTO_INCREMENT,
`tpid` varchar(64) NOT NULL,
`tenant` varchar(64) NOT NULL,
@@ -337,7 +337,7 @@ CREATE TABLE tp_sars(
`created_at` TIMESTAMP,
PRIMARY KEY (`pk`),
KEY `tpid` (`tpid`),
UNIQUE KEY `unique_tp_sars` (`tpid`,`tenant`,`id`,`stat_id`)
UNIQUE KEY `unique_tp_trends` (`tpid`,`tenant`,`id`,`stat_id`)
);

View File

@@ -311,11 +311,11 @@ CREATE INDEX tp_sags_idx ON tp_sags (tpid);
CREATE INDEX tp_sags_unique ON tp_sags ("tpid","tenant", "id","stat_ids");
--
-- Table structure for tabls `tp_sars`
-- Table structure for tabls `tp_trends`
--
DROP TABLE IF EXISTS tp_sars;
CREATE TABLE tp_sars(
DROP TABLE IF EXISTS tp_trends;
CREATE TABLE tp_trends(
"pk" SERIAL PRIMARY KEY,
"tpid" varchar(64) NOT NULL,
"tenant" varchar(64) NOT NULL,
@@ -329,8 +329,8 @@ CREATE TABLE tp_sars(
"threshold_ids" varchar(64) NOT NULL,
"created_at" TIMESTAMP
);
CREATE INDEX tp_sars_idx ON tp_sars(tpid);
CREATE INDEX tp_sars_unique ON tp_sars("tpid","tenant","id","stat_id");
CREATE INDEX tp_trends_idx ON tp_trends(tpid);
CREATE INDEX tp_trends_unique ON tp_trends("tpid","tenant","id","stat_id");
--
-- Table structure for table `tp_threshold_cfgs`