2 # This file is auto-generated from the current state of the database. Instead
3 # of editing this file, please use the migrations feature of Active Record to
4 # incrementally modify your database, and then regenerate this schema definition.
6 # Note that this schema.rb definition is the authoritative source for your
7 # database schema. If you need to create the application database on another
8 # system, you should be using db:schema:load, not running all the migrations
9 # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10 # you'll amass, the slower it'll run and the greater likelihood for issues).
12 # It's strongly recommended to check this file into your version control system.
14 ActiveRecord::Schema.define(:version => 20130203104824) do
16 create_table "api_client_authorizations", :force => true do |t|
17 t.string "api_token", :null => false
18 t.integer "api_client_id", :null => false
19 t.integer "user_id", :null => false
20 t.string "created_by_ip_address"
21 t.string "last_used_by_ip_address"
22 t.datetime "last_used_at"
23 t.datetime "expires_at"
24 t.datetime "created_at"
25 t.datetime "updated_at"
28 add_index "api_client_authorizations", ["api_client_id"], :name => "index_api_client_authorizations_on_api_client_id"
29 add_index "api_client_authorizations", ["api_token"], :name => "index_api_client_authorizations_on_api_token", :unique => true
30 add_index "api_client_authorizations", ["expires_at"], :name => "index_api_client_authorizations_on_expires_at"
31 add_index "api_client_authorizations", ["user_id"], :name => "index_api_client_authorizations_on_user_id"
33 create_table "api_clients", :force => true do |t|
36 t.string "modified_by_client"
37 t.string "modified_by_user"
38 t.datetime "modified_at"
41 t.datetime "created_at"
42 t.datetime "updated_at"
45 add_index "api_clients", ["uuid"], :name => "index_api_clients_on_uuid", :unique => true
47 create_table "collections", :force => true do |t|
50 t.datetime "created_at"
51 t.string "modified_by_client"
52 t.string "modified_by_user"
53 t.datetime "modified_at"
54 t.string "portable_data_hash"
56 t.integer "redundancy"
57 t.string "redundancy_confirmed_by_client"
58 t.datetime "redundancy_confirmed_at"
59 t.integer "redundancy_confirmed_as"
60 t.datetime "updated_at"
62 t.text "manifest_text"
65 add_index "collections", ["uuid"], :name => "index_collections_on_uuid", :unique => true
67 create_table "job_steps", :force => true do |t|
70 t.string "modified_by_client"
71 t.string "modified_by_user"
72 t.datetime "modified_at"
79 t.datetime "created_at"
80 t.datetime "updated_at"
83 add_index "job_steps", ["job_uuid"], :name => "index_job_steps_on_job_uuid"
84 add_index "job_steps", ["sequence"], :name => "index_job_steps_on_sequence"
85 add_index "job_steps", ["success"], :name => "index_job_steps_on_success"
86 add_index "job_steps", ["uuid"], :name => "index_job_steps_on_uuid", :unique => true
88 create_table "jobs", :force => true do |t|
91 t.string "modified_by_client"
92 t.string "modified_by_user"
93 t.datetime "modified_at"
96 t.string "command_version"
97 t.text "command_parameters"
98 t.string "cancelled_by_client"
99 t.string "cancelled_by_user"
100 t.datetime "cancelled_at"
101 t.datetime "started_at"
102 t.datetime "finished_at"
106 t.datetime "created_at"
107 t.datetime "updated_at"
110 add_index "jobs", ["command"], :name => "index_jobs_on_command"
111 add_index "jobs", ["finished_at"], :name => "index_jobs_on_finished_at"
112 add_index "jobs", ["output"], :name => "index_jobs_on_output"
113 add_index "jobs", ["started_at"], :name => "index_jobs_on_started_at"
114 add_index "jobs", ["submit_id"], :name => "index_jobs_on_submit_id", :unique => true
115 add_index "jobs", ["uuid"], :name => "index_jobs_on_uuid", :unique => true
117 create_table "links", :force => true do |t|
120 t.datetime "created_at"
121 t.string "modified_by_client"
122 t.string "modified_by_user"
123 t.datetime "modified_at"
126 t.integer "native_target_id"
127 t.string "native_target_type"
128 t.string "link_class"
132 t.datetime "updated_at"
136 add_index "links", ["head_kind"], :name => "index_links_on_head_kind"
137 add_index "links", ["head_uuid"], :name => "index_links_on_head_uuid"
138 add_index "links", ["tail_kind"], :name => "index_links_on_tail_kind"
139 add_index "links", ["tail_uuid"], :name => "index_links_on_tail_uuid"
140 add_index "links", ["uuid"], :name => "index_links_on_uuid", :unique => true
142 create_table "logs", :force => true do |t|
145 t.string "modified_by_client"
146 t.string "modified_by_user"
147 t.string "object_kind"
148 t.string "object_uuid"
149 t.datetime "event_at"
150 t.string "event_type"
153 t.datetime "created_at"
154 t.datetime "updated_at"
155 t.datetime "modified_at"
158 add_index "logs", ["event_at"], :name => "index_logs_on_event_at"
159 add_index "logs", ["event_type"], :name => "index_logs_on_event_type"
160 add_index "logs", ["object_kind"], :name => "index_logs_on_object_kind"
161 add_index "logs", ["object_uuid"], :name => "index_logs_on_object_uuid"
162 add_index "logs", ["summary"], :name => "index_logs_on_summary"
163 add_index "logs", ["uuid"], :name => "index_logs_on_uuid", :unique => true
165 create_table "nodes", :force => true do |t|
168 t.datetime "created_at"
169 t.string "modified_by_client"
170 t.string "modified_by_user"
171 t.datetime "modified_at"
172 t.integer "slot_number"
175 t.string "ip_address"
176 t.datetime "first_ping_at"
177 t.datetime "last_ping_at"
179 t.datetime "updated_at"
182 add_index "nodes", ["hostname"], :name => "index_nodes_on_hostname", :unique => true
183 add_index "nodes", ["slot_number"], :name => "index_nodes_on_slot_number", :unique => true
184 add_index "nodes", ["uuid"], :name => "index_nodes_on_uuid", :unique => true
186 create_table "pipeline_invocations", :force => true do |t|
189 t.datetime "created_at"
190 t.string "modified_by_client"
191 t.string "modified_by_user"
192 t.datetime "modified_at"
193 t.string "pipeline_uuid"
197 t.boolean "active", :default => false
198 t.datetime "updated_at"
201 add_index "pipeline_invocations", ["uuid"], :name => "index_pipeline_invocations_on_uuid", :unique => true
203 create_table "pipelines", :force => true do |t|
206 t.datetime "created_at"
207 t.string "modified_by_client"
208 t.string "modified_by_user"
209 t.datetime "modified_at"
212 t.datetime "updated_at"
215 add_index "pipelines", ["uuid"], :name => "index_pipelines_on_uuid", :unique => true
217 create_table "projects", :force => true do |t|
220 t.datetime "created_at"
221 t.string "modified_by_client"
222 t.string "modified_by_user"
223 t.datetime "modified_at"
226 t.datetime "updated_at"
229 add_index "projects", ["uuid"], :name => "index_projects_on_uuid", :unique => true
231 create_table "specimens", :force => true do |t|
234 t.datetime "created_at"
235 t.string "modified_by_client"
236 t.string "modified_by_user"
237 t.datetime "modified_at"
239 t.datetime "updated_at"
243 add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
245 create_table "users", :force => true do |t|
248 t.datetime "created_at"
249 t.string "modified_by_client"
250 t.string "modified_by_user"
251 t.datetime "modified_at"
253 t.string "first_name"
255 t.string "identity_url"
258 t.datetime "updated_at"
261 add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true