rename job steps to job tasks. refs #1416
[arvados.git] / db / schema.rb
1 # encoding: UTF-8
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.
5 #
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).
11 #
12 # It's strongly recommended to check this file into your version control system.
13
14 ActiveRecord::Schema.define(:version => 20130319201431) do
15
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"
26   end
27
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"
32
33   create_table "api_clients", :force => true do |t|
34     t.string   "uuid"
35     t.string   "owner"
36     t.string   "modified_by_client"
37     t.string   "modified_by_user"
38     t.datetime "modified_at"
39     t.string   "name"
40     t.string   "url_prefix"
41     t.datetime "created_at"
42     t.datetime "updated_at"
43   end
44
45   add_index "api_clients", ["created_at"], :name => "index_api_clients_on_created_at"
46   add_index "api_clients", ["modified_at"], :name => "index_api_clients_on_modified_at"
47   add_index "api_clients", ["uuid"], :name => "index_api_clients_on_uuid", :unique => true
48
49   create_table "collections", :force => true do |t|
50     t.string   "locator"
51     t.string   "owner"
52     t.datetime "created_at"
53     t.string   "modified_by_client"
54     t.string   "modified_by_user"
55     t.datetime "modified_at"
56     t.string   "portable_data_hash"
57     t.string   "name"
58     t.integer  "redundancy"
59     t.string   "redundancy_confirmed_by_client"
60     t.datetime "redundancy_confirmed_at"
61     t.integer  "redundancy_confirmed_as"
62     t.datetime "updated_at"
63     t.string   "uuid"
64     t.text     "manifest_text"
65   end
66
67   add_index "collections", ["created_at"], :name => "index_collections_on_created_at"
68   add_index "collections", ["modified_at"], :name => "index_collections_on_modified_at"
69   add_index "collections", ["uuid"], :name => "index_collections_on_uuid", :unique => true
70
71   create_table "groups", :force => true do |t|
72     t.string   "uuid"
73     t.string   "owner"
74     t.datetime "created_at"
75     t.string   "modified_by_client"
76     t.string   "modified_by_user"
77     t.datetime "modified_at"
78     t.string   "name"
79     t.text     "description"
80     t.datetime "updated_at"
81   end
82
83   add_index "groups", ["created_at"], :name => "index_groups_on_created_at"
84   add_index "groups", ["modified_at"], :name => "index_groups_on_modified_at"
85   add_index "groups", ["uuid"], :name => "index_groups_on_uuid", :unique => true
86
87   create_table "job_tasks", :force => true do |t|
88     t.string   "uuid"
89     t.string   "owner"
90     t.string   "modified_by_client"
91     t.string   "modified_by_user"
92     t.datetime "modified_at"
93     t.string   "job_uuid"
94     t.integer  "sequence"
95     t.text     "parameters"
96     t.text     "output"
97     t.float    "progress"
98     t.boolean  "success"
99     t.datetime "created_at"
100     t.datetime "updated_at"
101   end
102
103   add_index "job_tasks", ["created_at"], :name => "index_job_tasks_on_created_at"
104   add_index "job_tasks", ["job_uuid"], :name => "index_job_tasks_on_job_uuid"
105   add_index "job_tasks", ["modified_at"], :name => "index_job_tasks_on_modified_at"
106   add_index "job_tasks", ["sequence"], :name => "index_job_tasks_on_sequence"
107   add_index "job_tasks", ["success"], :name => "index_job_tasks_on_success"
108   add_index "job_tasks", ["uuid"], :name => "index_job_tasks_on_uuid", :unique => true
109
110   create_table "jobs", :force => true do |t|
111     t.string   "uuid"
112     t.string   "owner"
113     t.string   "modified_by_client"
114     t.string   "modified_by_user"
115     t.datetime "modified_at"
116     t.string   "submit_id"
117     t.string   "script"
118     t.string   "script_version"
119     t.text     "script_parameters"
120     t.string   "cancelled_by_client"
121     t.string   "cancelled_by_user"
122     t.datetime "cancelled_at"
123     t.datetime "started_at"
124     t.datetime "finished_at"
125     t.boolean  "running"
126     t.boolean  "success"
127     t.string   "output"
128     t.datetime "created_at"
129     t.datetime "updated_at"
130     t.string   "priority"
131     t.string   "is_locked_by"
132     t.string   "log"
133     t.text     "tasks_summary"
134     t.text     "resource_limits"
135   end
136
137   add_index "jobs", ["created_at"], :name => "index_jobs_on_created_at"
138   add_index "jobs", ["finished_at"], :name => "index_jobs_on_finished_at"
139   add_index "jobs", ["modified_at"], :name => "index_jobs_on_modified_at"
140   add_index "jobs", ["output"], :name => "index_jobs_on_output"
141   add_index "jobs", ["script"], :name => "index_jobs_on_script"
142   add_index "jobs", ["started_at"], :name => "index_jobs_on_started_at"
143   add_index "jobs", ["submit_id"], :name => "index_jobs_on_submit_id", :unique => true
144   add_index "jobs", ["uuid"], :name => "index_jobs_on_uuid", :unique => true
145
146   create_table "links", :force => true do |t|
147     t.string   "uuid"
148     t.string   "owner"
149     t.datetime "created_at"
150     t.string   "modified_by_client"
151     t.string   "modified_by_user"
152     t.datetime "modified_at"
153     t.string   "tail_uuid"
154     t.string   "tail_kind"
155     t.string   "link_class"
156     t.string   "name"
157     t.string   "head_uuid"
158     t.text     "properties"
159     t.datetime "updated_at"
160     t.string   "head_kind"
161   end
162
163   add_index "links", ["created_at"], :name => "index_links_on_created_at"
164   add_index "links", ["head_kind"], :name => "index_links_on_head_kind"
165   add_index "links", ["head_uuid"], :name => "index_links_on_head_uuid"
166   add_index "links", ["modified_at"], :name => "index_links_on_modified_at"
167   add_index "links", ["tail_kind"], :name => "index_links_on_tail_kind"
168   add_index "links", ["tail_uuid"], :name => "index_links_on_tail_uuid"
169   add_index "links", ["uuid"], :name => "index_links_on_uuid", :unique => true
170
171   create_table "logs", :force => true do |t|
172     t.string   "uuid"
173     t.string   "owner"
174     t.string   "modified_by_client"
175     t.string   "modified_by_user"
176     t.string   "object_kind"
177     t.string   "object_uuid"
178     t.datetime "event_at"
179     t.string   "event_type"
180     t.text     "summary"
181     t.text     "info"
182     t.datetime "created_at"
183     t.datetime "updated_at"
184     t.datetime "modified_at"
185   end
186
187   add_index "logs", ["created_at"], :name => "index_logs_on_created_at"
188   add_index "logs", ["event_at"], :name => "index_logs_on_event_at"
189   add_index "logs", ["event_type"], :name => "index_logs_on_event_type"
190   add_index "logs", ["modified_at"], :name => "index_logs_on_modified_at"
191   add_index "logs", ["object_kind"], :name => "index_logs_on_object_kind"
192   add_index "logs", ["object_uuid"], :name => "index_logs_on_object_uuid"
193   add_index "logs", ["summary"], :name => "index_logs_on_summary"
194   add_index "logs", ["uuid"], :name => "index_logs_on_uuid", :unique => true
195
196   create_table "nodes", :force => true do |t|
197     t.string   "uuid"
198     t.string   "owner"
199     t.datetime "created_at"
200     t.string   "modified_by_client"
201     t.string   "modified_by_user"
202     t.datetime "modified_at"
203     t.integer  "slot_number"
204     t.string   "hostname"
205     t.string   "domain"
206     t.string   "ip_address"
207     t.datetime "first_ping_at"
208     t.datetime "last_ping_at"
209     t.text     "info"
210     t.datetime "updated_at"
211   end
212
213   add_index "nodes", ["created_at"], :name => "index_nodes_on_created_at"
214   add_index "nodes", ["hostname"], :name => "index_nodes_on_hostname", :unique => true
215   add_index "nodes", ["modified_at"], :name => "index_nodes_on_modified_at"
216   add_index "nodes", ["slot_number"], :name => "index_nodes_on_slot_number", :unique => true
217   add_index "nodes", ["uuid"], :name => "index_nodes_on_uuid", :unique => true
218
219   create_table "pipeline_instances", :force => true do |t|
220     t.string   "uuid"
221     t.string   "owner"
222     t.datetime "created_at"
223     t.string   "modified_by_client"
224     t.string   "modified_by_user"
225     t.datetime "modified_at"
226     t.string   "pipeline_template_uuid"
227     t.string   "name"
228     t.text     "components"
229     t.boolean  "success"
230     t.boolean  "active",                 :default => false
231     t.datetime "updated_at"
232     t.text     "properties"
233   end
234
235   add_index "pipeline_instances", ["created_at"], :name => "index_pipeline_instances_on_created_at"
236   add_index "pipeline_instances", ["modified_at"], :name => "index_pipeline_instances_on_modified_at"
237   add_index "pipeline_instances", ["uuid"], :name => "index_pipeline_instances_on_uuid", :unique => true
238
239   create_table "pipeline_templates", :force => true do |t|
240     t.string   "uuid"
241     t.string   "owner"
242     t.datetime "created_at"
243     t.string   "modified_by_client"
244     t.string   "modified_by_user"
245     t.datetime "modified_at"
246     t.string   "name"
247     t.text     "components"
248     t.datetime "updated_at"
249   end
250
251   add_index "pipeline_templates", ["created_at"], :name => "index_pipeline_templates_on_created_at"
252   add_index "pipeline_templates", ["modified_at"], :name => "index_pipeline_templates_on_modified_at"
253   add_index "pipeline_templates", ["uuid"], :name => "index_pipeline_templates_on_uuid", :unique => true
254
255   create_table "specimens", :force => true do |t|
256     t.string   "uuid"
257     t.string   "owner"
258     t.datetime "created_at"
259     t.string   "modified_by_client"
260     t.string   "modified_by_user"
261     t.datetime "modified_at"
262     t.string   "material"
263     t.datetime "updated_at"
264     t.text     "properties"
265   end
266
267   add_index "specimens", ["created_at"], :name => "index_specimens_on_created_at"
268   add_index "specimens", ["modified_at"], :name => "index_specimens_on_modified_at"
269   add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
270
271   create_table "users", :force => true do |t|
272     t.string   "uuid"
273     t.string   "owner"
274     t.datetime "created_at"
275     t.string   "modified_by_client"
276     t.string   "modified_by_user"
277     t.datetime "modified_at"
278     t.string   "email"
279     t.string   "first_name"
280     t.string   "last_name"
281     t.string   "identity_url"
282     t.boolean  "is_admin"
283     t.text     "prefs"
284     t.datetime "updated_at"
285   end
286
287   add_index "users", ["created_at"], :name => "index_users_on_created_at"
288   add_index "users", ["modified_at"], :name => "index_users_on_modified_at"
289   add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true
290
291 end