aboutsummaryrefslogtreecommitdiffstats
path: root/mso-catalog-db/pom.xml
blob: 08e9719f5056770eb4c47d30b142c94dce6c98dd (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.onap.so</groupId>
    <artifactId>so</artifactId>
    <version>1.4.0-SNAPSHOT</version>
  </parent>

  <artifactId>mso-catalog-db</artifactId>
  <name>mso-catalog-db</name>
  <description>MSO Catalog Database definition and Hibernate objects</description>

  <build>
    <finalName>${project.artifactId}</finalName>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>jar</goal>
            </goals>
            <configuration>
              <classifier>beans</classifier>
              <includes>
                <include>**/beans/*</include>
                <include>**/macro/*</include>
                <include>**/utils/*</include>
              </includes>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.3</version>
          <configuration>
            <source>1.8</source>
            <target>1.8</target>
            <fork>true</fork>
            <compilerArgs>
              <arg>-parameters</arg>
            </compilerArgs>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
  <dependencies>
    <dependency>
      <groupId>uk.co.blackpepper.bowman</groupId>
      <artifactId>bowman-client</artifactId>
      <version>0.3.0</version>
    </dependency>
    <dependency>
      <groupId>org.onap.so</groupId>
      <artifactId>common</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-data-jpa</artifactId>
      <optional>true</optional>
    </dependency>
    <dependency>
      <groupId>org.mariadb.jdbc</groupId>
      <artifactId>mariadb-java-client</artifactId>
    </dependency>
    <dependency>
      <groupId>com.openpojo</groupId>
      <artifactId>openpojo</artifactId>
      <version>0.8.6</version>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-test</artifactId>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>ch.vorburger.mariaDB4j</groupId>
      <artifactId>mariaDB4j</artifactId>
      <version>2.2.3</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-data-rest</artifactId>
    </dependency>
    <dependency>
      <groupId>org.springframework.data</groupId>
      <artifactId>spring-data-rest-hal-browser</artifactId>
    </dependency>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm-xml</artifactId>
      <version>6.1</version>
    </dependency>
  </dependencies>
</project>
span class="k">NULL, resource_load_time DATETIME NOT NULL, resource_expiration_time DATETIME ); CREATE INDEX i1_resource_load ON RESOURCE_LOAD (resource_id); CREATE UNIQUE INDEX ak1_resource_load ON RESOURCE_LOAD (resource_id, application_id); CREATE TABLE ALLOCATION_ITEM ( allocation_item_id SERIAL PRIMARY KEY, resource_id BIGINT NOT NULL REFERENCES resource (resource_id), application_id VARCHAR(50) NOT NULL, resource_set_id VARCHAR(50) NOT NULL, resource_union_id VARCHAR(50) NOT NULL, resource_share_group_list VARCHAR(200), lt_used BIGINT, ll_label VARCHAR(50), rr_used VARCHAR(200), allocation_time DATETIME NOT NULL ); CREATE INDEX i1_allocation_item ON allocation_item (resource_id); CREATE UNIQUE INDEX ak1_allocation_item ON allocation_item (resource_id, resource_set_id); CREATE TABLE RESOURCE_RULE ( resource_rule_id SERIAL PRIMARY KEY, resource_name VARCHAR(50) NOT NULL, service_model VARCHAR(50) NOT NULL, end_point_position VARCHAR(50) NOT NULL, service_expression VARCHAR(2000) NOT NULL, equipment_level VARCHAR(50) NOT NULL, equipment_expression VARCHAR(2000) NOT NULL, allocation_expression VARCHAR(2000) NOT NULL, soft_limit_expression VARCHAR(2000) NOT NULL, hard_limit_expression VARCHAR(2000) NOT NULL ); CREATE TABLE RESOURCE_THRESHOLD ( resource_threshold_id bigint(20) unsigned NOT NULL AUTO_INCREMENT, resource_rule_id bigint(20) NOT NULL, threshold_expression varchar(2000) NOT NULL, threshold_message varchar(2000) NOT NULL, PRIMARY KEY (resource_threshold_id) ); CREATE TABLE RANGE_RULE ( range_rule_id SERIAL PRIMARY KEY, range_name VARCHAR(50) NOT NULL, service_model VARCHAR(50) NOT NULL, end_point_position VARCHAR(50) NOT NULL, equipment_level VARCHAR(50) NOT NULL, min_value INT NOT NULL, max_value INT NOT NULL ); CREATE TABLE MAX_PORT_SPEED ( max_port_speed_id SERIAL PRIMARY KEY, image_file_name VARCHAR(50) NOT NULL, end_point_position VARCHAR(50) NOT NULL, interface_name VARCHAR(100) NOT NULL, max_speed BIGINT NOT NULL, unit VARCHAR(10) NOT NULL ); CREATE TABLE MAX_SERVER_SPEED ( max_server_speed_id SERIAL PRIMARY KEY, server_model VARCHAR(50) NOT NULL, evc_count SMALLINT NOT NULL, max_speed BIGINT NOT NULL, unit VARCHAR(10) NOT NULL, description VARCHAR(500) ); CREATE TABLE SERVICE_RESOURCE ( service_resource_id SERIAL PRIMARY KEY, service_instance_id VARCHAR(80) NOT NULL, service_status VARCHAR(10) NOT NULL, service_change_number SMALLINT NOT NULL, resource_set_id VARCHAR(100) NOT NULL, resource_union_id VARCHAR(100) NOT NULL, ); ALTER TABLE SERVICE_RESOURCE ADD CONSTRAINT C1_SERVICE_RESOURCE CHECK (service_status IN ('Active', 'Pending')); CREATE INDEX i1_service_resource ON SERVICE_RESOURCE (service_instance_id); CREATE UNIQUE INDEX ak1_service_resource ON SERVICE_RESOURCE (service_instance_id, service_change_number); CREATE TABLE VPE_POOL ( vpe_name VARCHAR(20) NOT NULL, ipv4_oam_address VARCHAR(20) NOT NULL, loopback0_ipv4_address VARCHAR(20) NOT NULL, provisioning_status VARCHAR(10) NOT NULL, aic_site_id VARCHAR(100) NOT NULL, availability_zone VARCHAR(100) NOT NULL, vlan_id_outer VARCHAR(20) NOT NULL, vendor VARCHAR(20) NOT NULL, physical_intf_name VARCHAR(40) NOT NULL, physical_intf_speed VARCHAR(20) NOT NULL, physical_intf_units VARCHAR(20) NOT NULL, vpe_uuid VARCHAR(80) DEFAULT NULL, vpe_id VARCHAR(80) DEFAULT NULL, image_filename VARCHAR(100) DEFAULT NULL, PRIMARY KEY (aic_site_id, vpe_name, availability_zone) ); CREATE TABLE VPLSPE_POOL ( vplspe_name varchar(20) NOT NULL, aic_site_id varchar(100) NOT NULL, availability_zone varchar(100) NOT NULL, physical_intf_name varchar(40) NOT NULL, physical_intf_speed varchar(20) NOT NULL, physical_intf_units varchar(20) NOT NULL, loopback0_ipv4_address varchar(20) NOT NULL, vlan_id_outer varchar(20) NOT NULL, vplspe_uuid varchar(80) DEFAULT NULL, image_filename varchar(100) DEFAULT NULL, provisioning_status varchar(10) DEFAULT NULL, vendor varchar(20) DEFAULT NULL, PRIMARY KEY (vplspe_name, aic_site_id, availability_zone, physical_intf_name) ); CREATE TABLE VPE_LOCK ( vpe_name varchar(20) NOT NULL, vpn_lock varchar(20) NOT NULL, PRIMARY KEY (vpe_name) ); CREATE TABLE PARAMETERS ( name varchar(100) PRIMARY KEY, value varchar(24) NOT NULL, category varchar(24) NOT NULL, memo varchar(128) ); CREATE TABLE PSERVER ( hostname varchar(255) NOT NULL, ptnii_equip_name varchar(255), number_of_cpus varchar(255), disk_in_gigabytes varchar(255), ram_in_megabytes varchar(255), equip_type varchar(255), equip_vendor varchar(255), equip_model varchar(255), fqdn varchar(255), pserver_selflink varchar(255), ipv4_oam_address varchar(15), serial_number varchar(255), pserver_id varchar(255), internet_topology varchar(40), aic_site_id varchar(100), in_maint varchar(5), pserver_name2 varchar(255), purpose varchar(255), PRIMARY KEY (hostname) );