X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c8ccaf78e59c5305fe2e01ebe88e6b7ac9b00375..53b609a8946c1cd2b38162e530ae323f3264838c:/db/schema.rb diff --git a/db/schema.rb b/db/schema.rb index cece25ae32..331ae2767d 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,39 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20130116215213) do +ActiveRecord::Schema.define(:version => 20130123180228) 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 "created_by_client" + t.string "created_by_user" + 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" @@ -33,6 +65,30 @@ ActiveRecord::Schema.define(:version => 20130116215213) do add_index "collections", ["uuid"], :name => "index_collections_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 "modified_by_client" + t.string "modified_by_user" + t.string "object_kind" + t.string "object_uuid" + t.datetime "event_at" + t.string "event_type" + t.text "summary" + t.text "info" + t.datetime "created_at" + t.datetime "updated_at" + t.datetime "modified_at" + end + + add_index "logs", ["event_at"], :name => "index_logs_on_event_at" + add_index "logs", ["event_type"], :name => "index_logs_on_event_type" + add_index "logs", ["object_kind"], :name => "index_logs_on_object_kind" + add_index "logs", ["object_uuid"], :name => "index_logs_on_object_uuid" + 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" @@ -41,17 +97,22 @@ ActiveRecord::Schema.define(:version => 20130116215213) do t.string "modified_by_client" t.string "modified_by_user" t.datetime "modified_at" - t.string "target_uuid" - t.string "target_kind" + t.string "tail" + t.string "tail_kind" t.integer "native_target_id" t.string "native_target_type" t.string "metadata_class" - t.string "key" - t.string "value" + 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| @@ -138,4 +199,23 @@ ActiveRecord::Schema.define(:version => 20130116215213) do add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true + create_table "users", :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 "email" + t.string "first_name" + t.string "last_name" + t.string "identity_url" + t.boolean "is_admin" + t.text "prefs" + t.datetime "updated_at" + end + + add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true + end