Skip to content

Commit

Permalink
std_fields_values is added to sql scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
anatolicvs committed Mar 13, 2020
1 parent 55e0793 commit 5d8c44c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash



15 changes: 14 additions & 1 deletion data.sql
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,27 @@ 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,

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,
Expand Down

0 comments on commit 5d8c44c

Please sign in to comment.