add infraserver table

This commit is contained in:
Emmanuel Garette 2020-08-19 11:37:15 +02:00
parent 80bcc8821f
commit 0d938a2389
1 changed files with 17 additions and 1 deletions

View File

@ -46,8 +46,12 @@ CREATE TABLE Zone (
SitesName VARCHAR(255) [] NOT NULL
);
-------------------------------------
-- Infra
-------------------------------------
-- Server
CREATE TABLE Server (
CREATE TABLE InfraServer(
ServerId SERIAL PRIMARY KEY,
ServerName VARCHAR(255) NOT NULL UNIQUE,
ServerDescription VARCHAR(255) NOT NULL,
@ -75,6 +79,18 @@ CREATE TABLE Release (
FOREIGN KEY (ReleaseSourceId) REFERENCES Source(SourceId)
);
-------------------------------------
-- Setting
-------------------------------------
-- SettingServer
CREATE TABLE SettingServer(
ServerId SERIAL PRIMARY KEY,
ServerName VARCHAR(255) NOT NULL UNIQUE,
ServermodelName VARCHAR(255) NOT NULL,
ReleaseDistribution VARCHAR(255) NOT NULL
);
-- Servermodel
CREATE TABLE Servermodel (
ServermodelId SERIAL PRIMARY KEY,