From 5d8c44c0a096bc5ef24332855f5dc97e4a066d6a Mon Sep 17 00:00:00 2001 From: magnusanatolius Date: Fri, 13 Mar 2020 15:26:04 +0100 Subject: [PATCH] std_fields_values is added to sql scripts --- build.sh | 4 ++++ data.sql | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..807c4c7 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/bash + + + \ No newline at end of file diff --git a/data.sql b/data.sql index a1aa6f4..f1c8783 100644 --- a/data.sql +++ b/data.sql @@ -63,6 +63,19 @@ CREATE table IF NOT EXISTS std_fields ( update_at timestamp ); +CREATE table IF NOT EXISTS std_fields_values ( + id serial UNIQUE NOT NULL, + std_field_id int NOT NULL, + values varchar(150), + + CONSTRAINT std_fields_id_fkkey FOREIGN KEY (std_field_id) + REFERENCES std_fields(id) MATCH SIMPLE + ON UPDATE NO ACTION ON DELETE NO ACTION, + + create_at timestamp NOT NULL DEFAULT NOW(), + update_at timestamp +) + CREATE table IF NOT EXISTS addtl_fields ( id serial UNIQUE NOT NULL , addtl_field_id integer, @@ -70,7 +83,7 @@ CREATE table IF NOT EXISTS addtl_fields ( category varchar(100), field_name varchar(50), definition_and_comment varchar(150), - Obligation_or_condition varchar(150), + obligation_or_condition varchar(150), field_type varchar(100), values varchar(150), isPublic BOOLEAN,