Commit a01d1edc authored by Siiri's avatar Siiri
Browse files

TEIS-2185: added new entities: OfficialInSequenceEntity and OfficialsSequenceEntity.

parent c76917b2
......@@ -12,10 +12,7 @@ CREATE TABLE IF NOT EXISTS officials_sequence
created_at timestamp,
created_by varchar(255),
modified_at timestamp,
modified_by varchar(255),
modified_id varchar(255),
deleted_at timestamp,
deleted_id varchar(255)
modified_by varchar(255)
);
ALTER TABLE officials_sequence ADD CONSTRAINT officials_sequence_pkey PRIMARY KEY (id);
ALTER TABLE officials_sequence ADD CONSTRAINT officials_sequence_last_selected_official_id_fkey foreign key (last_selected_official_id)
......@@ -34,10 +31,7 @@ CREATE TABLE IF NOT EXISTS official_in_sequence
created_at timestamp,
created_by varchar(255),
modified_at timestamp,
modified_by varchar(255),
modified_id varchar(255),
deleted_at timestamp,
deleted_id varchar(255)
modified_by varchar(255)
);
ALTER TABLE official_in_sequence ADD CONSTRAINT official_in_sequence_pkey PRIMARY KEY (id);
ALTER TABLE official_in_sequence ADD CONSTRAINT official_in_sequence_official_user_id_fkey foreign key (official_user_id)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment