3b9804271c3e81a450140c0ed5fce6ba06a05b51
[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 => 20130123174514) do
15
16   create_table "collections", :force => true do |t|
17     t.string   "locator"
18     t.string   "created_by_client"
19     t.string   "created_by_user"
20     t.datetime "created_at"
21     t.string   "modified_by_client"
22     t.string   "modified_by_user"
23     t.datetime "modified_at"
24     t.string   "portable_data_hash"
25     t.string   "name"
26     t.integer  "redundancy"
27     t.string   "redundancy_confirmed_by_client"
28     t.datetime "redundancy_confirmed_at"
29     t.integer  "redundancy_confirmed_as"
30     t.datetime "updated_at"
31     t.string   "uuid"
32   end
33
34   add_index "collections", ["uuid"], :name => "index_collections_on_uuid", :unique => true
35
36   create_table "logs", :force => true do |t|
37     t.string   "uuid"
38     t.string   "created_by_client"
39     t.string   "created_by_user"
40     t.string   "modified_by_client"
41     t.string   "modified_by_user"
42     t.string   "object_kind"
43     t.string   "object_uuid"
44     t.datetime "event_at"
45     t.string   "event_type"
46     t.text     "summary"
47     t.text     "info"
48     t.datetime "created_at"
49     t.datetime "updated_at"
50     t.datetime "modified_at"
51   end
52
53   add_index "logs", ["event_at"], :name => "index_logs_on_event_at"
54   add_index "logs", ["event_type"], :name => "index_logs_on_event_type"
55   add_index "logs", ["object_kind"], :name => "index_logs_on_object_kind"
56   add_index "logs", ["object_uuid"], :name => "index_logs_on_object_uuid"
57   add_index "logs", ["summary"], :name => "index_logs_on_summary"
58   add_index "logs", ["uuid"], :name => "index_logs_on_uuid", :unique => true
59
60   create_table "metadata", :force => true do |t|
61     t.string   "uuid"
62     t.string   "created_by_client"
63     t.string   "created_by_user"
64     t.datetime "created_at"
65     t.string   "modified_by_client"
66     t.string   "modified_by_user"
67     t.datetime "modified_at"
68     t.string   "tail"
69     t.string   "tail_kind"
70     t.integer  "native_target_id"
71     t.string   "native_target_type"
72     t.string   "metadata_class"
73     t.string   "name"
74     t.string   "head"
75     t.text     "info"
76     t.datetime "updated_at"
77     t.string   "head_kind"
78   end
79
80   add_index "metadata", ["head"], :name => "index_metadata_on_head"
81   add_index "metadata", ["head_kind"], :name => "index_metadata_on_head_kind"
82   add_index "metadata", ["tail"], :name => "index_metadata_on_tail"
83   add_index "metadata", ["tail_kind"], :name => "index_metadata_on_tail_kind"
84   add_index "metadata", ["uuid"], :name => "index_metadata_on_uuid", :unique => true
85
86   create_table "nodes", :force => true do |t|
87     t.string   "uuid"
88     t.string   "created_by_client"
89     t.string   "created_by_user"
90     t.datetime "created_at"
91     t.string   "modified_by_client"
92     t.string   "modified_by_user"
93     t.datetime "modified_at"
94     t.integer  "slot_number"
95     t.string   "hostname"
96     t.string   "domain"
97     t.string   "ip_address"
98     t.datetime "first_ping_at"
99     t.datetime "last_ping_at"
100     t.text     "info"
101     t.datetime "updated_at"
102   end
103
104   add_index "nodes", ["hostname"], :name => "index_nodes_on_hostname", :unique => true
105   add_index "nodes", ["slot_number"], :name => "index_nodes_on_slot_number", :unique => true
106   add_index "nodes", ["uuid"], :name => "index_nodes_on_uuid", :unique => true
107
108   create_table "pipeline_invocations", :force => true do |t|
109     t.string   "uuid"
110     t.string   "created_by_client"
111     t.string   "created_by_user"
112     t.datetime "created_at"
113     t.string   "modified_by_client"
114     t.string   "modified_by_user"
115     t.datetime "modified_at"
116     t.string   "pipeline_uuid"
117     t.string   "name"
118     t.text     "components"
119     t.boolean  "success"
120     t.boolean  "active",             :default => false
121     t.datetime "updated_at"
122   end
123
124   add_index "pipeline_invocations", ["uuid"], :name => "index_pipeline_invocations_on_uuid", :unique => true
125
126   create_table "pipelines", :force => true do |t|
127     t.string   "uuid"
128     t.string   "created_by_client"
129     t.string   "created_by_user"
130     t.datetime "created_at"
131     t.string   "modified_by_client"
132     t.string   "modified_by_user"
133     t.datetime "modified_at"
134     t.string   "name"
135     t.text     "components"
136     t.datetime "updated_at"
137   end
138
139   add_index "pipelines", ["uuid"], :name => "index_pipelines_on_uuid", :unique => true
140
141   create_table "projects", :force => true do |t|
142     t.string   "uuid"
143     t.string   "created_by_client"
144     t.string   "created_by_user"
145     t.datetime "created_at"
146     t.string   "modified_by_client"
147     t.string   "modified_by_user"
148     t.datetime "modified_at"
149     t.string   "name"
150     t.text     "description"
151     t.datetime "updated_at"
152   end
153
154   add_index "projects", ["uuid"], :name => "index_projects_on_uuid", :unique => true
155
156   create_table "specimens", :force => true do |t|
157     t.string   "uuid"
158     t.string   "created_by_client"
159     t.string   "created_by_user"
160     t.datetime "created_at"
161     t.string   "modified_by_client"
162     t.string   "modified_by_user"
163     t.datetime "modified_at"
164     t.string   "material"
165     t.datetime "updated_at"
166   end
167
168   add_index "specimens", ["uuid"], :name => "index_specimens_on_uuid", :unique => true
169
170   create_table "users", :force => true do |t|
171     t.string   "uuid"
172     t.string   "created_by_client"
173     t.string   "created_by_user"
174     t.datetime "created_at"
175     t.string   "modified_by_client"
176     t.string   "modified_by_user"
177     t.datetime "modified_at"
178     t.string   "email"
179     t.string   "first_name"
180     t.string   "last_name"
181     t.string   "identity_url"
182     t.boolean  "is_admin"
183     t.text     "prefs"
184     t.datetime "updated_at"
185   end
186
187   add_index "users", ["uuid"], :name => "index_users_on_uuid", :unique => true
188
189 end