tweak eager loading
[arvados.git] / db / schema.rb
index 3b9804271c3e81a450140c0ed5fce6ba06a05b51..8507e0cdf29c3001ea2c5055ae5a335f278c8fb6 100644 (file)
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version => 20130123174514) do
+ActiveRecord::Schema.define(:version => 20130128202518) do
+
+  create_table "api_client_authorizations", :force => true do |t|
+    t.string   "api_token",               :null => false
+    t.integer  "api_client_id",           :null => false
+    t.integer  "user_id",                 :null => false
+    t.string   "created_by_ip_address"
+    t.string   "last_used_by_ip_address"
+    t.datetime "last_used_at"
+    t.datetime "expires_at"
+    t.datetime "created_at"
+    t.datetime "updated_at"
+  end
+
+  add_index "api_client_authorizations", ["api_client_id"], :name => "index_api_client_authorizations_on_api_client_id"
+  add_index "api_client_authorizations", ["api_token"], :name => "index_api_client_authorizations_on_api_token", :unique => true
+  add_index "api_client_authorizations", ["expires_at"], :name => "index_api_client_authorizations_on_expires_at"
+  add_index "api_client_authorizations", ["user_id"], :name => "index_api_client_authorizations_on_user_id"
+
+  create_table "api_clients", :force => true do |t|
+    t.string   "uuid"
+    t.string   "owner"
+    t.string   "modified_by_client"
+    t.string   "modified_by_user"
+    t.datetime "modified_at"
+    t.string   "name"
+    t.string   "url_prefix"
+    t.datetime "created_at"
+    t.datetime "updated_at"
+  end
+
+  add_index "api_clients", ["uuid"], :name => "index_api_clients_on_uuid", :unique => true
 
   create_table "collections", :force => true do |t|
     t.string   "locator"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
+    t.string   "owner"
     t.datetime "created_at"
     t.string   "modified_by_client"
     t.string   "modified_by_user"
@@ -33,10 +63,34 @@ ActiveRecord::Schema.define(:version => 20130123174514) do
 
   add_index "collections", ["uuid"], :name => "index_collections_on_uuid", :unique => true
 
+  create_table "links", :force => true do |t|
+    t.string   "uuid"
+    t.string   "owner"
+    t.datetime "created_at"
+    t.string   "modified_by_client"
+    t.string   "modified_by_user"
+    t.datetime "modified_at"
+    t.string   "tail_uuid"
+    t.string   "tail_kind"
+    t.integer  "native_target_id"
+    t.string   "native_target_type"
+    t.string   "link_class"
+    t.string   "name"
+    t.string   "head_uuid"
+    t.text     "properties"
+    t.datetime "updated_at"
+    t.string   "head_kind"
+  end
+
+  add_index "links", ["head_kind"], :name => "index_links_on_head_kind"
+  add_index "links", ["head_uuid"], :name => "index_links_on_head_uuid"
+  add_index "links", ["tail_kind"], :name => "index_links_on_tail_kind"
+  add_index "links", ["tail_uuid"], :name => "index_links_on_tail_uuid"
+  add_index "links", ["uuid"], :name => "index_links_on_uuid", :unique => true
+
   create_table "logs", :force => true do |t|
     t.string   "uuid"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
+    t.string   "owner"
     t.string   "modified_by_client"
     t.string   "modified_by_user"
     t.string   "object_kind"
@@ -57,36 +111,9 @@ ActiveRecord::Schema.define(:version => 20130123174514) do
   add_index "logs", ["summary"], :name => "index_logs_on_summary"
   add_index "logs", ["uuid"], :name => "index_logs_on_uuid", :unique => true
 
-  create_table "metadata", :force => true do |t|
-    t.string   "uuid"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
-    t.datetime "created_at"
-    t.string   "modified_by_client"
-    t.string   "modified_by_user"
-    t.datetime "modified_at"
-    t.string   "tail"
-    t.string   "tail_kind"
-    t.integer  "native_target_id"
-    t.string   "native_target_type"
-    t.string   "metadata_class"
-    t.string   "name"
-    t.string   "head"
-    t.text     "info"
-    t.datetime "updated_at"
-    t.string   "head_kind"
-  end
-
-  add_index "metadata", ["head"], :name => "index_metadata_on_head"
-  add_index "metadata", ["head_kind"], :name => "index_metadata_on_head_kind"
-  add_index "metadata", ["tail"], :name => "index_metadata_on_tail"
-  add_index "metadata", ["tail_kind"], :name => "index_metadata_on_tail_kind"
-  add_index "metadata", ["uuid"], :name => "index_metadata_on_uuid", :unique => true
-
   create_table "nodes", :force => true do |t|
     t.string   "uuid"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
+    t.string   "owner"
     t.datetime "created_at"
     t.string   "modified_by_client"
     t.string   "modified_by_user"
@@ -107,8 +134,7 @@ ActiveRecord::Schema.define(:version => 20130123174514) do
 
   create_table "pipeline_invocations", :force => true do |t|
     t.string   "uuid"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
+    t.string   "owner"
     t.datetime "created_at"
     t.string   "modified_by_client"
     t.string   "modified_by_user"
@@ -125,8 +151,7 @@ ActiveRecord::Schema.define(:version => 20130123174514) do
 
   create_table "pipelines", :force => true do |t|
     t.string   "uuid"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
+    t.string   "owner"
     t.datetime "created_at"
     t.string   "modified_by_client"
     t.string   "modified_by_user"
@@ -140,8 +165,7 @@ ActiveRecord::Schema.define(:version => 20130123174514) do
 
   create_table "projects", :force => true do |t|
     t.string   "uuid"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
+    t.string   "owner"
     t.datetime "created_at"
     t.string   "modified_by_client"
     t.string   "modified_by_user"
@@ -155,8 +179,7 @@ ActiveRecord::Schema.define(:version => 20130123174514) do
 
   create_table "specimens", :force => true do |t|
     t.string   "uuid"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
+    t.string   "owner"
     t.datetime "created_at"
     t.string   "modified_by_client"
     t.string   "modified_by_user"
@@ -169,8 +192,7 @@ ActiveRecord::Schema.define(:version => 20130123174514) do
 
   create_table "users", :force => true do |t|
     t.string   "uuid"
-    t.string   "created_by_client"
-    t.string   "created_by_user"
+    t.string   "owner"
     t.datetime "created_at"
     t.string   "modified_by_client"
     t.string   "modified_by_user"