summaryrefslogtreecommitdiffstats
path: root/src/main/docker/postgres_scripts/createdb.sql
blob: dc843e72254a294256c66957607c9322fed8145b (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
CREATE DATABASE sonh_ms;
\c sonh_ms
CREATE TABLE DMAAP_NOTIFICATIONS(
	notification TEXT PRIMARY KEY NOT NULL,
	created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE BUFFERED_NOTIFICATIONS(
	notification TEXT PRIMARY KEY NOT NULL,
        cluster_id TEXT NOT NULL,
	created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE CLUSTER_DETAILS(
	cluster_id TEXT PRIMARY KEY NOT NULL,
	cluster_info TEXT NOT NULL,
	child_thread_id BIGINT UNIQUE NOT NULL
);
CREATE TABLE CELL_INFO(
	cell_id TEXT PRIMARY KEY NOT NULL,
	pnf_name TEXT NOT NULL
);
CREATE TABLE PCI_REQUESTS(
	transaction_id TEXT PRIMARY KEY,
	child_thread_id BIGINT UNIQUE NOT NULL
);