add Job and JobStep resources
[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 => 20130203104824) 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", ["uuid"], :name => "index_api_clients_on_uuid", :unique => true
46
47   create_table "collections", :force => true do |t|
48     t.string   "locator"
49     t.string   "owner"
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"
55     t.string   "name"
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"
61     t.string   "uuid"
62     t.text     "manifest_text"
63   end
64
65   add_index "collections", ["uuid"], :name => "index_collections_on_uuid", :unique => true
66
67   create_table "job_steps", :force => true do |t|
68     t.string   "uuid"
69     t.string   "owner"
70     t.string   "modified_by_client"
71     t.string   "modified_by_user"
72     t.datetime "modified_at"
73     t.string   "job_uuid"
74     t.integer  "sequence"
75     t.text     "parameters"
76     t.text     "output"
77     t.float    "progress"
78     t.boolean  "success"
79     t.datetime "created_at"
80     t.datetime "updated_at"
81   end
82
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
87
88   create_table "jobs", :force => true do |t|
89     t.string   "uuid"
90     t.string   "owner"
91     t.string   "modified_by_client"
92     t.string   "modified_by_user"
93     t.datetime "modified_at"
94     t.string   "submit_id"
95     t.string   "command"
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"
103     t.boolean  "running"
104     t.boolean  "success"
105     t.string   "output"
106     t.datetime "created_at"
107     t.datetime "updated_at"
108   end
109
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
116
117   create_table "links", :force => true do |t|
118     t.string   "uuid"
119     t.string   "owner"
120     t.datetime "created_at"
121     t.string   "modified_by_client"
122     t.string   "modified_by_user"
123     t.datetime "modified_at"
124     t.string   "tail_uuid"
125     t.string   "tail_kind"
126     t.integer  "native_target_id"
127     t.string   "native_target_type"
128     t.string   "link_class"
129     t.string   "name"
130     t.string   "head_uuid"
131     t.text     "properties"
132     t.datetime "updated_at"
133     t.string   "head_kind"
134   end
135
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
141
142   create_table "logs", :force => true do |t|
143     t.string   "uuid"
144     t.string   "owner"
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"
151     t.text     "summary"
152     t.text     "info"
153     t.datetime "created_at"
154     t.datetime "updated_at"
155     t.datetime "modified_at"
156   end
157
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
164
165   create_table "nodes", :force => true do |t|
166     t.string   "uuid"
167     t.string   "owner"
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"
173     t.string   "hostname"
174     t.string   "domain"
175     t.string   "ip_address"
176     t.datetime "first_ping_at"
177     t.datetime "last_ping_at"
178     t.text     "info"
179     t.datetime "updated_at"
180   end
181
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
185
186   create_table "pipeline_invocations", :force => true do |t|
187     t.string   "uuid"
188     t.string   "owner"
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"
194     t.string   "name"
195     t.text     "components"
196     t.boolean  "success"
197     t.boolean  "active",             :default => false
198     t.datetime "updated_at"
199   end
200
201   add_index "pipeline_invocations", ["uuid"], :name => "index_pipeline_invocations_on_uuid", :unique => true
202
203   create_table "pipelines", :force => true do |t|
204     t.string   "uuid"
205     t.string   "owner"
206     t.datetime "created_at"
207     t.string   "modified_by_client"
208     t.string   "modified_by_user"
209     t.datetime "modified_at"
210     t.string   "name"
211     t.text     "components"
212     t.datetime "updated_at"
213   end
214
215   add_index "pipelines", ["uuid"], :name => "index_pipelines_on_uuid", :unique => true
216
217   create_table "projects", :force => true do |t|
218     t.string   "uuid"
219     t.string   "owner"
220     t.datetime "created_at"
221     t.string   "modified_by_client"
222     t.string   "modified_by_user"
223     t.datetime "modified_at"
224     t.string   "name"
225     t.text     "description"
226     t.datetime "updated_at"
227   end
228
229   add_index "projects", ["uuid"], :name => "index_projects_on_uuid", :unique => true
230
231   create_table "specimens", :force => true do |t|
232     t.string   "uuid"
233     t.string   "owner"
234     t.datetime "created_at"
235     t.string   "modified_by_client"
236     t.string   "modified_by_user"
237     t.datetime "modified_at"
238     t.string   "material"
239     t.datetime "updated_at"
240     t.text     "properties"
241   end
242
243   add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
244
245   create_table "users", :force => true do |t|
246     t.string   "uuid"
247     t.string   "owner"
248     t.datetime "created_at"
249     t.string   "modified_by_client"
250     t.string   "modified_by_user"
251     t.datetime "modified_at"
252     t.string   "email"
253     t.string   "first_name"
254     t.string   "last_name"
255     t.string   "identity_url"
256     t.boolean  "is_admin"
257     t.text     "prefs"
258     t.datetime "updated_at"
259   end
260
261   add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true
262
263 end