@nsshunt/stsdatamanagement 1.18.126 → 1.18.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/db-scripts/builddb.sql +22 -0
- package/package.json +1 -1
package/db-scripts/builddb.sql
CHANGED
|
@@ -83,6 +83,28 @@ CREATE INDEX idx_ststoken_hash_value ON stsresfhirtoken (HASH_VALUE);
|
|
|
83
83
|
CREATE INDEX idx_ststoken_hash_sys ON stsresfhirtoken (HASH_SYS);
|
|
84
84
|
CREATE INDEX idx_ststoken_hash_sys_and_value ON stsresfhirtoken (HASH_SYS_AND_VALUE);
|
|
85
85
|
|
|
86
|
+
CREATE TABLE stsresfhirquantity (
|
|
87
|
+
PID UUID PRIMARY KEY,
|
|
88
|
+
PARTITION_ID INTEGER,
|
|
89
|
+
PARTITION_DATE INTEGER,
|
|
90
|
+
SP_NAME TEXT NOT NULL,
|
|
91
|
+
SP_PARAM_TYPE TEXT NOT NULL,
|
|
92
|
+
RES_ID TEXT NOT NULL,
|
|
93
|
+
RES_TYPE TEXT NOT NULL,
|
|
94
|
+
UPDATED BIGINT NOT NULL,
|
|
95
|
+
SP_MISSING BOOLEAN NOT NULL,
|
|
96
|
+
HASH_IDENTITY BIGINT NOT NULL,
|
|
97
|
+
SP_SYSTEM TEXT NOT NULL,
|
|
98
|
+
SP_VALUE DECIMAL NOT NULL,
|
|
99
|
+
SP_UNITS TEXT NOT NULL,
|
|
100
|
+
HASH_IDENTITY_AND_UNITS BIGINT NOT NULL,
|
|
101
|
+
HASH_IDENTITY_SYS_UNITS BIGINT NOT NULL
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
CREATE INDEX idx_stsquantity_hash_identity ON stsresfhirquantity (HASH_IDENTITY);
|
|
105
|
+
CREATE INDEX idx_stsquantity_hash_units ON stsresfhirquantity (HASH_IDENTITY_AND_UNITS);
|
|
106
|
+
CREATE INDEX idx_stsquantity_hash_sys_units ON stsresfhirquantity (HASH_IDENTITY_SYS_UNITS);
|
|
107
|
+
|
|
86
108
|
-- SEQUENCE: public.stsentity_oid_seq
|
|
87
109
|
|
|
88
110
|
-- DROP SEQUENCE public.stsentity_oid_seq;
|