blob: 42c1faff216744866e125b1303a8ccd63703e838 [file] [log] [blame]
JohnKeeneyf1e44602024-06-07 13:07:03 +01001--
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01002-- ============LICENSE_START=======================================================
3-- Copyright (C) 2024 Ericsson
4-- Modifications Copyright (C) 2024 OpenInfra Foundation Europe
5-- ================================================================================
6-- Licensed under the Apache License, Version 2.0 (the "License");
7-- you may not use this file except in compliance with the License.
8-- You may obtain a copy of the License at
JohnKeeneyf1e44602024-06-07 13:07:03 +01009--
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010010-- http://www.apache.org/licenses/LICENSE-2.0
JohnKeeneyf1e44602024-06-07 13:07:03 +010011--
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010012-- Unless required by applicable law or agreed to in writing, software
13-- distributed under the License is distributed on an "AS IS" BASIS,
14-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15-- See the License for the specific language governing permissions and
16-- limitations under the License.
JohnKeeneyf1e44602024-06-07 13:07:03 +010017--
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010018-- SPDX-License-Identifier: Apache-2.0
19-- ============LICENSE_END=========================================================
JohnKeeneyf1e44602024-06-07 13:07:03 +010020--
21
22BEGIN;
23
24CREATE EXTENSION IF NOT EXISTS postgis;
25CREATE EXTENSION IF NOT EXISTS postgis_topology;
26
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010027GRANT USAGE ON SCHEMA topology to topology_exposure_user;
JohnKeeneyf1e44602024-06-07 13:07:03 +010028GRANT SELECT ON ALL SEQUENCES IN SCHEMA topology TO topology_exposure_user;
29GRANT SELECT ON ALL TABLES IN SCHEMA topology TO topology_exposure_user;
30
31CREATE SCHEMA IF NOT EXISTS ties_data;
32ALTER SCHEMA ties_data OWNER TO topology_exposure_user;
33SET default_tablespace = '';
34SET default_table_access_method = heap;
35
36SET ROLE 'topology_exposure_user';
37
38-- Function to create CONSTRAINT only if it does not exists
39CREATE OR REPLACE FUNCTION ties_data.create_constraint_if_not_exists (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010040 t_name TEXT, c_name TEXT, constraint_sql TEXT
JohnKeeneyf1e44602024-06-07 13:07:03 +010041)
42RETURNS void AS
43$$
44BEGIN
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010045 IF NOT EXISTS (SELECT constraint_name FROM information_schema.table_constraints WHERE table_name = t_name AND constraint_name = c_name) THEN
46 EXECUTE constraint_sql;
47 END IF;
JohnKeeneyf1e44602024-06-07 13:07:03 +010048END;
49$$ language 'plpgsql';
50
51-- Update data schema exec status
52INSERT INTO ties_model.execution_status("schema", "status") VALUES ('ties_data', 'success');
53
54CREATE TABLE IF NOT EXISTS ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010055 "id" VARCHAR(511),
56 "aSide_AntennaModule" VARCHAR(511),
57 "bSide_AntennaCapability" VARCHAR(511),
58 "CD_sourceIds" jsonb,
59 "CD_classifiers" jsonb,
60 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +010061);
62
63ALTER TABLE ONLY ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
64
65ALTER TABLE ONLY ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
66
67ALTER TABLE ONLY ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
68
69CREATE TABLE IF NOT EXISTS ties_data."AntennaCapability" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010070 "id" VARCHAR(511),
71 "eUtranFqBands" jsonb,
72 "geranFqBands" jsonb,
73 "nRFqBands" jsonb,
74 "CD_sourceIds" jsonb,
75 "CD_classifiers" jsonb,
76 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +010077);
78
79ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
80
81ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
82
83ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
84
85CREATE TABLE IF NOT EXISTS ties_data."AntennaModule" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +010086 "id" VARCHAR(511),
87 "antennaModelNumber" TEXT,
88 "mechanicalAntennaBearing" BIGINT,
89 "mechanicalAntennaTilt" BIGINT,
90 "positionWithinSector" TEXT,
91 "totalTilt" BIGINT,
92 "electricalAntennaTilt" BIGINT,
93 "antennaBeamWidth" jsonb,
94 "geo-location" jsonb,
95 "CD_sourceIds" jsonb,
96 "CD_classifiers" jsonb,
97 "CD_decorators" jsonb,
98 "REL_FK_installed-at-site" VARCHAR(511),
99 "REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE" VARCHAR(511),
100 "REL_CD_sourceIds_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb,
101 "REL_CD_classifiers_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb,
102 "REL_CD_decorators_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb,
103 "REL_FK_grouped-by-sector" VARCHAR(511),
104 "REL_ID_SECTOR_GROUPS_ANTENNAMODULE" VARCHAR(511),
105 "REL_CD_sourceIds_SECTOR_GROUPS_ANTENNAMODULE" jsonb,
106 "REL_CD_classifiers_SECTOR_GROUPS_ANTENNAMODULE" jsonb,
107 "REL_CD_decorators_SECTOR_GROUPS_ANTENNAMODULE" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100108);
109
110ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
111
112ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
113
114ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
115
JohnKeeneyf1e44602024-06-07 13:07:03 +0100116ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_sourceIds_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '[]';
117
118ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_classifiers_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '[]';
119
120ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_decorators_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '{}';
121
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100122ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '[]';
123
124ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '[]';
125
126ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '{}';
127
JohnKeeneyf1e44602024-06-07 13:07:03 +0100128CREATE TABLE IF NOT EXISTS ties_data."CloudNamespace" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100129 "id" VARCHAR(511),
130 "name" TEXT,
131 "CD_sourceIds" jsonb,
132 "CD_classifiers" jsonb,
133 "CD_decorators" jsonb,
134 "REL_FK_deployed-on-nodeCluster" VARCHAR(511),
135 "REL_ID_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" VARCHAR(511),
136 "REL_CD_sourceIds_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb,
137 "REL_CD_classifiers_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb,
138 "REL_CD_decorators_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100139);
140
141ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
142
143ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
144
145ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
146
147ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_sourceIds_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '[]';
148
149ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_classifiers_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '[]';
150
151ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_decorators_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '{}';
152
153CREATE TABLE IF NOT EXISTS ties_data."CloudSite" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100154 "id" VARCHAR(511),
155 "name" TEXT,
156 "geo-location" jsonb,
157 "CD_sourceIds" jsonb,
158 "CD_classifiers" jsonb,
159 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100160);
161
162ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
163
164ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
165
166ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
167
168CREATE TABLE IF NOT EXISTS ties_data."CloudifiedNF" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100169 "id" VARCHAR(511),
170 "name" TEXT,
171 "CD_sourceIds" jsonb,
172 "CD_classifiers" jsonb,
173 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100174);
175
176ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
177
178ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
179
180ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
181
182CREATE TABLE IF NOT EXISTS ties_data."ENodeBFunction" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100183 "id" VARCHAR(511),
184 "eNBId" BIGINT,
185 "eNodeBPlmnId" jsonb,
186 "CD_sourceIds" jsonb,
187 "CD_classifiers" jsonb,
188 "CD_decorators" jsonb,
189 "REL_FK_managed-by-managedElement" VARCHAR(511),
190 "REL_ID_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" VARCHAR(511),
191 "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb,
192 "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb,
193 "REL_CD_decorators_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100194);
195
196ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
197
198ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
199
200ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
201
202ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '[]';
203
204ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '[]';
205
206ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '{}';
207
JohnKeeneyf1e44602024-06-07 13:07:03 +0100208CREATE TABLE IF NOT EXISTS ties_data."EUtranCell" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100209 "id" VARCHAR(511),
210 "cellId" BIGINT,
211 "earfcndl" BIGINT,
212 "earfcnul" BIGINT,
213 "dlChannelBandwidth" BIGINT,
214 "earfcn" BIGINT,
215 "channelBandwidth" BIGINT,
216 "tac" BIGINT,
217 "duplexType" TEXT,
218 "CD_sourceIds" jsonb,
219 "CD_classifiers" jsonb,
220 "CD_decorators" jsonb,
221 "REL_FK_provided-by-enodebFunction" VARCHAR(511),
222 "REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL" VARCHAR(511),
223 "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb,
224 "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb,
225 "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb,
226 "REL_FK_grouped-by-sector" VARCHAR(511),
227 "REL_ID_SECTOR_GROUPS_EUTRANCELL" VARCHAR(511),
228 "REL_CD_sourceIds_SECTOR_GROUPS_EUTRANCELL" jsonb,
229 "REL_CD_classifiers_SECTOR_GROUPS_EUTRANCELL" jsonb,
230 "REL_CD_decorators_SECTOR_GROUPS_EUTRANCELL" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100231);
232
233ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
234
235ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
236
237ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
238
239ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '[]';
240
241ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '[]';
242
243ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '{}';
244
245ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '[]';
246
247ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '[]';
248
249ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '{}';
250
251CREATE TABLE IF NOT EXISTS ties_data."GNBCUCPFunction" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100252 "id" VARCHAR(511),
253 "gNBCUName" TEXT,
254 "gNBId" BIGINT,
255 "gNBIdLength" BIGINT,
256 "pLMNId" jsonb,
257 "CD_sourceIds" jsonb,
258 "CD_classifiers" jsonb,
259 "CD_decorators" jsonb,
260 "REL_FK_managed-by-managedElement" VARCHAR(511),
261 "REL_ID_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" VARCHAR(511),
262 "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb,
263 "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb,
264 "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100265);
266
267ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
268
269ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
270
271ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
272
273ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '[]';
274
275ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '[]';
276
277ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '{}';
278
JohnKeeneyf1e44602024-06-07 13:07:03 +0100279CREATE TABLE IF NOT EXISTS ties_data."GNBCUUPFunction" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100280 "id" VARCHAR(511),
281 "gNBId" BIGINT,
282 "gNBIdLength" BIGINT,
283 "CD_sourceIds" jsonb,
284 "CD_classifiers" jsonb,
285 "CD_decorators" jsonb,
286 "REL_FK_managed-by-managedElement" VARCHAR(511),
287 "REL_ID_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" VARCHAR(511),
288 "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb,
289 "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb,
290 "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100291);
292
293ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
294
295ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
296
297ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
298
299ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '[]';
300
301ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '[]';
302
303ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '{}';
304
JohnKeeneyf1e44602024-06-07 13:07:03 +0100305CREATE TABLE IF NOT EXISTS ties_data."GNBDUFunction" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100306 "id" VARCHAR(511),
307 "gNBDUId" BIGINT,
308 "gNBId" BIGINT,
309 "gNBIdLength" BIGINT,
310 "dUpLMNId" jsonb,
311 "CD_sourceIds" jsonb,
312 "CD_classifiers" jsonb,
313 "CD_decorators" jsonb,
314 "REL_FK_managed-by-managedElement" VARCHAR(511),
315 "REL_ID_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" VARCHAR(511),
316 "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb,
317 "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb,
318 "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100319);
320
321ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
322
323ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
324
325ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
326
327ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '[]';
328
329ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '[]';
330
331ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '{}';
332
JohnKeeneyf1e44602024-06-07 13:07:03 +0100333CREATE TABLE IF NOT EXISTS ties_data."LTESectorCarrier" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100334 "id" VARCHAR(511),
335 "sectorCarrierType" TEXT,
336 "CD_sourceIds" jsonb,
337 "CD_classifiers" jsonb,
338 "CD_decorators" jsonb,
339 "REL_FK_provided-by-enodebFunction" VARCHAR(511),
340 "REL_ID_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" VARCHAR(511),
341 "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb,
342 "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb,
343 "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb,
344 "REL_FK_used-by-euTranCell" VARCHAR(511),
345 "REL_ID_EUTRANCELL_USES_LTESECTORCARRIER" VARCHAR(511),
346 "REL_CD_sourceIds_EUTRANCELL_USES_LTESECTORCARRIER" jsonb,
347 "REL_CD_classifiers_EUTRANCELL_USES_LTESECTORCARRIER" jsonb,
348 "REL_CD_decorators_EUTRANCELL_USES_LTESECTORCARRIER" jsonb,
349 "REL_FK_used-antennaCapability" VARCHAR(511),
350 "REL_ID_LTESECTORCARRIER_USES_ANTENNACAPABILITY" VARCHAR(511),
351 "REL_CD_sourceIds_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
352 "REL_CD_classifiers_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
353 "REL_CD_decorators_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100354);
355
356ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
357
358ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
359
360ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
361
362ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '[]';
363
364ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '[]';
365
366ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '{}';
367
JohnKeeneyf1e44602024-06-07 13:07:03 +0100368ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '[]';
369
370ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '[]';
371
372ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '{}';
373
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100374ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]';
375
376ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]';
377
378ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '{}';
379
JohnKeeneyf1e44602024-06-07 13:07:03 +0100380CREATE TABLE IF NOT EXISTS ties_data."ManagedElement" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100381 "id" VARCHAR(511),
382 "CD_sourceIds" jsonb,
383 "CD_classifiers" jsonb,
384 "CD_decorators" jsonb,
385 "REL_FK_deployed-as-cloudifiedNF" VARCHAR(511),
386 "REL_ID_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" VARCHAR(511),
387 "REL_CD_sourceIds_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb,
388 "REL_CD_classifiers_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb,
389 "REL_CD_decorators_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100390);
391
392ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
393
394ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
395
396ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
397
398ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '[]';
399
400ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '[]';
401
402ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '{}';
403
404CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100405 "id" VARCHAR(511),
406 "aSide_NFDeployment" VARCHAR(511),
407 "bSide_CloudNamespace" VARCHAR(511),
408 "CD_sourceIds" jsonb,
409 "CD_classifiers" jsonb,
410 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100411);
412
413ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
414
415ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
416
417ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
418
419CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100420 "id" VARCHAR(511),
421 "aSide_NFDeployment" VARCHAR(511),
422 "bSide_GNBCUCPFunction" VARCHAR(511),
423 "CD_sourceIds" jsonb,
424 "CD_classifiers" jsonb,
425 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100426);
427
428ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
429
430ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
431
432ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
433
434CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100435 "id" VARCHAR(511),
436 "aSide_NFDeployment" VARCHAR(511),
437 "bSide_GNBCUUPFunction" VARCHAR(511),
438 "CD_sourceIds" jsonb,
439 "CD_classifiers" jsonb,
440 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100441);
442
443ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
444
445ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
446
447ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
448
449CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100450 "id" VARCHAR(511),
451 "aSide_NFDeployment" VARCHAR(511),
452 "bSide_GNBDUFunction" VARCHAR(511),
453 "CD_sourceIds" jsonb,
454 "CD_classifiers" jsonb,
455 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100456);
457
458ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
459
460ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
461
462ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
463
464CREATE TABLE IF NOT EXISTS ties_data."NFDeployment" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100465 "id" VARCHAR(511),
466 "name" TEXT,
467 "CD_sourceIds" jsonb,
468 "CD_classifiers" jsonb,
469 "CD_decorators" jsonb,
470 "REL_FK_serviced-managedElement" VARCHAR(511),
471 "REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" VARCHAR(511),
472 "REL_CD_sourceIds_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb,
473 "REL_CD_classifiers_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb,
474 "REL_CD_decorators_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb,
475 "REL_FK_comprised-by-cloudifiedNF" VARCHAR(511),
476 "REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" VARCHAR(511),
477 "REL_CD_sourceIds_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb,
478 "REL_CD_classifiers_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb,
479 "REL_CD_decorators_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100480);
481
482ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
483
484ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
485
486ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
487
488ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_sourceIds_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '[]';
489
490ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_classifiers_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '[]';
491
492ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_decorators_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '{}';
493
494ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_sourceIds_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '[]';
495
496ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_classifiers_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '[]';
497
498ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_decorators_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '{}';
499
500CREATE TABLE IF NOT EXISTS ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100501 "id" VARCHAR(511),
502 "aSide_NodeCluster" VARCHAR(511),
503 "bSide_CloudSite" VARCHAR(511),
504 "CD_sourceIds" jsonb,
505 "CD_classifiers" jsonb,
506 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100507);
508
509ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
510
511ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
512
513ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
514
515CREATE TABLE IF NOT EXISTS ties_data."NRCellCU" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100516 "id" VARCHAR(511),
517 "cellLocalId" BIGINT,
518 "nCI" BIGINT,
519 "nRTAC" BIGINT,
520 "plmnId" jsonb,
521 "CD_sourceIds" jsonb,
522 "CD_classifiers" jsonb,
523 "CD_decorators" jsonb,
524 "REL_FK_provided-by-gnbcucpFunction" VARCHAR(511),
525 "REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" VARCHAR(511),
526 "REL_CD_sourceIds_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb,
527 "REL_CD_classifiers_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb,
528 "REL_CD_decorators_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100529);
530
531ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
532
533ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
534
535ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
536
537ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_sourceIds_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '[]';
538
539ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_classifiers_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '[]';
540
541ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_decorators_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '{}';
542
543CREATE TABLE IF NOT EXISTS ties_data."NRCellDU" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100544 "id" VARCHAR(511),
545 "cellLocalId" BIGINT,
546 "nCI" BIGINT,
547 "nRPCI" BIGINT,
548 "nRTAC" BIGINT,
549 "CD_sourceIds" jsonb,
550 "CD_classifiers" jsonb,
551 "CD_decorators" jsonb,
552 "REL_FK_provided-by-gnbduFunction" VARCHAR(511),
553 "REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU" VARCHAR(511),
554 "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb,
555 "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb,
556 "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb,
557 "REL_FK_grouped-by-sector" VARCHAR(511),
558 "REL_ID_SECTOR_GROUPS_NRCELLDU" VARCHAR(511),
559 "REL_CD_sourceIds_SECTOR_GROUPS_NRCELLDU" jsonb,
560 "REL_CD_classifiers_SECTOR_GROUPS_NRCELLDU" jsonb,
561 "REL_CD_decorators_SECTOR_GROUPS_NRCELLDU" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100562);
563
564ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
565
566ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
567
568ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
569
JohnKeeneyf1e44602024-06-07 13:07:03 +0100570ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '[]';
571
572ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '[]';
573
574ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '{}';
575
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100576ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '[]';
577
578ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '[]';
579
580ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '{}';
581
JohnKeeneyf1e44602024-06-07 13:07:03 +0100582CREATE TABLE IF NOT EXISTS ties_data."NRSectorCarrier" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100583 "id" VARCHAR(511),
584 "arfcnDL" BIGINT,
585 "arfcnUL" BIGINT,
586 "frequencyDL" BIGINT,
587 "frequencyUL" BIGINT,
588 "bSChannelBwDL" BIGINT,
589 "CD_sourceIds" jsonb,
590 "CD_classifiers" jsonb,
591 "CD_decorators" jsonb,
592 "REL_FK_provided-by-gnbduFunction" VARCHAR(511),
593 "REL_ID_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" VARCHAR(511),
594 "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb,
595 "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb,
596 "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb,
597 "REL_FK_used-by-nrCellDu" VARCHAR(511),
598 "REL_ID_NRCELLDU_USES_NRSECTORCARRIER" VARCHAR(511),
599 "REL_CD_sourceIds_NRCELLDU_USES_NRSECTORCARRIER" jsonb,
600 "REL_CD_classifiers_NRCELLDU_USES_NRSECTORCARRIER" jsonb,
601 "REL_CD_decorators_NRCELLDU_USES_NRSECTORCARRIER" jsonb,
602 "REL_FK_used-antennaCapability" VARCHAR(511),
603 "REL_ID_NRSECTORCARRIER_USES_ANTENNACAPABILITY" VARCHAR(511),
604 "REL_CD_sourceIds_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
605 "REL_CD_classifiers_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
606 "REL_CD_decorators_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100607);
608
609ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
610
611ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
612
613ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
614
JohnKeeneyf1e44602024-06-07 13:07:03 +0100615ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '[]';
616
617ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '[]';
618
619ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '{}';
620
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100621ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '[]';
622
623ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '[]';
624
625ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '{}';
626
JohnKeeneyf1e44602024-06-07 13:07:03 +0100627ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]';
628
629ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]';
630
631ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '{}';
632
633CREATE TABLE IF NOT EXISTS ties_data."NodeCluster" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100634 "id" VARCHAR(511),
635 "name" TEXT,
636 "CD_sourceIds" jsonb,
637 "CD_classifiers" jsonb,
638 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100639);
640
641ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
642
643ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
644
645ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
646
JohnKeeneyf1e44602024-06-07 13:07:03 +0100647CREATE TABLE IF NOT EXISTS ties_data."Sector" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100648 "id" VARCHAR(511),
649 "sectorId" BIGINT,
650 "azimuth" DECIMAL,
651 "geo-location" jsonb,
652 "CD_sourceIds" jsonb,
653 "CD_classifiers" jsonb,
654 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100655);
656
657ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
658
659ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
660
661ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
662
663CREATE TABLE IF NOT EXISTS ties_data."Site" (
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100664 "id" VARCHAR(511),
665 "name" TEXT,
666 "geo-location" jsonb,
667 "CD_sourceIds" jsonb,
668 "CD_classifiers" jsonb,
669 "CD_decorators" jsonb
JohnKeeneyf1e44602024-06-07 13:07:03 +0100670);
671
672ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
673
674ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
675
676ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
677
678SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100679 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100680 'PK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_id',
681 'ALTER TABLE ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ADD CONSTRAINT "PK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_id" PRIMARY KEY ("id");'
682);
683
684SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100685 'AntennaCapability',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100686 'PK_AntennaCapability_id',
687 'ALTER TABLE ties_data."AntennaCapability" ADD CONSTRAINT "PK_AntennaCapability_id" PRIMARY KEY ("id");'
688);
689
690SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100691 'AntennaModule',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100692 'PK_AntennaModule_id',
693 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "PK_AntennaModule_id" PRIMARY KEY ("id");'
694);
695
696SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100697 'CloudNamespace',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100698 'PK_CloudNamespace_id',
699 'ALTER TABLE ties_data."CloudNamespace" ADD CONSTRAINT "PK_CloudNamespace_id" PRIMARY KEY ("id");'
700);
701
702SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100703 'CloudSite',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100704 'PK_CloudSite_id',
705 'ALTER TABLE ties_data."CloudSite" ADD CONSTRAINT "PK_CloudSite_id" PRIMARY KEY ("id");'
706);
707
708SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100709 'CloudifiedNF',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100710 'PK_CloudifiedNF_id',
711 'ALTER TABLE ties_data."CloudifiedNF" ADD CONSTRAINT "PK_CloudifiedNF_id" PRIMARY KEY ("id");'
712);
713
714SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100715 'ENodeBFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100716 'PK_ENodeBFunction_id',
717 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "PK_ENodeBFunction_id" PRIMARY KEY ("id");'
718);
719
720SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100721 'EUtranCell',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100722 'PK_EUtranCell_id',
723 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "PK_EUtranCell_id" PRIMARY KEY ("id");'
724);
725
726SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100727 'GNBCUCPFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100728 'PK_GNBCUCPFunction_id',
729 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "PK_GNBCUCPFunction_id" PRIMARY KEY ("id");'
730);
731
732SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100733 'GNBCUUPFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100734 'PK_GNBCUUPFunction_id',
735 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "PK_GNBCUUPFunction_id" PRIMARY KEY ("id");'
736);
737
738SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100739 'GNBDUFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100740 'PK_GNBDUFunction_id',
741 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "PK_GNBDUFunction_id" PRIMARY KEY ("id");'
742);
743
744SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100745 'LTESectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100746 'PK_LTESectorCarrier_id',
747 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "PK_LTESectorCarrier_id" PRIMARY KEY ("id");'
748);
749
750SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100751 'ManagedElement',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100752 'PK_ManagedElement_id',
753 'ALTER TABLE ties_data."ManagedElement" ADD CONSTRAINT "PK_ManagedElement_id" PRIMARY KEY ("id");'
754);
755
756SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100757 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100758 'PK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_id',
759 'ALTER TABLE ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ADD CONSTRAINT "PK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_id" PRIMARY KEY ("id");'
760);
761
762SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100763 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100764 'PK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_id',
765 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_id" PRIMARY KEY ("id");'
766);
767
768SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100769 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100770 'PK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_id',
771 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_id" PRIMARY KEY ("id");'
772);
773
774SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100775 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100776 'PK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_id',
777 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_id" PRIMARY KEY ("id");'
778);
779
780SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100781 'NFDeployment',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100782 'PK_NFDeployment_id',
783 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "PK_NFDeployment_id" PRIMARY KEY ("id");'
784);
785
786SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100787 'NODECLUSTER_LOCATED_AT_CLOUDSITE',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100788 'PK_NODECLUSTER_LOCATED_AT_CLOUDSITE_id',
789 'ALTER TABLE ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ADD CONSTRAINT "PK_NODECLUSTER_LOCATED_AT_CLOUDSITE_id" PRIMARY KEY ("id");'
790);
791
792SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100793 'NRCellCU',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100794 'PK_NRCellCU_id',
795 'ALTER TABLE ties_data."NRCellCU" ADD CONSTRAINT "PK_NRCellCU_id" PRIMARY KEY ("id");'
796);
797
798SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100799 'NRCellDU',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100800 'PK_NRCellDU_id',
801 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "PK_NRCellDU_id" PRIMARY KEY ("id");'
802);
803
804SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100805 'NRSectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100806 'PK_NRSectorCarrier_id',
807 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "PK_NRSectorCarrier_id" PRIMARY KEY ("id");'
808);
809
810SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100811 'NodeCluster',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100812 'PK_NodeCluster_id',
813 'ALTER TABLE ties_data."NodeCluster" ADD CONSTRAINT "PK_NodeCluster_id" PRIMARY KEY ("id");'
814);
815
816SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100817 'Sector',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100818 'PK_Sector_id',
819 'ALTER TABLE ties_data."Sector" ADD CONSTRAINT "PK_Sector_id" PRIMARY KEY ("id");'
820);
821
822SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100823 'Site',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100824 'PK_Site_id',
825 'ALTER TABLE ties_data."Site" ADD CONSTRAINT "PK_Site_id" PRIMARY KEY ("id");'
826);
827
828SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100829 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100830 'FK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_aSide_AntennaModule',
831 'ALTER TABLE ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ADD CONSTRAINT "FK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_aSide_AntennaModule" FOREIGN KEY ("aSide_AntennaModule") REFERENCES ties_data."AntennaModule" (id) ON DELETE CASCADE;'
832);
833
834SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100835 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100836 'FK_AB3CEA707D389B107F1D10BC724542418E02ABEC',
837 'ALTER TABLE ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ADD CONSTRAINT "FK_AB3CEA707D389B107F1D10BC724542418E02ABEC" FOREIGN KEY ("bSide_AntennaCapability") REFERENCES ties_data."AntennaCapability" (id) ON DELETE CASCADE;'
838);
839
840SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100841 'AntennaModule',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100842 'FK_AntennaModule_REL_FK_installed-at-site',
843 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "FK_AntennaModule_REL_FK_installed-at-site" FOREIGN KEY ("REL_FK_installed-at-site") REFERENCES ties_data."Site" (id) ON DELETE CASCADE;'
844);
845
846SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100847 'AntennaModule',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100848 'UNIQUE_AntennaModule_REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE',
849 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "UNIQUE_AntennaModule_REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE" UNIQUE ("REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE");'
850);
851
852SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100853 'AntennaModule',
854 'FK_AntennaModule_REL_FK_grouped-by-sector',
855 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "FK_AntennaModule_REL_FK_grouped-by-sector" FOREIGN KEY ("REL_FK_grouped-by-sector") REFERENCES ties_data."Sector" (id) ON DELETE CASCADE;'
856);
857
858SELECT ties_data.create_constraint_if_not_exists(
859 'AntennaModule',
860 'UNIQUE_AntennaModule_REL_ID_SECTOR_GROUPS_ANTENNAMODULE',
861 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "UNIQUE_AntennaModule_REL_ID_SECTOR_GROUPS_ANTENNAMODULE" UNIQUE ("REL_ID_SECTOR_GROUPS_ANTENNAMODULE");'
862);
863
864SELECT ties_data.create_constraint_if_not_exists(
865 'CloudNamespace',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100866 'FK_CloudNamespace_REL_FK_deployed-on-nodeCluster',
867 'ALTER TABLE ties_data."CloudNamespace" ADD CONSTRAINT "FK_CloudNamespace_REL_FK_deployed-on-nodeCluster" FOREIGN KEY ("REL_FK_deployed-on-nodeCluster") REFERENCES ties_data."NodeCluster" (id) ON DELETE CASCADE;'
868);
869
870SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100871 'CloudNamespace',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100872 'UNIQUE_C72E1EF93E1AC8FA53D20808E775FF012ACB46F0',
873 'ALTER TABLE ties_data."CloudNamespace" ADD CONSTRAINT "UNIQUE_C72E1EF93E1AC8FA53D20808E775FF012ACB46F0" UNIQUE ("REL_ID_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER");'
874);
875
876SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100877 'ENodeBFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100878 'FK_ENodeBFunction_REL_FK_managed-by-managedElement',
879 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "FK_ENodeBFunction_REL_FK_managed-by-managedElement" FOREIGN KEY ("REL_FK_managed-by-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;'
880);
881
882SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100883 'ENodeBFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100884 'UNIQUE_F33037EE8037D0606D15FFB45EE8A27FD6DE30EE',
885 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "UNIQUE_F33037EE8037D0606D15FFB45EE8A27FD6DE30EE" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION");'
886);
887
888SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100889 'EUtranCell',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100890 'FK_EUtranCell_REL_FK_provided-by-enodebFunction',
891 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "FK_EUtranCell_REL_FK_provided-by-enodebFunction" FOREIGN KEY ("REL_FK_provided-by-enodebFunction") REFERENCES ties_data."ENodeBFunction" (id) ON DELETE CASCADE;'
892);
893
894SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100895 'EUtranCell',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100896 'UNIQUE_EUtranCell_REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL',
897 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "UNIQUE_EUtranCell_REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL" UNIQUE ("REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL");'
898);
899
900SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100901 'EUtranCell',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100902 'FK_EUtranCell_REL_FK_grouped-by-sector',
903 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "FK_EUtranCell_REL_FK_grouped-by-sector" FOREIGN KEY ("REL_FK_grouped-by-sector") REFERENCES ties_data."Sector" (id) ON DELETE CASCADE;'
904);
905
906SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100907 'EUtranCell',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100908 'UNIQUE_EUtranCell_REL_ID_SECTOR_GROUPS_EUTRANCELL',
909 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "UNIQUE_EUtranCell_REL_ID_SECTOR_GROUPS_EUTRANCELL" UNIQUE ("REL_ID_SECTOR_GROUPS_EUTRANCELL");'
910);
911
912SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100913 'GNBCUCPFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100914 'FK_GNBCUCPFunction_REL_FK_managed-by-managedElement',
915 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "FK_GNBCUCPFunction_REL_FK_managed-by-managedElement" FOREIGN KEY ("REL_FK_managed-by-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;'
916);
917
918SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100919 'GNBCUCPFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100920 'UNIQUE_249F73FF1F4316A56DEF4424FA43C2064FFBE4DD',
921 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "UNIQUE_249F73FF1F4316A56DEF4424FA43C2064FFBE4DD" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION");'
922);
923
924SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100925 'GNBCUUPFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100926 'FK_GNBCUUPFunction_REL_FK_managed-by-managedElement',
927 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "FK_GNBCUUPFunction_REL_FK_managed-by-managedElement" FOREIGN KEY ("REL_FK_managed-by-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;'
928);
929
930SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100931 'GNBCUUPFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100932 'UNIQUE_BDB349CDF0C4055902881ECCB71F460AE1DD323E',
933 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "UNIQUE_BDB349CDF0C4055902881ECCB71F460AE1DD323E" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION");'
934);
935
936SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100937 'GNBDUFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100938 'FK_GNBDUFunction_REL_FK_managed-by-managedElement',
939 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "FK_GNBDUFunction_REL_FK_managed-by-managedElement" FOREIGN KEY ("REL_FK_managed-by-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;'
940);
941
942SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100943 'GNBDUFunction',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100944 'UNIQUE_08DFEFAF56EDDE43CBDC336F459D28C6518D3E1D',
945 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "UNIQUE_08DFEFAF56EDDE43CBDC336F459D28C6518D3E1D" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION");'
946);
947
948SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100949 'LTESectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100950 'FK_LTESectorCarrier_REL_FK_provided-by-enodebFunction',
951 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "FK_LTESectorCarrier_REL_FK_provided-by-enodebFunction" FOREIGN KEY ("REL_FK_provided-by-enodebFunction") REFERENCES ties_data."ENodeBFunction" (id) ON DELETE CASCADE;'
952);
953
954SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100955 'LTESectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100956 'UNIQUE_B9770D6C26DDA0173DB9690F6E3B42C111AF26E9',
957 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_B9770D6C26DDA0173DB9690F6E3B42C111AF26E9" UNIQUE ("REL_ID_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER");'
958);
959
960SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100961 'LTESectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100962 'FK_LTESectorCarrier_REL_FK_used-by-euTranCell',
963 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "FK_LTESectorCarrier_REL_FK_used-by-euTranCell" FOREIGN KEY ("REL_FK_used-by-euTranCell") REFERENCES ties_data."EUtranCell" (id) ON DELETE CASCADE;'
964);
965
966SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100967 'LTESectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100968 'UNIQUE_LTESectorCarrier_REL_ID_EUTRANCELL_USES_LTESECTORCARRIER',
969 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_LTESectorCarrier_REL_ID_EUTRANCELL_USES_LTESECTORCARRIER" UNIQUE ("REL_ID_EUTRANCELL_USES_LTESECTORCARRIER");'
970);
971
972SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100973 'LTESectorCarrier',
974 'FK_LTESectorCarrier_REL_FK_used-antennaCapability',
975 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "FK_LTESectorCarrier_REL_FK_used-antennaCapability" FOREIGN KEY ("REL_FK_used-antennaCapability") REFERENCES ties_data."AntennaCapability" (id) ON DELETE CASCADE;'
976);
977
978SELECT ties_data.create_constraint_if_not_exists(
979 'LTESectorCarrier',
980 'UNIQUE_5D5FEB6B4B09D5D42A589753C684994CD0B96E88',
981 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_5D5FEB6B4B09D5D42A589753C684994CD0B96E88" UNIQUE ("REL_ID_LTESECTORCARRIER_USES_ANTENNACAPABILITY");'
982);
983
984SELECT ties_data.create_constraint_if_not_exists(
985 'ManagedElement',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100986 'FK_ManagedElement_REL_FK_deployed-as-cloudifiedNF',
987 'ALTER TABLE ties_data."ManagedElement" ADD CONSTRAINT "FK_ManagedElement_REL_FK_deployed-as-cloudifiedNF" FOREIGN KEY ("REL_FK_deployed-as-cloudifiedNF") REFERENCES ties_data."CloudifiedNF" (id) ON DELETE CASCADE;'
988);
989
990SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100991 'ManagedElement',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100992 'UNIQUE_E7BC94037DB5B94B7E863A10BEA20C2D4C3C307C',
993 'ALTER TABLE ties_data."ManagedElement" ADD CONSTRAINT "UNIQUE_E7BC94037DB5B94B7E863A10BEA20C2D4C3C307C" UNIQUE ("REL_ID_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF");'
994);
995
996SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +0100997 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE',
JohnKeeneyf1e44602024-06-07 13:07:03 +0100998 'FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_aSide_NFDeployment',
999 'ALTER TABLE ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ADD CONSTRAINT "FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_aSide_NFDeployment" FOREIGN KEY ("aSide_NFDeployment") REFERENCES ties_data."NFDeployment" (id) ON DELETE CASCADE;'
1000);
1001
1002SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001003 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001004 'FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_bSide_CloudNamespace',
1005 'ALTER TABLE ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ADD CONSTRAINT "FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_bSide_CloudNamespace" FOREIGN KEY ("bSide_CloudNamespace") REFERENCES ties_data."CloudNamespace" (id) ON DELETE CASCADE;'
1006);
1007
1008SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001009 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001010 'FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_aSide_NFDeployment',
1011 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_aSide_NFDeployment" FOREIGN KEY ("aSide_NFDeployment") REFERENCES ties_data."NFDeployment" (id) ON DELETE CASCADE;'
1012);
1013
1014SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001015 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001016 'FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_bSide_GNBCUCPFunction',
1017 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_bSide_GNBCUCPFunction" FOREIGN KEY ("bSide_GNBCUCPFunction") REFERENCES ties_data."GNBCUCPFunction" (id) ON DELETE CASCADE;'
1018);
1019
1020SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001021 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001022 'FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_aSide_NFDeployment',
1023 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_aSide_NFDeployment" FOREIGN KEY ("aSide_NFDeployment") REFERENCES ties_data."NFDeployment" (id) ON DELETE CASCADE;'
1024);
1025
1026SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001027 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001028 'FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_bSide_GNBCUUPFunction',
1029 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_bSide_GNBCUUPFunction" FOREIGN KEY ("bSide_GNBCUUPFunction") REFERENCES ties_data."GNBCUUPFunction" (id) ON DELETE CASCADE;'
1030);
1031
1032SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001033 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001034 'FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_aSide_NFDeployment',
1035 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_aSide_NFDeployment" FOREIGN KEY ("aSide_NFDeployment") REFERENCES ties_data."NFDeployment" (id) ON DELETE CASCADE;'
1036);
1037
1038SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001039 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001040 'FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_bSide_GNBDUFunction',
1041 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ADD CONSTRAINT "FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_bSide_GNBDUFunction" FOREIGN KEY ("bSide_GNBDUFunction") REFERENCES ties_data."GNBDUFunction" (id) ON DELETE CASCADE;'
1042);
1043
1044SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001045 'NFDeployment',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001046 'FK_NFDeployment_REL_FK_serviced-managedElement',
1047 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "FK_NFDeployment_REL_FK_serviced-managedElement" FOREIGN KEY ("REL_FK_serviced-managedElement") REFERENCES ties_data."ManagedElement" (id) ON DELETE CASCADE;'
1048);
1049
1050SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001051 'NFDeployment',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001052 'UNIQUE_NFDeployment_REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT',
1053 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "UNIQUE_NFDeployment_REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" UNIQUE ("REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT");'
1054);
1055
1056SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001057 'NFDeployment',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001058 'FK_NFDeployment_REL_FK_comprised-by-cloudifiedNF',
1059 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "FK_NFDeployment_REL_FK_comprised-by-cloudifiedNF" FOREIGN KEY ("REL_FK_comprised-by-cloudifiedNF") REFERENCES ties_data."CloudifiedNF" (id) ON DELETE CASCADE;'
1060);
1061
1062SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001063 'NFDeployment',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001064 'UNIQUE_NFDeployment_REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT',
1065 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "UNIQUE_NFDeployment_REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" UNIQUE ("REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT");'
1066);
1067
1068SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001069 'NODECLUSTER_LOCATED_AT_CLOUDSITE',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001070 'FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_aSide_NodeCluster',
1071 'ALTER TABLE ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ADD CONSTRAINT "FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_aSide_NodeCluster" FOREIGN KEY ("aSide_NodeCluster") REFERENCES ties_data."NodeCluster" (id) ON DELETE CASCADE;'
1072);
1073
1074SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001075 'NODECLUSTER_LOCATED_AT_CLOUDSITE',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001076 'FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_bSide_CloudSite',
1077 'ALTER TABLE ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ADD CONSTRAINT "FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_bSide_CloudSite" FOREIGN KEY ("bSide_CloudSite") REFERENCES ties_data."CloudSite" (id) ON DELETE CASCADE;'
1078);
1079
1080SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001081 'NRCellCU',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001082 'FK_NRCellCU_REL_FK_provided-by-gnbcucpFunction',
1083 'ALTER TABLE ties_data."NRCellCU" ADD CONSTRAINT "FK_NRCellCU_REL_FK_provided-by-gnbcucpFunction" FOREIGN KEY ("REL_FK_provided-by-gnbcucpFunction") REFERENCES ties_data."GNBCUCPFunction" (id) ON DELETE CASCADE;'
1084);
1085
1086SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001087 'NRCellCU',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001088 'UNIQUE_NRCellCU_REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU',
1089 'ALTER TABLE ties_data."NRCellCU" ADD CONSTRAINT "UNIQUE_NRCellCU_REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" UNIQUE ("REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU");'
1090);
1091
1092SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001093 'NRCellDU',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001094 'FK_NRCellDU_REL_FK_provided-by-gnbduFunction',
1095 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "FK_NRCellDU_REL_FK_provided-by-gnbduFunction" FOREIGN KEY ("REL_FK_provided-by-gnbduFunction") REFERENCES ties_data."GNBDUFunction" (id) ON DELETE CASCADE;'
1096);
1097
1098SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001099 'NRCellDU',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001100 'UNIQUE_NRCellDU_REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU',
1101 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "UNIQUE_NRCellDU_REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU" UNIQUE ("REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU");'
1102);
1103
1104SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001105 'NRCellDU',
1106 'FK_NRCellDU_REL_FK_grouped-by-sector',
1107 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "FK_NRCellDU_REL_FK_grouped-by-sector" FOREIGN KEY ("REL_FK_grouped-by-sector") REFERENCES ties_data."Sector" (id) ON DELETE CASCADE;'
JohnKeeneyf1e44602024-06-07 13:07:03 +01001108);
1109
1110SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001111 'NRCellDU',
1112 'UNIQUE_NRCellDU_REL_ID_SECTOR_GROUPS_NRCELLDU',
1113 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "UNIQUE_NRCellDU_REL_ID_SECTOR_GROUPS_NRCELLDU" UNIQUE ("REL_ID_SECTOR_GROUPS_NRCELLDU");'
JohnKeeneyf1e44602024-06-07 13:07:03 +01001114);
1115
1116SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001117 'NRSectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001118 'FK_NRSectorCarrier_REL_FK_provided-by-gnbduFunction',
1119 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "FK_NRSectorCarrier_REL_FK_provided-by-gnbduFunction" FOREIGN KEY ("REL_FK_provided-by-gnbduFunction") REFERENCES ties_data."GNBDUFunction" (id) ON DELETE CASCADE;'
1120);
1121
1122SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001123 'NRSectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001124 'UNIQUE_872BE05F1989443F2595D99A77BC03733B2D1E2F',
1125 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_872BE05F1989443F2595D99A77BC03733B2D1E2F" UNIQUE ("REL_ID_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER");'
1126);
1127
1128SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001129 'NRSectorCarrier',
1130 'FK_NRSectorCarrier_REL_FK_used-by-nrCellDu',
1131 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "FK_NRSectorCarrier_REL_FK_used-by-nrCellDu" FOREIGN KEY ("REL_FK_used-by-nrCellDu") REFERENCES ties_data."NRCellDU" (id) ON DELETE CASCADE;'
1132);
1133
1134SELECT ties_data.create_constraint_if_not_exists(
1135 'NRSectorCarrier',
1136 'UNIQUE_NRSectorCarrier_REL_ID_NRCELLDU_USES_NRSECTORCARRIER',
1137 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_NRSectorCarrier_REL_ID_NRCELLDU_USES_NRSECTORCARRIER" UNIQUE ("REL_ID_NRCELLDU_USES_NRSECTORCARRIER");'
1138);
1139
1140SELECT ties_data.create_constraint_if_not_exists(
1141 'NRSectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001142 'FK_NRSectorCarrier_REL_FK_used-antennaCapability',
1143 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "FK_NRSectorCarrier_REL_FK_used-antennaCapability" FOREIGN KEY ("REL_FK_used-antennaCapability") REFERENCES ties_data."AntennaCapability" (id) ON DELETE CASCADE;'
1144);
1145
1146SELECT ties_data.create_constraint_if_not_exists(
JvD_Ericsson84d3ba82024-07-12 14:54:10 +01001147 'NRSectorCarrier',
JohnKeeneyf1e44602024-06-07 13:07:03 +01001148 'UNIQUE_EDF7D5C78EF6505848B1679B714D7831F5863991',
1149 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_EDF7D5C78EF6505848B1679B714D7831F5863991" UNIQUE ("REL_ID_NRSECTORCARRIER_USES_ANTENNACAPABILITY");'
1150);
1151
JohnKeeneyf1e44602024-06-07 13:07:03 +01001152
1153COMMIT;