-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from jembi/PLAT-706-add-postgres-jempi
Plat 706 add postgres service to Jempi
- Loading branch information
Showing
22 changed files
with
264 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,5 +5,4 @@ services: | |
ports: | ||
- published: 50000 | ||
target: 50000 | ||
protocol: tcp | ||
mode: host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
CREATE TABLE IF NOT EXISTS Notification_Type | ||
( | ||
Id uuid DEFAULT gen_random_uuid() PRIMARY KEY, | ||
Type VARCHAR(50) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS Action_Type | ||
( | ||
Id UUID DEFAULT gen_random_uuid() PRIMARY KEY UNIQUE, | ||
Type VARCHAR(50) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS Notification_State | ||
( | ||
Id UUID DEFAULT gen_random_uuid() PRIMARY KEY, | ||
State VARCHAR(50) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS Notification | ||
( | ||
Id uuid DEFAULT gen_random_uuid() PRIMARY KEY, | ||
Type_Id uuid, | ||
Created date, | ||
Reviewd_By uuid, | ||
Reviewed_At timestamp without time zone, | ||
State_Id uuid, | ||
Patient_Id VARCHAR(50), | ||
Names VARCHAR(100) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS Action | ||
( | ||
Id UUID DEFAULT gen_random_uuid() PRIMARY KEY, | ||
Notification_Id UUID, | ||
Action_Type_Id UUID, | ||
Date date, | ||
CONSTRAINT FK_Notification | ||
FOREIGN KEY(Notification_Id) | ||
REFERENCES Notification(Id), | ||
CONSTRAINT FK_Action_Type | ||
FOREIGN KEY(Action_Type_Id) | ||
REFERENCES Action_Type(Id) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS Match | ||
( | ||
Notification_Id UUID, | ||
Score Numeric, | ||
Golden_Id VARCHAR(50), | ||
CONSTRAINT FK_Notification | ||
FOREIGN KEY(Notification_Id) | ||
REFERENCES Notification(Id) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS candidates | ||
( | ||
Notification_Id UUID, | ||
Score Numeric, | ||
Golden_Id VARCHAR(50), | ||
CONSTRAINT FK_Notification | ||
FOREIGN KEY(Notification_Id) | ||
REFERENCES Notification(Id) | ||
); | ||
|
||
CREATE TABLE IF NOT EXISTS users | ||
( | ||
id UUID DEFAULT gen_random_uuid() PRIMARY KEY UNIQUE, | ||
given_name VARCHAR(255), | ||
family_name VARCHAR(255), | ||
email VARCHAR(255) UNIQUE, | ||
username VARCHAR(255) UNIQUE | ||
); | ||
|
||
INSERT INTO Notification_State(State) | ||
VALUES ('New'), ('Seen'), ('Actioned'), ('Accepted'), ('Pending'); | ||
|
||
INSERT INTO Notification_Type(Type) | ||
VALUES ('THRESHOLD'), ('MARGIN'), ('UPDATE'); | ||
|
||
\dt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,15 +14,15 @@ sudoers: | |
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINGNVNlWwpQKVXPSngEOOdJjuCyVEQoBXv+nHqmcM6vW | ||
- name: [email protected] | ||
username: barrydwyer | ||
state: present | ||
state: absent | ||
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICw4vvV33xxrTzxAiPoRhuwyWUzmgrP5NPo2n4bmKx7P | ||
- name: [email protected] | ||
username: marklabuschagne | ||
state: present | ||
state: absent | ||
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHa1ghm9JsRl6JDtWU8AV+U70jehqlWaXmpjRg3afqB4 | ||
- name: [email protected] | ||
username: castellogovender | ||
state: present | ||
state: absent | ||
key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWl3Vc+v0fiuVBIVTDehGGUgZqfvn0JG2oNS7oMV9X2s3p8VwndKm6/oa5bOO4+sp9Z/8ychvo7S2MNXBRQAzTEXo5Oej5E/aZqaFzvpjgI79cnSidIHTzOUw0rUk2EwpSCpJVSXCjSjxGLbbLI35+KltLVoNXGmpNFq4Xi7XwT9aXIm5KQcbumV1NFRGPl+XiaRHioo37gFtub9XjODdQFfs9KGMS2oEuzzFFaXj5unUDZo+lZlEp67HHwq6EpDLR5xf7l96xBvMpQ/MS2pTxCoHVqXx3IDL5CXBBrgUKS8lUuhPPUJxPeARz4DuU7SmWxhNwTDspAEROQ8Rsq6M+kvdslFVeJ4O5M2Rs75mDTUCAkmZTixkTMuMmWqBuQT3zPA7d8Gf0YLhKfwgyH8y5YeJgpU01o2wbH6em/n2isI+pSIatdUFQAKuFdzJiawQJEB5UobKwN2tKVP8ImjrfN+q8nuqHZwTTGW0AaCrb985aQFTgMbYwQeR3mkBNOE0= | ||
- name: [email protected] | ||
username: lumieremondo | ||
|
@@ -52,15 +52,15 @@ docker_users: | |
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINGNVNlWwpQKVXPSngEOOdJjuCyVEQoBXv+nHqmcM6vW | ||
- name: [email protected] | ||
username: barrydwyer | ||
state: present | ||
state: absent | ||
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICw4vvV33xxrTzxAiPoRhuwyWUzmgrP5NPo2n4bmKx7P | ||
- name: [email protected] | ||
username: marklabuschagne | ||
state: present | ||
state: absent | ||
key: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHa1ghm9JsRl6JDtWU8AV+U70jehqlWaXmpjRg3afqB4 | ||
- name: [email protected] | ||
username: castellogovender | ||
state: present | ||
state: absent | ||
key: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDWl3Vc+v0fiuVBIVTDehGGUgZqfvn0JG2oNS7oMV9X2s3p8VwndKm6/oa5bOO4+sp9Z/8ychvo7S2MNXBRQAzTEXo5Oej5E/aZqaFzvpjgI79cnSidIHTzOUw0rUk2EwpSCpJVSXCjSjxGLbbLI35+KltLVoNXGmpNFq4Xi7XwT9aXIm5KQcbumV1NFRGPl+XiaRHioo37gFtub9XjODdQFfs9KGMS2oEuzzFFaXj5unUDZo+lZlEp67HHwq6EpDLR5xf7l96xBvMpQ/MS2pTxCoHVqXx3IDL5CXBBrgUKS8lUuhPPUJxPeARz4DuU7SmWxhNwTDspAEROQ8Rsq6M+kvdslFVeJ4O5M2Rs75mDTUCAkmZTixkTMuMmWqBuQT3zPA7d8Gf0YLhKfwgyH8y5YeJgpU01o2wbH6em/n2isI+pSIatdUFQAKuFdzJiawQJEB5UobKwN2tKVP8ImjrfN+q8nuqHZwTTGW0AaCrb985aQFTgMbYwQeR3mkBNOE0= | ||
- name: [email protected] | ||
username: lumieremondo | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
[leader] | ||
13.244.111.91 name=node-1 | ||
{ip_1} name=node-1 | ||
|
||
[managers] | ||
13.244.239.144 name=node-2 | ||
13.246.13.60 name=node-3 | ||
{ip_2} name=node-2 | ||
{ip_3} name=node-3 | ||
|
||
[workers] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
[leader] | ||
|
||
{ip_1} name=node-1 | ||
|
||
[managers] | ||
|
||
{ip_2} name=node-2 | ||
{ip_3} name=node-3 | ||
|
||
[workers] |
Oops, something went wrong.