summaryrefslogtreecommitdiffstats
path: root/resources/dbscripts/mysql/vfc-nfvo-catalog-createobj.sql
blob: 6aba3eeeb6a6e3854f1c43d58fbd7173cd17a200 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
--
-- Copyright  2017 ZTE Corporation.
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
--     http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--

use nfvocatalog;

DROP TABLE IF EXISTS NFVO_JOB;
CREATE TABLE NFVO_JOB (
  `JOBID` varchar(255) NOT NULL PRIMARY KEY,
  `JOBTYPE` varchar (255) NOT NULL,
  `JOBACTION` varchar(255) NOT NULL,
  `RESID` varchar(255) NOT NULL,
  `STATUS` integer NULL,
  `STARTTIME` varchar(255) NULL,
  `ENDTIME` varchar(255) NULL,
  `PROGRESS` integer NULL,
  `USER` varchar(255) NULL,
  `PARENTJOBID` varchar(255) NULL,
  `RESNAME` varchar(255) NULL
);

DROP TABLE IF EXISTS NFVO_JOB_STATUS;
CREATE TABLE NFVO_JOB_STATUS (
  `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `INDEXID` integer NOT NULL,
  `JOBID` varchar(255) NOT NULL,
  `STATUS` varchar(255) NOT NULL,
  `PROGRESS` integer NULL,
  `DESCP` longtext NOT NULL,
  `ERRCODE` varchar(255) NULL,
  `ADDTIME` varchar(255) NULL
);


DROP TABLE IF EXISTS NFVO_NFPACKAGE;
CREATE TABLE NFVO_NFPACKAGE (
  `UUID` varchar(255) NOT NULL PRIMARY KEY,
  `NFPACKAGEID` varchar(200) NOT NULL,
  `VNFDID` varchar(255) NOT NULL,
  `VENDOR` varchar(255) NOT NULL,
  `VNFDVERSION` varchar(255) NOT NULL,
  `VNFVERSION` varchar(255) NOT NULL,
  `VNFDMODEL` longtext NULL,
  `VNFDPATH` varchar(300) NULL
);

DROP TABLE IF EXISTS NFVO_NSPACKAGE;
CREATE TABLE NFVO_NSPACKAGE (
  `ID` varchar(200) NOT NULL PRIMARY KEY,
  `NSDID` varchar(200) NOT NULL,
  `NAME` varchar(200) NOT NULL,
  `VENDOR` varchar(200) NULL,
  `DESCRIPTION` varchar(200) NULL,
  `VERSION` varchar(200) NULL,
  `NSDMODEL` longtext NULL,
  `NSDPATH` varchar(300) NULL
);


DROP TABLE IF EXISTS NFVO_NFPACKAGEFILE;
CREATE TABLE NFVO_NFPACKAGEFILE (
  `ID` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
  `NFPACKAGEID` varchar(50) NOT NULL,
  `FILENAME` varchar(100) NOT NULL,
  `FILETYPE` varchar(2) NOT NULL,
  `IMAGEID` varchar(50) NOT NULL,
  `VIMID` varchar(50) NOT NULL,
  `VIMUSER` varchar(50) NOT NULL,
  `TENANT` varchar(50) NOT NULL,
  `PURPOSE` varchar(1000) NOT NULL,
  `STATUS` varchar(10) NOT NULL
);