X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e4382e25d68a70a107baeb257e1915972759334c..1a4282c6d30b209a882c255e0d5777851ff6f034:/services/api/db/structure.sql diff --git a/services/api/db/structure.sql b/services/api/db/structure.sql index 2d0c76f09d..0a2dc8d48e 100644 --- a/services/api/db/structure.sql +++ b/services/api/db/structure.sql @@ -153,7 +153,6 @@ ALTER SEQUENCE authorized_keys_id_seq OWNED BY authorized_keys.id; CREATE TABLE collections ( id integer NOT NULL, - locator character varying(255), owner_uuid character varying(255), created_at timestamp without time zone NOT NULL, modified_by_client_uuid character varying(255), @@ -166,7 +165,11 @@ CREATE TABLE collections ( redundancy_confirmed_as integer, updated_at timestamp without time zone NOT NULL, uuid character varying(255), - manifest_text text + manifest_text text, + name character varying(255), + description character varying(255), + properties text, + expires_at date ); @@ -268,7 +271,7 @@ CREATE TABLE groups ( modified_by_client_uuid character varying(255), modified_by_user_uuid character varying(255), modified_at timestamp without time zone, - name character varying(255), + name character varying(255) NOT NULL, description text, updated_at timestamp without time zone NOT NULL, group_class character varying(255) @@ -350,7 +353,9 @@ CREATE TABLE job_tasks ( created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, created_by_job_task_uuid character varying(255), - qsequence bigint + qsequence bigint, + started_at timestamp without time zone, + finished_at timestamp without time zone ); @@ -417,16 +422,18 @@ CREATE TABLE jobs ( output character varying(255), created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, - priority character varying(255), is_locked_by_uuid character varying(255), log character varying(255), tasks_summary text, runtime_constraints text, nondeterministic boolean, repository character varying(255), - output_is_persistent boolean DEFAULT false NOT NULL, supplied_script_version character varying(255), - docker_image_locator character varying(255) + docker_image_locator character varying(255), + priority integer DEFAULT 0 NOT NULL, + description text, + state character varying(255), + arvados_sdk_version character varying(255) ); @@ -634,7 +641,9 @@ CREATE TABLE nodes ( first_ping_at timestamp without time zone, last_ping_at timestamp without time zone, info text, - updated_at timestamp without time zone NOT NULL + updated_at timestamp without time zone NOT NULL, + properties text, + job_uuid character varying(255) ); @@ -674,8 +683,11 @@ CREATE TABLE pipeline_instances ( components text, updated_at timestamp without time zone NOT NULL, properties text, + components_summary text, state character varying(255), - components_summary text + started_at timestamp without time zone, + finished_at timestamp without time zone, + description text ); @@ -864,7 +876,7 @@ ALTER SEQUENCE traits_id_seq OWNED BY traits.id; CREATE TABLE users ( id integer NOT NULL, uuid character varying(255), - owner_uuid character varying(255), + owner_uuid character varying(255) NOT NULL, created_at timestamp without time zone NOT NULL, modified_by_client_uuid character varying(255), modified_by_user_uuid character varying(255), @@ -1266,6 +1278,20 @@ ALTER TABLE ONLY virtual_machines ADD CONSTRAINT virtual_machines_pkey PRIMARY KEY (id); +-- +-- Name: collection_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE UNIQUE INDEX collection_owner_uuid_name_unique ON collections USING btree (owner_uuid, name); + + +-- +-- Name: groups_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE UNIQUE INDEX groups_owner_uuid_name_unique ON groups USING btree (owner_uuid, name); + + -- -- Name: index_api_client_authorizations_on_api_client_id; Type: INDEX; Schema: public; Owner: -; Tablespace: -- @@ -1784,6 +1810,13 @@ CREATE UNIQUE INDEX index_virtual_machines_on_uuid ON virtual_machines USING btr CREATE UNIQUE INDEX links_tail_name_unique_if_link_class_name ON links USING btree (tail_uuid, name) WHERE ((link_class)::text = 'name'::text); +-- +-- Name: pipeline_template_owner_uuid_name_unique; Type: INDEX; Schema: public; Owner: -; Tablespace: +-- + +CREATE UNIQUE INDEX pipeline_template_owner_uuid_name_unique ON pipeline_templates USING btree (owner_uuid, name); + + -- -- Name: unique_schema_migrations; Type: INDEX; Schema: public; Owner: -; Tablespace: -- @@ -1975,4 +2008,28 @@ INSERT INTO schema_migrations (version) VALUES ('20140627210837'); INSERT INTO schema_migrations (version) VALUES ('20140709172343'); -INSERT INTO schema_migrations (version) VALUES ('20140714184006'); \ No newline at end of file +INSERT INTO schema_migrations (version) VALUES ('20140714184006'); + +INSERT INTO schema_migrations (version) VALUES ('20140811184643'); + +INSERT INTO schema_migrations (version) VALUES ('20140817035914'); + +INSERT INTO schema_migrations (version) VALUES ('20140818125735'); + +INSERT INTO schema_migrations (version) VALUES ('20140826180337'); + +INSERT INTO schema_migrations (version) VALUES ('20140828141043'); + +INSERT INTO schema_migrations (version) VALUES ('20140909183946'); + +INSERT INTO schema_migrations (version) VALUES ('20140911221252'); + +INSERT INTO schema_migrations (version) VALUES ('20140918141529'); + +INSERT INTO schema_migrations (version) VALUES ('20140918153541'); + +INSERT INTO schema_migrations (version) VALUES ('20140918153705'); + +INSERT INTO schema_migrations (version) VALUES ('20140924091559'); + +INSERT INTO schema_migrations (version) VALUES ('20141111133038'); \ No newline at end of file