blob: 554c48ec0fff6d9ee0757b2f7eb4537d7046ba8e [file] [log] [blame]
JohnKeeneyf1e44602024-06-07 13:07:03 +01001--
2-- ============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
9--
10-- http://www.apache.org/licenses/LICENSE-2.0
11--
12-- 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.
17--
18-- SPDX-License-Identifier: Apache-2.0
19-- ============LICENSE_END=========================================================
20--
21
22BEGIN;
23
24CREATE EXTENSION IF NOT EXISTS postgis;
25CREATE EXTENSION IF NOT EXISTS postgis_topology;
26
27GRANT USAGE ON SCHEMA topology TO topology_exposure_user;
28GRANT 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 (
40 t_name TEXT, c_name TEXT, constraint_sql TEXT
41)
42RETURNS void AS
43$$
44BEGIN
45 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;
48END;
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" (
55 "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
61);
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" (
70 "id" VARCHAR(511),
71 "nRFqBands" jsonb,
72 "cmId" jsonb,
73 "geranFqBands" jsonb,
74 "fdn" TEXT,
75 "eUtranFqBands" jsonb,
76 "CD_sourceIds" jsonb,
77 "CD_classifiers" jsonb,
78 "CD_decorators" jsonb
79);
80
81ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
82
83ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
84
85ALTER TABLE ONLY ties_data."AntennaCapability" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
86
87CREATE TABLE IF NOT EXISTS ties_data."AntennaModule" (
88 "id" VARCHAR(511),
89 "totalTilt" BIGINT,
90 "cmId" jsonb,
91 "antennaBeamWidth" jsonb,
92 "positionWithinSector" TEXT,
93 "geo-location" geography,
94 "mechanicalAntennaBearing" BIGINT,
95 "fdn" TEXT,
96 "electricalAntennaTilt" BIGINT,
97 "mechanicalAntennaTilt" BIGINT,
98 "antennaModelNumber" TEXT,
99 "CD_sourceIds" jsonb,
100 "CD_classifiers" jsonb,
101 "CD_decorators" jsonb,
102 "REL_FK_grouped-by-sector" VARCHAR(511),
103 "REL_ID_SECTOR_GROUPS_ANTENNAMODULE" VARCHAR(511),
104 "REL_CD_sourceIds_SECTOR_GROUPS_ANTENNAMODULE" jsonb,
105 "REL_CD_classifiers_SECTOR_GROUPS_ANTENNAMODULE" jsonb,
106 "REL_CD_decorators_SECTOR_GROUPS_ANTENNAMODULE" jsonb,
107 "REL_FK_installed-at-site" VARCHAR(511),
108 "REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE" VARCHAR(511),
109 "REL_CD_sourceIds_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb,
110 "REL_CD_classifiers_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb,
111 "REL_CD_decorators_ANTENNAMODULE_INSTALLED_AT_SITE" jsonb
112);
113
114ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
115
116ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
117
118ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
119
120ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '[]';
121
122ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '[]';
123
124ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_ANTENNAMODULE" SET DEFAULT '{}';
125
126ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_sourceIds_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '[]';
127
128ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_classifiers_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '[]';
129
130ALTER TABLE ONLY ties_data."AntennaModule" ALTER COLUMN "REL_CD_decorators_ANTENNAMODULE_INSTALLED_AT_SITE" SET DEFAULT '{}';
131
132CREATE TABLE IF NOT EXISTS ties_data."CloudNamespace" (
133 "id" VARCHAR(511),
134 "name" TEXT,
135 "CD_sourceIds" jsonb,
136 "CD_classifiers" jsonb,
137 "CD_decorators" jsonb,
138 "REL_FK_deployed-on-nodeCluster" VARCHAR(511),
139 "REL_ID_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" VARCHAR(511),
140 "REL_CD_sourceIds_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb,
141 "REL_CD_classifiers_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb,
142 "REL_CD_decorators_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" jsonb
143);
144
145ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
146
147ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
148
149ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
150
151ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_sourceIds_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '[]';
152
153ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_classifiers_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '[]';
154
155ALTER TABLE ONLY ties_data."CloudNamespace" ALTER COLUMN "REL_CD_decorators_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER" SET DEFAULT '{}';
156
157CREATE TABLE IF NOT EXISTS ties_data."CloudSite" (
158 "id" VARCHAR(511),
159 "name" TEXT,
160 "geo-location" geography,
161 "CD_sourceIds" jsonb,
162 "CD_classifiers" jsonb,
163 "CD_decorators" jsonb
164);
165
166ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
167
168ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
169
170ALTER TABLE ONLY ties_data."CloudSite" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
171
172CREATE TABLE IF NOT EXISTS ties_data."CloudifiedNF" (
173 "id" VARCHAR(511),
174 "name" TEXT,
175 "CD_sourceIds" jsonb,
176 "CD_classifiers" jsonb,
177 "CD_decorators" jsonb
178);
179
180ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
181
182ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
183
184ALTER TABLE ONLY ties_data."CloudifiedNF" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
185
186CREATE TABLE IF NOT EXISTS ties_data."ENodeBFunction" (
187 "id" VARCHAR(511),
188 "fdn" TEXT,
189 "cmId" jsonb,
190 "eNodeBPlmnId" jsonb,
191 "eNBId" BIGINT,
192 "CD_sourceIds" jsonb,
193 "CD_classifiers" jsonb,
194 "CD_decorators" jsonb,
195 "REL_FK_managed-by-managedElement" VARCHAR(511),
196 "REL_ID_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" VARCHAR(511),
197 "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb,
198 "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb,
199 "REL_CD_decorators_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" jsonb,
200 "REL_FK_serving-physicalNF" VARCHAR(511),
201 "REL_ID_PHYSICALNF_SERVES_ENODEBFUNCTION" VARCHAR(511),
202 "REL_CD_sourceIds_PHYSICALNF_SERVES_ENODEBFUNCTION" jsonb,
203 "REL_CD_classifiers_PHYSICALNF_SERVES_ENODEBFUNCTION" jsonb,
204 "REL_CD_decorators_PHYSICALNF_SERVES_ENODEBFUNCTION" jsonb
205);
206
207ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
208
209ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
210
211ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
212
213ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '[]';
214
215ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '[]';
216
217ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION" SET DEFAULT '{}';
218
219ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_sourceIds_PHYSICALNF_SERVES_ENODEBFUNCTION" SET DEFAULT '[]';
220
221ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_classifiers_PHYSICALNF_SERVES_ENODEBFUNCTION" SET DEFAULT '[]';
222
223ALTER TABLE ONLY ties_data."ENodeBFunction" ALTER COLUMN "REL_CD_decorators_PHYSICALNF_SERVES_ENODEBFUNCTION" SET DEFAULT '{}';
224
225CREATE TABLE IF NOT EXISTS ties_data."EUtranCell" (
226 "id" VARCHAR(511),
227 "earfcndl" BIGINT,
228 "earfcnul" BIGINT,
229 "cmId" jsonb,
230 "tac" BIGINT,
231 "dlChannelBandwidth" BIGINT,
232 "fdn" TEXT,
233 "cellId" BIGINT,
234 "duplexType" TEXT,
235 "channelBandwidth" BIGINT,
236 "earfcn" BIGINT,
237 "CD_sourceIds" jsonb,
238 "CD_classifiers" jsonb,
239 "CD_decorators" jsonb,
240 "REL_FK_provided-by-enodebFunction" VARCHAR(511),
241 "REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL" VARCHAR(511),
242 "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb,
243 "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb,
244 "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_EUTRANCELL" jsonb,
245 "REL_FK_grouped-by-sector" VARCHAR(511),
246 "REL_ID_SECTOR_GROUPS_EUTRANCELL" VARCHAR(511),
247 "REL_CD_sourceIds_SECTOR_GROUPS_EUTRANCELL" jsonb,
248 "REL_CD_classifiers_SECTOR_GROUPS_EUTRANCELL" jsonb,
249 "REL_CD_decorators_SECTOR_GROUPS_EUTRANCELL" jsonb
250);
251
252ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
253
254ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
255
256ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
257
258ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '[]';
259
260ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '[]';
261
262ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_EUTRANCELL" SET DEFAULT '{}';
263
264ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '[]';
265
266ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '[]';
267
268ALTER TABLE ONLY ties_data."EUtranCell" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_EUTRANCELL" SET DEFAULT '{}';
269
270CREATE TABLE IF NOT EXISTS ties_data."GNBCUCPFunction" (
271 "id" VARCHAR(511),
272 "cmId" jsonb,
273 "pLMNId" jsonb,
274 "gNBIdLength" BIGINT,
275 "fdn" TEXT,
276 "gNBCUName" TEXT,
277 "gNBId" BIGINT,
278 "CD_sourceIds" jsonb,
279 "CD_classifiers" jsonb,
280 "CD_decorators" jsonb,
281 "REL_FK_managed-by-managedElement" VARCHAR(511),
282 "REL_ID_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" VARCHAR(511),
283 "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb,
284 "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb,
285 "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" jsonb,
286 "REL_FK_serving-physicalNF" VARCHAR(511),
287 "REL_ID_PHYSICALNF_SERVES_GNBCUCPFUNCTION" VARCHAR(511),
288 "REL_CD_sourceIds_PHYSICALNF_SERVES_GNBCUCPFUNCTION" jsonb,
289 "REL_CD_classifiers_PHYSICALNF_SERVES_GNBCUCPFUNCTION" jsonb,
290 "REL_CD_decorators_PHYSICALNF_SERVES_GNBCUCPFUNCTION" jsonb
291);
292
293ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
294
295ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
296
297ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
298
299ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '[]';
300
301ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '[]';
302
303ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION" SET DEFAULT '{}';
304
305ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_sourceIds_PHYSICALNF_SERVES_GNBCUCPFUNCTION" SET DEFAULT '[]';
306
307ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_classifiers_PHYSICALNF_SERVES_GNBCUCPFUNCTION" SET DEFAULT '[]';
308
309ALTER TABLE ONLY ties_data."GNBCUCPFunction" ALTER COLUMN "REL_CD_decorators_PHYSICALNF_SERVES_GNBCUCPFUNCTION" SET DEFAULT '{}';
310
311CREATE TABLE IF NOT EXISTS ties_data."GNBCUUPFunction" (
312 "id" VARCHAR(511),
313 "fdn" TEXT,
314 "cmId" jsonb,
315 "gNBIdLength" BIGINT,
316 "gNBId" BIGINT,
317 "CD_sourceIds" jsonb,
318 "CD_classifiers" jsonb,
319 "CD_decorators" jsonb,
320 "REL_FK_managed-by-managedElement" VARCHAR(511),
321 "REL_ID_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" VARCHAR(511),
322 "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb,
323 "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb,
324 "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" jsonb,
325 "REL_FK_serving-physicalNF" VARCHAR(511),
326 "REL_ID_PHYSICALNF_SERVES_GNBCUUPFUNCTION" VARCHAR(511),
327 "REL_CD_sourceIds_PHYSICALNF_SERVES_GNBCUUPFUNCTION" jsonb,
328 "REL_CD_classifiers_PHYSICALNF_SERVES_GNBCUUPFUNCTION" jsonb,
329 "REL_CD_decorators_PHYSICALNF_SERVES_GNBCUUPFUNCTION" jsonb
330);
331
332ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
333
334ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
335
336ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
337
338ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '[]';
339
340ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '[]';
341
342ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION" SET DEFAULT '{}';
343
344ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_sourceIds_PHYSICALNF_SERVES_GNBCUUPFUNCTION" SET DEFAULT '[]';
345
346ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_classifiers_PHYSICALNF_SERVES_GNBCUUPFUNCTION" SET DEFAULT '[]';
347
348ALTER TABLE ONLY ties_data."GNBCUUPFunction" ALTER COLUMN "REL_CD_decorators_PHYSICALNF_SERVES_GNBCUUPFUNCTION" SET DEFAULT '{}';
349
350CREATE TABLE IF NOT EXISTS ties_data."GNBDUFunction" (
351 "id" VARCHAR(511),
352 "cmId" jsonb,
353 "gNBIdLength" BIGINT,
354 "dUpLMNId" jsonb,
355 "fdn" TEXT,
356 "gNBDUId" BIGINT,
357 "gNBId" BIGINT,
358 "CD_sourceIds" jsonb,
359 "CD_classifiers" jsonb,
360 "CD_decorators" jsonb,
361 "REL_FK_managed-by-managedElement" VARCHAR(511),
362 "REL_ID_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" VARCHAR(511),
363 "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb,
364 "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb,
365 "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" jsonb,
366 "REL_FK_serving-physicalNF" VARCHAR(511),
367 "REL_ID_PHYSICALNF_SERVES_GNBDUFUNCTION" VARCHAR(511),
368 "REL_CD_sourceIds_PHYSICALNF_SERVES_GNBDUFUNCTION" jsonb,
369 "REL_CD_classifiers_PHYSICALNF_SERVES_GNBDUFUNCTION" jsonb,
370 "REL_CD_decorators_PHYSICALNF_SERVES_GNBDUFUNCTION" jsonb
371);
372
373ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
374
375ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
376
377ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
378
379ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '[]';
380
381ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '[]';
382
383ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION" SET DEFAULT '{}';
384
385ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_sourceIds_PHYSICALNF_SERVES_GNBDUFUNCTION" SET DEFAULT '[]';
386
387ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_classifiers_PHYSICALNF_SERVES_GNBDUFUNCTION" SET DEFAULT '[]';
388
389ALTER TABLE ONLY ties_data."GNBDUFunction" ALTER COLUMN "REL_CD_decorators_PHYSICALNF_SERVES_GNBDUFUNCTION" SET DEFAULT '{}';
390
391CREATE TABLE IF NOT EXISTS ties_data."LTESectorCarrier" (
392 "id" VARCHAR(511),
393 "cmId" jsonb,
394 "fdn" TEXT,
395 "sectorCarrierType" TEXT,
396 "CD_sourceIds" jsonb,
397 "CD_classifiers" jsonb,
398 "CD_decorators" jsonb,
399 "REL_FK_provided-by-enodebFunction" VARCHAR(511),
400 "REL_ID_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" VARCHAR(511),
401 "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb,
402 "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb,
403 "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" jsonb,
404 "REL_FK_used-antennaCapability" VARCHAR(511),
405 "REL_ID_LTESECTORCARRIER_USES_ANTENNACAPABILITY" VARCHAR(511),
406 "REL_CD_sourceIds_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
407 "REL_CD_classifiers_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
408 "REL_CD_decorators_LTESECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
409 "REL_FK_used-by-euTranCell" VARCHAR(511),
410 "REL_ID_EUTRANCELL_USES_LTESECTORCARRIER" VARCHAR(511),
411 "REL_CD_sourceIds_EUTRANCELL_USES_LTESECTORCARRIER" jsonb,
412 "REL_CD_classifiers_EUTRANCELL_USES_LTESECTORCARRIER" jsonb,
413 "REL_CD_decorators_EUTRANCELL_USES_LTESECTORCARRIER" jsonb
414);
415
416ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
417
418ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
419
420ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
421
422ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '[]';
423
424ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '[]';
425
426ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER" SET DEFAULT '{}';
427
428ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]';
429
430ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]';
431
432ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_LTESECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '{}';
433
434ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_sourceIds_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '[]';
435
436ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_classifiers_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '[]';
437
438ALTER TABLE ONLY ties_data."LTESectorCarrier" ALTER COLUMN "REL_CD_decorators_EUTRANCELL_USES_LTESECTORCARRIER" SET DEFAULT '{}';
439
440CREATE TABLE IF NOT EXISTS ties_data."ManagedElement" (
441 "id" VARCHAR(511),
442 "cmId" jsonb,
443 "fdn" TEXT,
444 "CD_sourceIds" jsonb,
445 "CD_classifiers" jsonb,
446 "CD_decorators" jsonb,
447 "REL_FK_deployed-as-cloudifiedNF" VARCHAR(511),
448 "REL_ID_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" VARCHAR(511),
449 "REL_CD_sourceIds_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb,
450 "REL_CD_classifiers_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb,
451 "REL_CD_decorators_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" jsonb
452);
453
454ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
455
456ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
457
458ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
459
460ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_sourceIds_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '[]';
461
462ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_classifiers_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '[]';
463
464ALTER TABLE ONLY ties_data."ManagedElement" ALTER COLUMN "REL_CD_decorators_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF" SET DEFAULT '{}';
465
466CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" (
467 "id" VARCHAR(511),
468 "aSide_NFDeployment" VARCHAR(511),
469 "bSide_CloudNamespace" VARCHAR(511),
470 "CD_sourceIds" jsonb,
471 "CD_classifiers" jsonb,
472 "CD_decorators" jsonb
473);
474
475ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
476
477ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
478
479ALTER TABLE ONLY ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
480
481CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" (
482 "id" VARCHAR(511),
483 "aSide_NFDeployment" VARCHAR(511),
484 "bSide_GNBCUCPFunction" VARCHAR(511),
485 "CD_sourceIds" jsonb,
486 "CD_classifiers" jsonb,
487 "CD_decorators" jsonb
488);
489
490ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
491
492ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
493
494ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
495
496CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" (
497 "id" VARCHAR(511),
498 "aSide_NFDeployment" VARCHAR(511),
499 "bSide_GNBCUUPFunction" VARCHAR(511),
500 "CD_sourceIds" jsonb,
501 "CD_classifiers" jsonb,
502 "CD_decorators" jsonb
503);
504
505ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
506
507ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
508
509ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
510
511CREATE TABLE IF NOT EXISTS ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" (
512 "id" VARCHAR(511),
513 "aSide_NFDeployment" VARCHAR(511),
514 "bSide_GNBDUFunction" VARCHAR(511),
515 "CD_sourceIds" jsonb,
516 "CD_classifiers" jsonb,
517 "CD_decorators" jsonb
518);
519
520ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
521
522ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
523
524ALTER TABLE ONLY ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
525
526CREATE TABLE IF NOT EXISTS ties_data."NFDeployment" (
527 "id" VARCHAR(511),
528 "name" TEXT,
529 "CD_sourceIds" jsonb,
530 "CD_classifiers" jsonb,
531 "CD_decorators" jsonb,
532 "REL_FK_serviced-managedElement" VARCHAR(511),
533 "REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" VARCHAR(511),
534 "REL_CD_sourceIds_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb,
535 "REL_CD_classifiers_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb,
536 "REL_CD_decorators_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" jsonb,
537 "REL_FK_comprised-by-cloudifiedNF" VARCHAR(511),
538 "REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" VARCHAR(511),
539 "REL_CD_sourceIds_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb,
540 "REL_CD_classifiers_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb,
541 "REL_CD_decorators_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" jsonb
542);
543
544ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
545
546ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
547
548ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
549
550ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_sourceIds_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '[]';
551
552ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_classifiers_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '[]';
553
554ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_decorators_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" SET DEFAULT '{}';
555
556ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_sourceIds_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '[]';
557
558ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_classifiers_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '[]';
559
560ALTER TABLE ONLY ties_data."NFDeployment" ALTER COLUMN "REL_CD_decorators_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" SET DEFAULT '{}';
561
562CREATE TABLE IF NOT EXISTS ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" (
563 "id" VARCHAR(511),
564 "aSide_NodeCluster" VARCHAR(511),
565 "bSide_CloudSite" VARCHAR(511),
566 "CD_sourceIds" jsonb,
567 "CD_classifiers" jsonb,
568 "CD_decorators" jsonb
569);
570
571ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
572
573ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
574
575ALTER TABLE ONLY ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
576
577CREATE TABLE IF NOT EXISTS ties_data."NRCellCU" (
578 "id" VARCHAR(511),
579 "cmId" jsonb,
580 "fdn" TEXT,
581 "nCI" BIGINT,
582 "nRTAC" BIGINT,
583 "plmnId" jsonb,
584 "cellLocalId" BIGINT,
585 "CD_sourceIds" jsonb,
586 "CD_classifiers" jsonb,
587 "CD_decorators" jsonb,
588 "REL_FK_provided-by-gnbcucpFunction" VARCHAR(511),
589 "REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" VARCHAR(511),
590 "REL_CD_sourceIds_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb,
591 "REL_CD_classifiers_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb,
592 "REL_CD_decorators_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" jsonb
593);
594
595ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
596
597ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
598
599ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
600
601ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_sourceIds_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '[]';
602
603ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_classifiers_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '[]';
604
605ALTER TABLE ONLY ties_data."NRCellCU" ALTER COLUMN "REL_CD_decorators_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" SET DEFAULT '{}';
606
607CREATE TABLE IF NOT EXISTS ties_data."NRCellDU" (
608 "id" VARCHAR(511),
609 "cmId" jsonb,
610 "nCI" BIGINT,
611 "nRPCI" BIGINT,
612 "fdn" TEXT,
613 "cellLocalId" BIGINT,
614 "nRTAC" BIGINT,
615 "CD_sourceIds" jsonb,
616 "CD_classifiers" jsonb,
617 "CD_decorators" jsonb,
618 "REL_FK_grouped-by-sector" VARCHAR(511),
619 "REL_ID_SECTOR_GROUPS_NRCELLDU" VARCHAR(511),
620 "REL_CD_sourceIds_SECTOR_GROUPS_NRCELLDU" jsonb,
621 "REL_CD_classifiers_SECTOR_GROUPS_NRCELLDU" jsonb,
622 "REL_CD_decorators_SECTOR_GROUPS_NRCELLDU" jsonb,
623 "REL_FK_provided-by-gnbduFunction" VARCHAR(511),
624 "REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU" VARCHAR(511),
625 "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb,
626 "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb,
627 "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRCELLDU" jsonb
628);
629
630ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
631
632ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
633
634ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
635
636ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_sourceIds_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '[]';
637
638ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_classifiers_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '[]';
639
640ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_decorators_SECTOR_GROUPS_NRCELLDU" SET DEFAULT '{}';
641
642ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '[]';
643
644ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '[]';
645
646ALTER TABLE ONLY ties_data."NRCellDU" ALTER COLUMN "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRCELLDU" SET DEFAULT '{}';
647
648CREATE TABLE IF NOT EXISTS ties_data."NRSectorCarrier" (
649 "id" VARCHAR(511),
650 "bSChannelBwDL" BIGINT,
651 "cmId" jsonb,
652 "arfcnDL" BIGINT,
653 "frequencyUL" BIGINT,
654 "fdn" TEXT,
655 "arfcnUL" BIGINT,
656 "frequencyDL" BIGINT,
657 "CD_sourceIds" jsonb,
658 "CD_classifiers" jsonb,
659 "CD_decorators" jsonb,
660 "REL_FK_used-by-nrCellDu" VARCHAR(511),
661 "REL_ID_NRCELLDU_USES_NRSECTORCARRIER" VARCHAR(511),
662 "REL_CD_sourceIds_NRCELLDU_USES_NRSECTORCARRIER" jsonb,
663 "REL_CD_classifiers_NRCELLDU_USES_NRSECTORCARRIER" jsonb,
664 "REL_CD_decorators_NRCELLDU_USES_NRSECTORCARRIER" jsonb,
665 "REL_FK_provided-by-gnbduFunction" VARCHAR(511),
666 "REL_ID_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" VARCHAR(511),
667 "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb,
668 "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb,
669 "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" jsonb,
670 "REL_FK_used-antennaCapability" VARCHAR(511),
671 "REL_ID_NRSECTORCARRIER_USES_ANTENNACAPABILITY" VARCHAR(511),
672 "REL_CD_sourceIds_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
673 "REL_CD_classifiers_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb,
674 "REL_CD_decorators_NRSECTORCARRIER_USES_ANTENNACAPABILITY" jsonb
675);
676
677ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
678
679ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
680
681ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
682
683ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '[]';
684
685ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '[]';
686
687ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_NRCELLDU_USES_NRSECTORCARRIER" SET DEFAULT '{}';
688
689ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '[]';
690
691ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '[]';
692
693ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER" SET DEFAULT '{}';
694
695ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_sourceIds_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]';
696
697ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_classifiers_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '[]';
698
699ALTER TABLE ONLY ties_data."NRSectorCarrier" ALTER COLUMN "REL_CD_decorators_NRSECTORCARRIER_USES_ANTENNACAPABILITY" SET DEFAULT '{}';
700
701CREATE TABLE IF NOT EXISTS ties_data."NodeCluster" (
702 "id" VARCHAR(511),
703 "name" TEXT,
704 "CD_sourceIds" jsonb,
705 "CD_classifiers" jsonb,
706 "CD_decorators" jsonb
707);
708
709ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
710
711ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
712
713ALTER TABLE ONLY ties_data."NodeCluster" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
714
715CREATE TABLE IF NOT EXISTS ties_data."PhysicalNF" (
716 "id" VARCHAR(511),
717 "cmId" jsonb,
718 "geo-location" geography,
719 "name" TEXT,
720 "type" TEXT,
721 "CD_sourceIds" jsonb,
722 "CD_classifiers" jsonb,
723 "CD_decorators" jsonb,
724 "REL_FK_installed-at-site" VARCHAR(511),
725 "REL_ID_PHYSICALNF_INSTALLED_AT_SITE" VARCHAR(511),
726 "REL_CD_sourceIds_PHYSICALNF_INSTALLED_AT_SITE" jsonb,
727 "REL_CD_classifiers_PHYSICALNF_INSTALLED_AT_SITE" jsonb,
728 "REL_CD_decorators_PHYSICALNF_INSTALLED_AT_SITE" jsonb
729);
730
731ALTER TABLE ONLY ties_data."PhysicalNF" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
732
733ALTER TABLE ONLY ties_data."PhysicalNF" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
734
735ALTER TABLE ONLY ties_data."PhysicalNF" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
736
737ALTER TABLE ONLY ties_data."PhysicalNF" ALTER COLUMN "REL_CD_sourceIds_PHYSICALNF_INSTALLED_AT_SITE" SET DEFAULT '[]';
738
739ALTER TABLE ONLY ties_data."PhysicalNF" ALTER COLUMN "REL_CD_classifiers_PHYSICALNF_INSTALLED_AT_SITE" SET DEFAULT '[]';
740
741ALTER TABLE ONLY ties_data."PhysicalNF" ALTER COLUMN "REL_CD_decorators_PHYSICALNF_INSTALLED_AT_SITE" SET DEFAULT '{}';
742
743CREATE TABLE IF NOT EXISTS ties_data."Sector" (
744 "id" VARCHAR(511),
745 "geo-location" geography,
746 "sectorId" BIGINT,
747 "azimuth" DECIMAL,
748 "CD_sourceIds" jsonb,
749 "CD_classifiers" jsonb,
750 "CD_decorators" jsonb
751);
752
753ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
754
755ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
756
757ALTER TABLE ONLY ties_data."Sector" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
758
759CREATE TABLE IF NOT EXISTS ties_data."Site" (
760 "id" VARCHAR(511),
761 "cmId" jsonb,
762 "geo-location" geography,
763 "name" TEXT,
764 "CD_sourceIds" jsonb,
765 "CD_classifiers" jsonb,
766 "CD_decorators" jsonb
767);
768
769ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_sourceIds" SET DEFAULT '[]';
770
771ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_classifiers" SET DEFAULT '[]';
772
773ALTER TABLE ONLY ties_data."Site" ALTER COLUMN "CD_decorators" SET DEFAULT '{}';
774
775SELECT ties_data.create_constraint_if_not_exists(
776 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY',
777 'PK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_id',
778 'ALTER TABLE ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ADD CONSTRAINT "PK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_id" PRIMARY KEY ("id");'
779);
780
781SELECT ties_data.create_constraint_if_not_exists(
782 'AntennaCapability',
783 'PK_AntennaCapability_id',
784 'ALTER TABLE ties_data."AntennaCapability" ADD CONSTRAINT "PK_AntennaCapability_id" PRIMARY KEY ("id");'
785);
786
787SELECT ties_data.create_constraint_if_not_exists(
788 'AntennaModule',
789 'PK_AntennaModule_id',
790 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "PK_AntennaModule_id" PRIMARY KEY ("id");'
791);
792
793SELECT ties_data.create_constraint_if_not_exists(
794 'CloudNamespace',
795 'PK_CloudNamespace_id',
796 'ALTER TABLE ties_data."CloudNamespace" ADD CONSTRAINT "PK_CloudNamespace_id" PRIMARY KEY ("id");'
797);
798
799SELECT ties_data.create_constraint_if_not_exists(
800 'CloudSite',
801 'PK_CloudSite_id',
802 'ALTER TABLE ties_data."CloudSite" ADD CONSTRAINT "PK_CloudSite_id" PRIMARY KEY ("id");'
803);
804
805SELECT ties_data.create_constraint_if_not_exists(
806 'CloudifiedNF',
807 'PK_CloudifiedNF_id',
808 'ALTER TABLE ties_data."CloudifiedNF" ADD CONSTRAINT "PK_CloudifiedNF_id" PRIMARY KEY ("id");'
809);
810
811SELECT ties_data.create_constraint_if_not_exists(
812 'ENodeBFunction',
813 'PK_ENodeBFunction_id',
814 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "PK_ENodeBFunction_id" PRIMARY KEY ("id");'
815);
816
817SELECT ties_data.create_constraint_if_not_exists(
818 'EUtranCell',
819 'PK_EUtranCell_id',
820 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "PK_EUtranCell_id" PRIMARY KEY ("id");'
821);
822
823SELECT ties_data.create_constraint_if_not_exists(
824 'GNBCUCPFunction',
825 'PK_GNBCUCPFunction_id',
826 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "PK_GNBCUCPFunction_id" PRIMARY KEY ("id");'
827);
828
829SELECT ties_data.create_constraint_if_not_exists(
830 'GNBCUUPFunction',
831 'PK_GNBCUUPFunction_id',
832 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "PK_GNBCUUPFunction_id" PRIMARY KEY ("id");'
833);
834
835SELECT ties_data.create_constraint_if_not_exists(
836 'GNBDUFunction',
837 'PK_GNBDUFunction_id',
838 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "PK_GNBDUFunction_id" PRIMARY KEY ("id");'
839);
840
841SELECT ties_data.create_constraint_if_not_exists(
842 'LTESectorCarrier',
843 'PK_LTESectorCarrier_id',
844 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "PK_LTESectorCarrier_id" PRIMARY KEY ("id");'
845);
846
847SELECT ties_data.create_constraint_if_not_exists(
848 'ManagedElement',
849 'PK_ManagedElement_id',
850 'ALTER TABLE ties_data."ManagedElement" ADD CONSTRAINT "PK_ManagedElement_id" PRIMARY KEY ("id");'
851);
852
853SELECT ties_data.create_constraint_if_not_exists(
854 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE',
855 'PK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_id',
856 'ALTER TABLE ties_data."NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE" ADD CONSTRAINT "PK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_id" PRIMARY KEY ("id");'
857);
858
859SELECT ties_data.create_constraint_if_not_exists(
860 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION',
861 'PK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_id',
862 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_id" PRIMARY KEY ("id");'
863);
864
865SELECT ties_data.create_constraint_if_not_exists(
866 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION',
867 'PK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_id',
868 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_id" PRIMARY KEY ("id");'
869);
870
871SELECT ties_data.create_constraint_if_not_exists(
872 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION',
873 'PK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_id',
874 'ALTER TABLE ties_data."NFDEPLOYMENT_SERVES_GNBDUFUNCTION" ADD CONSTRAINT "PK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_id" PRIMARY KEY ("id");'
875);
876
877SELECT ties_data.create_constraint_if_not_exists(
878 'NFDeployment',
879 'PK_NFDeployment_id',
880 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "PK_NFDeployment_id" PRIMARY KEY ("id");'
881);
882
883SELECT ties_data.create_constraint_if_not_exists(
884 'NODECLUSTER_LOCATED_AT_CLOUDSITE',
885 'PK_NODECLUSTER_LOCATED_AT_CLOUDSITE_id',
886 'ALTER TABLE ties_data."NODECLUSTER_LOCATED_AT_CLOUDSITE" ADD CONSTRAINT "PK_NODECLUSTER_LOCATED_AT_CLOUDSITE_id" PRIMARY KEY ("id");'
887);
888
889SELECT ties_data.create_constraint_if_not_exists(
890 'NRCellCU',
891 'PK_NRCellCU_id',
892 'ALTER TABLE ties_data."NRCellCU" ADD CONSTRAINT "PK_NRCellCU_id" PRIMARY KEY ("id");'
893);
894
895SELECT ties_data.create_constraint_if_not_exists(
896 'NRCellDU',
897 'PK_NRCellDU_id',
898 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "PK_NRCellDU_id" PRIMARY KEY ("id");'
899);
900
901SELECT ties_data.create_constraint_if_not_exists(
902 'NRSectorCarrier',
903 'PK_NRSectorCarrier_id',
904 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "PK_NRSectorCarrier_id" PRIMARY KEY ("id");'
905);
906
907SELECT ties_data.create_constraint_if_not_exists(
908 'NodeCluster',
909 'PK_NodeCluster_id',
910 'ALTER TABLE ties_data."NodeCluster" ADD CONSTRAINT "PK_NodeCluster_id" PRIMARY KEY ("id");'
911);
912
913SELECT ties_data.create_constraint_if_not_exists(
914 'PhysicalNF',
915 'PK_PhysicalNF_id',
916 'ALTER TABLE ties_data."PhysicalNF" ADD CONSTRAINT "PK_PhysicalNF_id" PRIMARY KEY ("id");'
917);
918
919SELECT ties_data.create_constraint_if_not_exists(
920 'Sector',
921 'PK_Sector_id',
922 'ALTER TABLE ties_data."Sector" ADD CONSTRAINT "PK_Sector_id" PRIMARY KEY ("id");'
923);
924
925SELECT ties_data.create_constraint_if_not_exists(
926 'Site',
927 'PK_Site_id',
928 'ALTER TABLE ties_data."Site" ADD CONSTRAINT "PK_Site_id" PRIMARY KEY ("id");'
929);
930
931SELECT ties_data.create_constraint_if_not_exists(
932 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY',
933 'FK_ANTENNAMODULE_SERVES_ANTENNACAPABILITY_aSide_AntennaModule',
934 '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;'
935);
936
937SELECT ties_data.create_constraint_if_not_exists(
938 'ANTENNAMODULE_SERVES_ANTENNACAPABILITY',
939 'FK_AB3CEA707D389B107F1D10BC724542418E02ABEC',
940 'ALTER TABLE ties_data."ANTENNAMODULE_SERVES_ANTENNACAPABILITY" ADD CONSTRAINT "FK_AB3CEA707D389B107F1D10BC724542418E02ABEC" FOREIGN KEY ("bSide_AntennaCapability") REFERENCES ties_data."AntennaCapability" (id) ON DELETE CASCADE;'
941);
942
943SELECT ties_data.create_constraint_if_not_exists(
944 'AntennaModule',
945 'FK_AntennaModule_REL_FK_grouped-by-sector',
946 '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;'
947);
948
949SELECT ties_data.create_constraint_if_not_exists(
950 'AntennaModule',
951 'UNIQUE_AntennaModule_REL_ID_SECTOR_GROUPS_ANTENNAMODULE',
952 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "UNIQUE_AntennaModule_REL_ID_SECTOR_GROUPS_ANTENNAMODULE" UNIQUE ("REL_ID_SECTOR_GROUPS_ANTENNAMODULE");'
953);
954
955SELECT ties_data.create_constraint_if_not_exists(
956 'AntennaModule',
957 'FK_AntennaModule_REL_FK_installed-at-site',
958 '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;'
959);
960
961SELECT ties_data.create_constraint_if_not_exists(
962 'AntennaModule',
963 'UNIQUE_AntennaModule_REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE',
964 'ALTER TABLE ties_data."AntennaModule" ADD CONSTRAINT "UNIQUE_AntennaModule_REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE" UNIQUE ("REL_ID_ANTENNAMODULE_INSTALLED_AT_SITE");'
965);
966
967SELECT ties_data.create_constraint_if_not_exists(
968 'CloudNamespace',
969 'FK_CloudNamespace_REL_FK_deployed-on-nodeCluster',
970 '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;'
971);
972
973SELECT ties_data.create_constraint_if_not_exists(
974 'CloudNamespace',
975 'UNIQUE_C72E1EF93E1AC8FA53D20808E775FF012ACB46F0',
976 'ALTER TABLE ties_data."CloudNamespace" ADD CONSTRAINT "UNIQUE_C72E1EF93E1AC8FA53D20808E775FF012ACB46F0" UNIQUE ("REL_ID_CLOUDNAMESPACE_DEPLOYED_ON_NODECLUSTER");'
977);
978
979SELECT ties_data.create_constraint_if_not_exists(
980 'ENodeBFunction',
981 'FK_ENodeBFunction_REL_FK_managed-by-managedElement',
982 '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;'
983);
984
985SELECT ties_data.create_constraint_if_not_exists(
986 'ENodeBFunction',
987 'UNIQUE_F33037EE8037D0606D15FFB45EE8A27FD6DE30EE',
988 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "UNIQUE_F33037EE8037D0606D15FFB45EE8A27FD6DE30EE" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_ENODEBFUNCTION");'
989);
990
991SELECT ties_data.create_constraint_if_not_exists(
992 'ENodeBFunction',
993 'FK_ENodeBFunction_REL_FK_serving-physicalNF',
994 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "FK_ENodeBFunction_REL_FK_serving-physicalNF" FOREIGN KEY ("REL_FK_serving-physicalNF") REFERENCES ties_data."PhysicalNF" (id) ON DELETE CASCADE;'
995);
996
997SELECT ties_data.create_constraint_if_not_exists(
998 'ENodeBFunction',
999 'UNIQUE_ENodeBFunction_REL_ID_PHYSICALNF_SERVES_ENODEBFUNCTION',
1000 'ALTER TABLE ties_data."ENodeBFunction" ADD CONSTRAINT "UNIQUE_ENodeBFunction_REL_ID_PHYSICALNF_SERVES_ENODEBFUNCTION" UNIQUE ("REL_ID_PHYSICALNF_SERVES_ENODEBFUNCTION");'
1001);
1002
1003SELECT ties_data.create_constraint_if_not_exists(
1004 'EUtranCell',
1005 'FK_EUtranCell_REL_FK_provided-by-enodebFunction',
1006 '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;'
1007);
1008
1009SELECT ties_data.create_constraint_if_not_exists(
1010 'EUtranCell',
1011 'UNIQUE_EUtranCell_REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL',
1012 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "UNIQUE_EUtranCell_REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL" UNIQUE ("REL_ID_ENODEBFUNCTION_PROVIDES_EUTRANCELL");'
1013);
1014
1015SELECT ties_data.create_constraint_if_not_exists(
1016 'EUtranCell',
1017 'FK_EUtranCell_REL_FK_grouped-by-sector',
1018 '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;'
1019);
1020
1021SELECT ties_data.create_constraint_if_not_exists(
1022 'EUtranCell',
1023 'UNIQUE_EUtranCell_REL_ID_SECTOR_GROUPS_EUTRANCELL',
1024 'ALTER TABLE ties_data."EUtranCell" ADD CONSTRAINT "UNIQUE_EUtranCell_REL_ID_SECTOR_GROUPS_EUTRANCELL" UNIQUE ("REL_ID_SECTOR_GROUPS_EUTRANCELL");'
1025);
1026
1027SELECT ties_data.create_constraint_if_not_exists(
1028 'GNBCUCPFunction',
1029 'FK_GNBCUCPFunction_REL_FK_managed-by-managedElement',
1030 '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;'
1031);
1032
1033SELECT ties_data.create_constraint_if_not_exists(
1034 'GNBCUCPFunction',
1035 'UNIQUE_249F73FF1F4316A56DEF4424FA43C2064FFBE4DD',
1036 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "UNIQUE_249F73FF1F4316A56DEF4424FA43C2064FFBE4DD" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBCUCPFUNCTION");'
1037);
1038
1039SELECT ties_data.create_constraint_if_not_exists(
1040 'GNBCUCPFunction',
1041 'FK_GNBCUCPFunction_REL_FK_serving-physicalNF',
1042 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "FK_GNBCUCPFunction_REL_FK_serving-physicalNF" FOREIGN KEY ("REL_FK_serving-physicalNF") REFERENCES ties_data."PhysicalNF" (id) ON DELETE CASCADE;'
1043);
1044
1045SELECT ties_data.create_constraint_if_not_exists(
1046 'GNBCUCPFunction',
1047 'UNIQUE_GNBCUCPFunction_REL_ID_PHYSICALNF_SERVES_GNBCUCPFUNCTION',
1048 'ALTER TABLE ties_data."GNBCUCPFunction" ADD CONSTRAINT "UNIQUE_GNBCUCPFunction_REL_ID_PHYSICALNF_SERVES_GNBCUCPFUNCTION" UNIQUE ("REL_ID_PHYSICALNF_SERVES_GNBCUCPFUNCTION");'
1049);
1050
1051SELECT ties_data.create_constraint_if_not_exists(
1052 'GNBCUUPFunction',
1053 'FK_GNBCUUPFunction_REL_FK_managed-by-managedElement',
1054 '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;'
1055);
1056
1057SELECT ties_data.create_constraint_if_not_exists(
1058 'GNBCUUPFunction',
1059 'UNIQUE_BDB349CDF0C4055902881ECCB71F460AE1DD323E',
1060 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "UNIQUE_BDB349CDF0C4055902881ECCB71F460AE1DD323E" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBCUUPFUNCTION");'
1061);
1062
1063SELECT ties_data.create_constraint_if_not_exists(
1064 'GNBCUUPFunction',
1065 'FK_GNBCUUPFunction_REL_FK_serving-physicalNF',
1066 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "FK_GNBCUUPFunction_REL_FK_serving-physicalNF" FOREIGN KEY ("REL_FK_serving-physicalNF") REFERENCES ties_data."PhysicalNF" (id) ON DELETE CASCADE;'
1067);
1068
1069SELECT ties_data.create_constraint_if_not_exists(
1070 'GNBCUUPFunction',
1071 'UNIQUE_GNBCUUPFunction_REL_ID_PHYSICALNF_SERVES_GNBCUUPFUNCTION',
1072 'ALTER TABLE ties_data."GNBCUUPFunction" ADD CONSTRAINT "UNIQUE_GNBCUUPFunction_REL_ID_PHYSICALNF_SERVES_GNBCUUPFUNCTION" UNIQUE ("REL_ID_PHYSICALNF_SERVES_GNBCUUPFUNCTION");'
1073);
1074
1075SELECT ties_data.create_constraint_if_not_exists(
1076 'GNBDUFunction',
1077 'FK_GNBDUFunction_REL_FK_managed-by-managedElement',
1078 '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;'
1079);
1080
1081SELECT ties_data.create_constraint_if_not_exists(
1082 'GNBDUFunction',
1083 'UNIQUE_08DFEFAF56EDDE43CBDC336F459D28C6518D3E1D',
1084 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "UNIQUE_08DFEFAF56EDDE43CBDC336F459D28C6518D3E1D" UNIQUE ("REL_ID_MANAGEDELEMENT_MANAGES_GNBDUFUNCTION");'
1085);
1086
1087SELECT ties_data.create_constraint_if_not_exists(
1088 'GNBDUFunction',
1089 'FK_GNBDUFunction_REL_FK_serving-physicalNF',
1090 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "FK_GNBDUFunction_REL_FK_serving-physicalNF" FOREIGN KEY ("REL_FK_serving-physicalNF") REFERENCES ties_data."PhysicalNF" (id) ON DELETE CASCADE;'
1091);
1092
1093SELECT ties_data.create_constraint_if_not_exists(
1094 'GNBDUFunction',
1095 'UNIQUE_GNBDUFunction_REL_ID_PHYSICALNF_SERVES_GNBDUFUNCTION',
1096 'ALTER TABLE ties_data."GNBDUFunction" ADD CONSTRAINT "UNIQUE_GNBDUFunction_REL_ID_PHYSICALNF_SERVES_GNBDUFUNCTION" UNIQUE ("REL_ID_PHYSICALNF_SERVES_GNBDUFUNCTION");'
1097);
1098
1099SELECT ties_data.create_constraint_if_not_exists(
1100 'LTESectorCarrier',
1101 'FK_LTESectorCarrier_REL_FK_provided-by-enodebFunction',
1102 '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;'
1103);
1104
1105SELECT ties_data.create_constraint_if_not_exists(
1106 'LTESectorCarrier',
1107 'UNIQUE_B9770D6C26DDA0173DB9690F6E3B42C111AF26E9',
1108 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_B9770D6C26DDA0173DB9690F6E3B42C111AF26E9" UNIQUE ("REL_ID_ENODEBFUNCTION_PROVIDES_LTESECTORCARRIER");'
1109);
1110
1111SELECT ties_data.create_constraint_if_not_exists(
1112 'LTESectorCarrier',
1113 'FK_LTESectorCarrier_REL_FK_used-antennaCapability',
1114 '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;'
1115);
1116
1117SELECT ties_data.create_constraint_if_not_exists(
1118 'LTESectorCarrier',
1119 'UNIQUE_5D5FEB6B4B09D5D42A589753C684994CD0B96E88',
1120 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_5D5FEB6B4B09D5D42A589753C684994CD0B96E88" UNIQUE ("REL_ID_LTESECTORCARRIER_USES_ANTENNACAPABILITY");'
1121);
1122
1123SELECT ties_data.create_constraint_if_not_exists(
1124 'LTESectorCarrier',
1125 'FK_LTESectorCarrier_REL_FK_used-by-euTranCell',
1126 '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;'
1127);
1128
1129SELECT ties_data.create_constraint_if_not_exists(
1130 'LTESectorCarrier',
1131 'UNIQUE_LTESectorCarrier_REL_ID_EUTRANCELL_USES_LTESECTORCARRIER',
1132 'ALTER TABLE ties_data."LTESectorCarrier" ADD CONSTRAINT "UNIQUE_LTESectorCarrier_REL_ID_EUTRANCELL_USES_LTESECTORCARRIER" UNIQUE ("REL_ID_EUTRANCELL_USES_LTESECTORCARRIER");'
1133);
1134
1135SELECT ties_data.create_constraint_if_not_exists(
1136 'ManagedElement',
1137 'FK_ManagedElement_REL_FK_deployed-as-cloudifiedNF',
1138 '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;'
1139);
1140
1141SELECT ties_data.create_constraint_if_not_exists(
1142 'ManagedElement',
1143 'UNIQUE_E7BC94037DB5B94B7E863A10BEA20C2D4C3C307C',
1144 'ALTER TABLE ties_data."ManagedElement" ADD CONSTRAINT "UNIQUE_E7BC94037DB5B94B7E863A10BEA20C2D4C3C307C" UNIQUE ("REL_ID_MANAGEDELEMENT_DEPLOYED_AS_CLOUDIFIEDNF");'
1145);
1146
1147SELECT ties_data.create_constraint_if_not_exists(
1148 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE',
1149 'FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_aSide_NFDeployment',
1150 '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;'
1151);
1152
1153SELECT ties_data.create_constraint_if_not_exists(
1154 'NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE',
1155 'FK_NFDEPLOYMENT_DEPLOYED_ON_CLOUDNAMESPACE_bSide_CloudNamespace',
1156 '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;'
1157);
1158
1159SELECT ties_data.create_constraint_if_not_exists(
1160 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION',
1161 'FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_aSide_NFDeployment',
1162 '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;'
1163);
1164
1165SELECT ties_data.create_constraint_if_not_exists(
1166 'NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION',
1167 'FK_NFDEPLOYMENT_SERVES_GNBCUCPFUNCTION_bSide_GNBCUCPFunction',
1168 '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;'
1169);
1170
1171SELECT ties_data.create_constraint_if_not_exists(
1172 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION',
1173 'FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_aSide_NFDeployment',
1174 '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;'
1175);
1176
1177SELECT ties_data.create_constraint_if_not_exists(
1178 'NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION',
1179 'FK_NFDEPLOYMENT_SERVES_GNBCUUPFUNCTION_bSide_GNBCUUPFunction',
1180 '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;'
1181);
1182
1183SELECT ties_data.create_constraint_if_not_exists(
1184 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION',
1185 'FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_aSide_NFDeployment',
1186 '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;'
1187);
1188
1189SELECT ties_data.create_constraint_if_not_exists(
1190 'NFDEPLOYMENT_SERVES_GNBDUFUNCTION',
1191 'FK_NFDEPLOYMENT_SERVES_GNBDUFUNCTION_bSide_GNBDUFunction',
1192 '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;'
1193);
1194
1195SELECT ties_data.create_constraint_if_not_exists(
1196 'NFDeployment',
1197 'FK_NFDeployment_REL_FK_serviced-managedElement',
1198 '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;'
1199);
1200
1201SELECT ties_data.create_constraint_if_not_exists(
1202 'NFDeployment',
1203 'UNIQUE_NFDeployment_REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT',
1204 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "UNIQUE_NFDeployment_REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT" UNIQUE ("REL_ID_NFDEPLOYMENT_SERVES_MANAGEDELEMENT");'
1205);
1206
1207SELECT ties_data.create_constraint_if_not_exists(
1208 'NFDeployment',
1209 'FK_NFDeployment_REL_FK_comprised-by-cloudifiedNF',
1210 '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;'
1211);
1212
1213SELECT ties_data.create_constraint_if_not_exists(
1214 'NFDeployment',
1215 'UNIQUE_NFDeployment_REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT',
1216 'ALTER TABLE ties_data."NFDeployment" ADD CONSTRAINT "UNIQUE_NFDeployment_REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT" UNIQUE ("REL_ID_CLOUDIFIEDNF_COMPRISES_NFDEPLOYMENT");'
1217);
1218
1219SELECT ties_data.create_constraint_if_not_exists(
1220 'NODECLUSTER_LOCATED_AT_CLOUDSITE',
1221 'FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_aSide_NodeCluster',
1222 '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;'
1223);
1224
1225SELECT ties_data.create_constraint_if_not_exists(
1226 'NODECLUSTER_LOCATED_AT_CLOUDSITE',
1227 'FK_NODECLUSTER_LOCATED_AT_CLOUDSITE_bSide_CloudSite',
1228 '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;'
1229);
1230
1231SELECT ties_data.create_constraint_if_not_exists(
1232 'NRCellCU',
1233 'FK_NRCellCU_REL_FK_provided-by-gnbcucpFunction',
1234 '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;'
1235);
1236
1237SELECT ties_data.create_constraint_if_not_exists(
1238 'NRCellCU',
1239 'UNIQUE_NRCellCU_REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU',
1240 'ALTER TABLE ties_data."NRCellCU" ADD CONSTRAINT "UNIQUE_NRCellCU_REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU" UNIQUE ("REL_ID_GNBCUCPFUNCTION_PROVIDES_NRCELLCU");'
1241);
1242
1243SELECT ties_data.create_constraint_if_not_exists(
1244 'NRCellDU',
1245 'FK_NRCellDU_REL_FK_grouped-by-sector',
1246 '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;'
1247);
1248
1249SELECT ties_data.create_constraint_if_not_exists(
1250 'NRCellDU',
1251 'UNIQUE_NRCellDU_REL_ID_SECTOR_GROUPS_NRCELLDU',
1252 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "UNIQUE_NRCellDU_REL_ID_SECTOR_GROUPS_NRCELLDU" UNIQUE ("REL_ID_SECTOR_GROUPS_NRCELLDU");'
1253);
1254
1255SELECT ties_data.create_constraint_if_not_exists(
1256 'NRCellDU',
1257 'FK_NRCellDU_REL_FK_provided-by-gnbduFunction',
1258 '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;'
1259);
1260
1261SELECT ties_data.create_constraint_if_not_exists(
1262 'NRCellDU',
1263 'UNIQUE_NRCellDU_REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU',
1264 'ALTER TABLE ties_data."NRCellDU" ADD CONSTRAINT "UNIQUE_NRCellDU_REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU" UNIQUE ("REL_ID_GNBDUFUNCTION_PROVIDES_NRCELLDU");'
1265);
1266
1267SELECT ties_data.create_constraint_if_not_exists(
1268 'NRSectorCarrier',
1269 'FK_NRSectorCarrier_REL_FK_used-by-nrCellDu',
1270 '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;'
1271);
1272
1273SELECT ties_data.create_constraint_if_not_exists(
1274 'NRSectorCarrier',
1275 'UNIQUE_NRSectorCarrier_REL_ID_NRCELLDU_USES_NRSECTORCARRIER',
1276 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_NRSectorCarrier_REL_ID_NRCELLDU_USES_NRSECTORCARRIER" UNIQUE ("REL_ID_NRCELLDU_USES_NRSECTORCARRIER");'
1277);
1278
1279SELECT ties_data.create_constraint_if_not_exists(
1280 'NRSectorCarrier',
1281 'FK_NRSectorCarrier_REL_FK_provided-by-gnbduFunction',
1282 '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;'
1283);
1284
1285SELECT ties_data.create_constraint_if_not_exists(
1286 'NRSectorCarrier',
1287 'UNIQUE_872BE05F1989443F2595D99A77BC03733B2D1E2F',
1288 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_872BE05F1989443F2595D99A77BC03733B2D1E2F" UNIQUE ("REL_ID_GNBDUFUNCTION_PROVIDES_NRSECTORCARRIER");'
1289);
1290
1291SELECT ties_data.create_constraint_if_not_exists(
1292 'NRSectorCarrier',
1293 'FK_NRSectorCarrier_REL_FK_used-antennaCapability',
1294 '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;'
1295);
1296
1297SELECT ties_data.create_constraint_if_not_exists(
1298 'NRSectorCarrier',
1299 'UNIQUE_EDF7D5C78EF6505848B1679B714D7831F5863991',
1300 'ALTER TABLE ties_data."NRSectorCarrier" ADD CONSTRAINT "UNIQUE_EDF7D5C78EF6505848B1679B714D7831F5863991" UNIQUE ("REL_ID_NRSECTORCARRIER_USES_ANTENNACAPABILITY");'
1301);
1302
1303SELECT ties_data.create_constraint_if_not_exists(
1304 'PhysicalNF',
1305 'FK_PhysicalNF_REL_FK_installed-at-site',
1306 'ALTER TABLE ties_data."PhysicalNF" ADD CONSTRAINT "FK_PhysicalNF_REL_FK_installed-at-site" FOREIGN KEY ("REL_FK_installed-at-site") REFERENCES ties_data."Site" (id) ON DELETE CASCADE;'
1307);
1308
1309SELECT ties_data.create_constraint_if_not_exists(
1310 'PhysicalNF',
1311 'UNIQUE_PhysicalNF_REL_ID_PHYSICALNF_INSTALLED_AT_SITE',
1312 'ALTER TABLE ties_data."PhysicalNF" ADD CONSTRAINT "UNIQUE_PhysicalNF_REL_ID_PHYSICALNF_INSTALLED_AT_SITE" UNIQUE ("REL_ID_PHYSICALNF_INSTALLED_AT_SITE");'
1313);
1314
1315
1316
1317
1318
1319
1320COMMIT;