sort lists on modified_at by default
[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 => 20130207195855) 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 "job_steps", :force => true do |t|
72     t.string   "uuid"
73     t.string   "owner"
74     t.string   "modified_by_client"
75     t.string   "modified_by_user"
76     t.datetime "modified_at"
77     t.string   "job_uuid"
78     t.integer  "sequence"
79     t.text     "parameters"
80     t.text     "output"
81     t.float    "progress"
82     t.boolean  "success"
83     t.datetime "created_at"
84     t.datetime "updated_at"
85   end
86
87   add_index "job_steps", ["created_at"], :name => "index_job_steps_on_created_at"
88   add_index "job_steps", ["job_uuid"], :name => "index_job_steps_on_job_uuid"
89   add_index "job_steps", ["modified_at"], :name => "index_job_steps_on_modified_at"
90   add_index "job_steps", ["sequence"], :name => "index_job_steps_on_sequence"
91   add_index "job_steps", ["success"], :name => "index_job_steps_on_success"
92   add_index "job_steps", ["uuid"], :name => "index_job_steps_on_uuid", :unique => true
93
94   create_table "jobs", :force => true do |t|
95     t.string   "uuid"
96     t.string   "owner"
97     t.string   "modified_by_client"
98     t.string   "modified_by_user"
99     t.datetime "modified_at"
100     t.string   "submit_id"
101     t.string   "command"
102     t.string   "command_version"
103     t.text     "command_parameters"
104     t.string   "cancelled_by_client"
105     t.string   "cancelled_by_user"
106     t.datetime "cancelled_at"
107     t.datetime "started_at"
108     t.datetime "finished_at"
109     t.boolean  "running"
110     t.boolean  "success"
111     t.string   "output"
112     t.datetime "created_at"
113     t.datetime "updated_at"
114     t.string   "priority"
115   end
116
117   add_index "jobs", ["command"], :name => "index_jobs_on_command"
118   add_index "jobs", ["created_at"], :name => "index_jobs_on_created_at"
119   add_index "jobs", ["finished_at"], :name => "index_jobs_on_finished_at"
120   add_index "jobs", ["modified_at"], :name => "index_jobs_on_modified_at"
121   add_index "jobs", ["output"], :name => "index_jobs_on_output"
122   add_index "jobs", ["started_at"], :name => "index_jobs_on_started_at"
123   add_index "jobs", ["submit_id"], :name => "index_jobs_on_submit_id", :unique => true
124   add_index "jobs", ["uuid"], :name => "index_jobs_on_uuid", :unique => true
125
126   create_table "links", :force => true do |t|
127     t.string   "uuid"
128     t.string   "owner"
129     t.datetime "created_at"
130     t.string   "modified_by_client"
131     t.string   "modified_by_user"
132     t.datetime "modified_at"
133     t.string   "tail_uuid"
134     t.string   "tail_kind"
135     t.integer  "native_target_id"
136     t.string   "native_target_type"
137     t.string   "link_class"
138     t.string   "name"
139     t.string   "head_uuid"
140     t.text     "properties"
141     t.datetime "updated_at"
142     t.string   "head_kind"
143   end
144
145   add_index "links", ["created_at"], :name => "index_links_on_created_at"
146   add_index "links", ["head_kind"], :name => "index_links_on_head_kind"
147   add_index "links", ["head_uuid"], :name => "index_links_on_head_uuid"
148   add_index "links", ["modified_at"], :name => "index_links_on_modified_at"
149   add_index "links", ["tail_kind"], :name => "index_links_on_tail_kind"
150   add_index "links", ["tail_uuid"], :name => "index_links_on_tail_uuid"
151   add_index "links", ["uuid"], :name => "index_links_on_uuid", :unique => true
152
153   create_table "logs", :force => true do |t|
154     t.string   "uuid"
155     t.string   "owner"
156     t.string   "modified_by_client"
157     t.string   "modified_by_user"
158     t.string   "object_kind"
159     t.string   "object_uuid"
160     t.datetime "event_at"
161     t.string   "event_type"
162     t.text     "summary"
163     t.text     "info"
164     t.datetime "created_at"
165     t.datetime "updated_at"
166     t.datetime "modified_at"
167   end
168
169   add_index "logs", ["created_at"], :name => "index_logs_on_created_at"
170   add_index "logs", ["event_at"], :name => "index_logs_on_event_at"
171   add_index "logs", ["event_type"], :name => "index_logs_on_event_type"
172   add_index "logs", ["modified_at"], :name => "index_logs_on_modified_at"
173   add_index "logs", ["object_kind"], :name => "index_logs_on_object_kind"
174   add_index "logs", ["object_uuid"], :name => "index_logs_on_object_uuid"
175   add_index "logs", ["summary"], :name => "index_logs_on_summary"
176   add_index "logs", ["uuid"], :name => "index_logs_on_uuid", :unique => true
177
178   create_table "nodes", :force => true do |t|
179     t.string   "uuid"
180     t.string   "owner"
181     t.datetime "created_at"
182     t.string   "modified_by_client"
183     t.string   "modified_by_user"
184     t.datetime "modified_at"
185     t.integer  "slot_number"
186     t.string   "hostname"
187     t.string   "domain"
188     t.string   "ip_address"
189     t.datetime "first_ping_at"
190     t.datetime "last_ping_at"
191     t.text     "info"
192     t.datetime "updated_at"
193   end
194
195   add_index "nodes", ["created_at"], :name => "index_nodes_on_created_at"
196   add_index "nodes", ["hostname"], :name => "index_nodes_on_hostname", :unique => true
197   add_index "nodes", ["modified_at"], :name => "index_nodes_on_modified_at"
198   add_index "nodes", ["slot_number"], :name => "index_nodes_on_slot_number", :unique => true
199   add_index "nodes", ["uuid"], :name => "index_nodes_on_uuid", :unique => true
200
201   create_table "pipeline_invocations", :force => true do |t|
202     t.string   "uuid"
203     t.string   "owner"
204     t.datetime "created_at"
205     t.string   "modified_by_client"
206     t.string   "modified_by_user"
207     t.datetime "modified_at"
208     t.string   "pipeline_uuid"
209     t.string   "name"
210     t.text     "components"
211     t.boolean  "success"
212     t.boolean  "active",             :default => false
213     t.datetime "updated_at"
214   end
215
216   add_index "pipeline_invocations", ["created_at"], :name => "index_pipeline_invocations_on_created_at"
217   add_index "pipeline_invocations", ["modified_at"], :name => "index_pipeline_invocations_on_modified_at"
218   add_index "pipeline_invocations", ["uuid"], :name => "index_pipeline_invocations_on_uuid", :unique => true
219
220   create_table "pipelines", :force => true do |t|
221     t.string   "uuid"
222     t.string   "owner"
223     t.datetime "created_at"
224     t.string   "modified_by_client"
225     t.string   "modified_by_user"
226     t.datetime "modified_at"
227     t.string   "name"
228     t.text     "components"
229     t.datetime "updated_at"
230   end
231
232   add_index "pipelines", ["created_at"], :name => "index_pipelines_on_created_at"
233   add_index "pipelines", ["modified_at"], :name => "index_pipelines_on_modified_at"
234   add_index "pipelines", ["uuid"], :name => "index_pipelines_on_uuid", :unique => true
235
236   create_table "projects", :force => true do |t|
237     t.string   "uuid"
238     t.string   "owner"
239     t.datetime "created_at"
240     t.string   "modified_by_client"
241     t.string   "modified_by_user"
242     t.datetime "modified_at"
243     t.string   "name"
244     t.text     "description"
245     t.datetime "updated_at"
246   end
247
248   add_index "projects", ["created_at"], :name => "index_projects_on_created_at"
249   add_index "projects", ["modified_at"], :name => "index_projects_on_modified_at"
250   add_index "projects", ["uuid"], :name => "index_projects_on_uuid", :unique => true
251
252   create_table "specimens", :force => true do |t|
253     t.string   "uuid"
254     t.string   "owner"
255     t.datetime "created_at"
256     t.string   "modified_by_client"
257     t.string   "modified_by_user"
258     t.datetime "modified_at"
259     t.string   "material"
260     t.datetime "updated_at"
261     t.text     "properties"
262   end
263
264   add_index "specimens", ["created_at"], :name => "index_specimens_on_created_at"
265   add_index "specimens", ["modified_at"], :name => "index_specimens_on_modified_at"
266   add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
267
268   create_table "users", :force => true do |t|
269     t.string   "uuid"
270     t.string   "owner"
271     t.datetime "created_at"
272     t.string   "modified_by_client"
273     t.string   "modified_by_user"
274     t.datetime "modified_at"
275     t.string   "email"
276     t.string   "first_name"
277     t.string   "last_name"
278     t.string   "identity_url"
279     t.boolean  "is_admin"
280     t.text     "prefs"
281     t.datetime "updated_at"
282   end
283
284   add_index "users", ["created_at"], :name => "index_users_on_created_at"
285   add_index "users", ["modified_at"], :name => "index_users_on_modified_at"
286   add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true
287
288 end