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