erp_app 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/lib/erp_app/extensions/railties/action_view/helpers/extjs_helper.rb +12 -17
  2. data/lib/erp_app/extensions/railties/action_view/helpers/include_helper.rb +3 -0
  3. data/lib/erp_app/extensions/railties/action_view/helpers/tag_helper.rb +15 -10
  4. data/lib/erp_app/version.rb +1 -1
  5. data/public/images/checked.gif +0 -0
  6. data/public/images/erp_app/desktop/themes.png +0 -0
  7. data/public/images/unchecked.gif +0 -0
  8. data/public/javascripts/erp_app/ckeditor/plugins/codemirror/plugin.js +1 -1
  9. data/public/javascripts/erp_app/ckeditor/plugins/knitkitthemes/plugin.js +119 -0
  10. data/public/javascripts/erp_app/ckeditor_example_config_override.js +1 -1
  11. data/public/javascripts/erp_app/desktop/applications/security_management/module.js +16 -18
  12. data/public/javascripts/erp_app/shared/compass_codemirror.js +1 -1
  13. data/public/javascripts/erp_app/utility.js +49 -49
  14. data/public/javascripts/{erp_app/shared → extjs}/Ext.ux.CheckColumn.js +0 -0
  15. data/public/stylesheets/erp_app/desktop/base.css +1 -1
  16. metadata +7 -68
  17. data/public/stylesheets/sencha_touch/resources/themes/vendor/compass-recipes/compass-recipes-0.3.0.alpha.1.gem +0 -0
  18. data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
  19. data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
  20. data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
  21. data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +0 -252
  22. data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +0 -53
  23. data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
  24. data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +0 -21
  25. data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +0 -32
  26. data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
  27. data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +0 -23
  28. data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +0 -42
  29. data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
  30. data/spec/dummy/db/data_migrations/20120109173616_create_download_capability_type.erp_tech_svcs.rb +0 -14
  31. data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +0 -29
  32. data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +0 -11
  33. data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +0 -19
  34. data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +0 -23
  35. data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
  36. data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +0 -16
  37. data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
  38. data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +0 -23
  39. data/spec/dummy/db/migrate/20130107214535_base_erp_services.erp_base_erp_svcs.rb +0 -461
  40. data/spec/dummy/db/migrate/20130107214536_base_tech_services.erp_tech_svcs.rb +0 -271
  41. data/spec/dummy/db/migrate/20130107214537_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
  42. data/spec/dummy/db/migrate/20130107214538_create_groups.erp_tech_svcs.rb +0 -19
  43. data/spec/dummy/db/migrate/20130107214539_upgrade_security.erp_tech_svcs.rb +0 -54
  44. data/spec/dummy/db/migrate/20130107214540_upgrade_security2.erp_tech_svcs.rb +0 -270
  45. data/spec/dummy/db/migrate/20130107214541_base_app_framework.erp_app.rb +0 -276
  46. data/spec/dummy/db/schema.rb +0 -823
  47. data/spec/dummy/db/spec.sqlite3 +0 -0
  48. data/spec/dummy/log/development.log +0 -1
  49. data/spec/dummy/log/spec.log +0 -35447
@@ -1,823 +0,0 @@
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 => 20130107214541) do
15
-
16
- create_table "app_containers", :force => true do |t|
17
- t.integer "user_id"
18
- t.string "description"
19
- t.string "internal_identifier"
20
- t.string "type"
21
- t.datetime "created_at", :null => false
22
- t.datetime "updated_at", :null => false
23
- end
24
-
25
- add_index "app_containers", ["type"], :name => "index_app_containers_on_type"
26
- add_index "app_containers", ["user_id"], :name => "index_app_containers_on_user_id"
27
-
28
- create_table "app_containers_applications", :id => false, :force => true do |t|
29
- t.integer "app_container_id"
30
- t.integer "application_id"
31
- end
32
-
33
- add_index "app_containers_applications", ["app_container_id"], :name => "index_app_containers_applications_on_app_container_id"
34
- add_index "app_containers_applications", ["application_id"], :name => "index_app_containers_applications_on_application_id"
35
-
36
- create_table "applications", :force => true do |t|
37
- t.string "description"
38
- t.string "icon"
39
- t.string "internal_identifier"
40
- t.string "javascript_class_name"
41
- t.string "shortcut_id"
42
- t.string "base_url"
43
- t.string "type"
44
- t.datetime "created_at", :null => false
45
- t.datetime "updated_at", :null => false
46
- end
47
-
48
- create_table "applications_widgets", :id => false, :force => true do |t|
49
- t.integer "application_id"
50
- t.integer "widget_id"
51
- end
52
-
53
- add_index "applications_widgets", ["application_id"], :name => "index_applications_widgets_on_application_id"
54
- add_index "applications_widgets", ["widget_id"], :name => "index_applications_widgets_on_widget_id"
55
-
56
- create_table "attribute_types", :force => true do |t|
57
- t.string "internal_identifier"
58
- t.string "description"
59
- t.string "data_type"
60
- t.datetime "created_at", :null => false
61
- t.datetime "updated_at", :null => false
62
- end
63
-
64
- add_index "attribute_types", ["internal_identifier"], :name => ":attribute_types_iid_idx"
65
-
66
- create_table "attribute_values", :force => true do |t|
67
- t.integer "attributed_record_id"
68
- t.string "attributed_record_type"
69
- t.integer "attribute_type_id"
70
- t.string "value"
71
- t.datetime "created_at", :null => false
72
- t.datetime "updated_at", :null => false
73
- end
74
-
75
- add_index "attribute_values", ["attribute_type_id"], :name => "attribute_values_attributed_type_idx"
76
- add_index "attribute_values", ["attributed_record_id", "attributed_record_type"], :name => "attribute_values_attributed_record_idx"
77
- add_index "attribute_values", ["value"], :name => "attribute_values_value_idx"
78
-
79
- create_table "audit_log_item_types", :force => true do |t|
80
- t.string "internal_identifier"
81
- t.string "external_identifier"
82
- t.string "external_id_source"
83
- t.string "description"
84
- t.string "comments"
85
- t.integer "parent_id"
86
- t.integer "lft"
87
- t.integer "rgt"
88
- t.datetime "created_at", :null => false
89
- t.datetime "updated_at", :null => false
90
- end
91
-
92
- create_table "audit_log_items", :force => true do |t|
93
- t.integer "audit_log_id"
94
- t.integer "audit_log_item_type_id"
95
- t.string "audit_log_item_value"
96
- t.string "description"
97
- t.datetime "created_at", :null => false
98
- t.datetime "updated_at", :null => false
99
- end
100
-
101
- create_table "audit_log_types", :force => true do |t|
102
- t.string "description"
103
- t.string "error_code"
104
- t.string "comments"
105
- t.string "internal_identifier"
106
- t.string "external_identifier"
107
- t.string "external_id_source"
108
- t.integer "parent_id"
109
- t.integer "lft"
110
- t.integer "rgt"
111
- t.datetime "created_at", :null => false
112
- t.datetime "updated_at", :null => false
113
- end
114
-
115
- create_table "audit_logs", :force => true do |t|
116
- t.string "application"
117
- t.string "description"
118
- t.integer "party_id"
119
- t.text "additional_info"
120
- t.integer "audit_log_type_id"
121
- t.integer "event_record_id"
122
- t.string "event_record_type"
123
- t.datetime "created_at", :null => false
124
- t.datetime "updated_at", :null => false
125
- end
126
-
127
- add_index "audit_logs", ["event_record_id", "event_record_type"], :name => "event_record_index"
128
- add_index "audit_logs", ["party_id"], :name => "index_audit_logs_on_party_id"
129
-
130
- create_table "capabilities", :force => true do |t|
131
- t.string "description"
132
- t.integer "capability_type_id"
133
- t.string "capability_resource_type"
134
- t.integer "capability_resource_id"
135
- t.integer "scope_type_id"
136
- t.text "scope_query"
137
- t.datetime "created_at", :null => false
138
- t.datetime "updated_at", :null => false
139
- end
140
-
141
- add_index "capabilities", ["capability_resource_id", "capability_resource_type"], :name => "capability_resource_index"
142
- add_index "capabilities", ["capability_type_id"], :name => "index_capabilities_on_capability_type_id"
143
- add_index "capabilities", ["scope_type_id"], :name => "index_capabilities_on_scope_type_id"
144
-
145
- create_table "capability_accessors", :force => true do |t|
146
- t.string "capability_accessor_record_type"
147
- t.integer "capability_accessor_record_id"
148
- t.integer "capability_id"
149
- t.datetime "created_at", :null => false
150
- t.datetime "updated_at", :null => false
151
- end
152
-
153
- add_index "capability_accessors", ["capability_accessor_record_id", "capability_accessor_record_type"], :name => "capability_accessor_record_index"
154
- add_index "capability_accessors", ["capability_id"], :name => "index_capability_accessors_on_capability_id"
155
-
156
- create_table "capability_types", :force => true do |t|
157
- t.string "internal_identifier"
158
- t.string "description"
159
- t.datetime "created_at", :null => false
160
- t.datetime "updated_at", :null => false
161
- end
162
-
163
- create_table "capable_models", :force => true do |t|
164
- t.integer "capable_model_record_id"
165
- t.string "capable_model_record_type"
166
- t.datetime "created_at", :null => false
167
- t.datetime "updated_at", :null => false
168
- end
169
-
170
- add_index "capable_models", ["capable_model_record_id", "capable_model_record_type"], :name => "capable_model_record_idx"
171
-
172
- create_table "categories", :force => true do |t|
173
- t.string "description"
174
- t.string "external_identifier"
175
- t.datetime "from_date"
176
- t.datetime "to_date"
177
- t.string "internal_identifier"
178
- t.integer "category_record_id"
179
- t.string "category_record_type"
180
- t.integer "parent_id"
181
- t.integer "lft"
182
- t.integer "rgt"
183
- t.datetime "created_at", :null => false
184
- t.datetime "updated_at", :null => false
185
- end
186
-
187
- add_index "categories", ["category_record_id", "category_record_type"], :name => "category_polymorphic"
188
-
189
- create_table "category_classifications", :force => true do |t|
190
- t.integer "category_id"
191
- t.string "classification_type"
192
- t.integer "classification_id"
193
- t.datetime "from_date"
194
- t.datetime "to_date"
195
- t.datetime "created_at", :null => false
196
- t.datetime "updated_at", :null => false
197
- end
198
-
199
- add_index "category_classifications", ["classification_id", "classification_type"], :name => "classification_polymorphic"
200
-
201
- create_table "compass_ae_instances", :force => true do |t|
202
- t.decimal "version", :precision => 8, :scale => 3
203
- t.datetime "created_at", :null => false
204
- t.datetime "updated_at", :null => false
205
- end
206
-
207
- create_table "configuration_item_types", :force => true do |t|
208
- t.integer "parent_id"
209
- t.integer "lft"
210
- t.integer "rgt"
211
- t.string "description"
212
- t.string "internal_identifier"
213
- t.boolean "allow_user_defined_options", :default => false
214
- t.boolean "is_multi_optional", :default => false
215
- t.datetime "created_at", :null => false
216
- t.datetime "updated_at", :null => false
217
- end
218
-
219
- create_table "configuration_item_types_configuration_options", :force => true do |t|
220
- t.integer "configuration_item_type_id"
221
- t.integer "configuration_option_id"
222
- t.boolean "is_default", :default => false
223
- t.datetime "created_at", :null => false
224
- t.datetime "updated_at", :null => false
225
- end
226
-
227
- add_index "configuration_item_types_configuration_options", ["configuration_item_type_id"], :name => "conf_item_type_conf_opt_id_item_idx"
228
- add_index "configuration_item_types_configuration_options", ["configuration_option_id"], :name => "conf_item_type_conf_opt_id_opt_idx"
229
-
230
- create_table "configuration_item_types_configurations", :id => false, :force => true do |t|
231
- t.integer "configuration_item_type_id"
232
- t.integer "configuration_id"
233
- end
234
-
235
- add_index "configuration_item_types_configurations", ["configuration_id"], :name => "conf_id_idx"
236
- add_index "configuration_item_types_configurations", ["configuration_item_type_id", "configuration_id"], :name => "conf_config_type_uniq_idx", :unique => true
237
- add_index "configuration_item_types_configurations", ["configuration_item_type_id"], :name => "conf_conf_type_id_item_idx"
238
-
239
- create_table "configuration_items", :force => true do |t|
240
- t.integer "configuration_id"
241
- t.integer "configuration_item_type_id"
242
- t.integer "configuration_option_id"
243
- t.datetime "created_at", :null => false
244
- t.datetime "updated_at", :null => false
245
- end
246
-
247
- add_index "configuration_items", ["configuration_id"], :name => "index_configuration_items_on_configuration_id"
248
- add_index "configuration_items", ["configuration_item_type_id"], :name => "index_configuration_items_on_configuration_item_type_id"
249
- add_index "configuration_items", ["configuration_option_id"], :name => "index_configuration_items_on_configuration_option_id"
250
-
251
- create_table "configuration_items_configuration_options", :id => false, :force => true do |t|
252
- t.integer "configuration_item_id"
253
- t.integer "configuration_option_id"
254
- end
255
-
256
- add_index "configuration_items_configuration_options", ["configuration_item_id"], :name => "conf_item_conf_opt_id_item_idx"
257
- add_index "configuration_items_configuration_options", ["configuration_option_id"], :name => "conf_item_conf_opt_id_opt_idx"
258
-
259
- create_table "configuration_options", :force => true do |t|
260
- t.string "description"
261
- t.string "internal_identifier"
262
- t.string "value"
263
- t.text "comment"
264
- t.boolean "user_defined", :default => false
265
- t.datetime "created_at", :null => false
266
- t.datetime "updated_at", :null => false
267
- end
268
-
269
- add_index "configuration_options", ["internal_identifier"], :name => "index_configuration_options_on_internal_identifier"
270
- add_index "configuration_options", ["user_defined"], :name => "index_configuration_options_on_user_defined"
271
- add_index "configuration_options", ["value"], :name => "index_configuration_options_on_value"
272
-
273
- create_table "configurations", :force => true do |t|
274
- t.string "description"
275
- t.string "internal_identifier"
276
- t.boolean "active"
277
- t.boolean "is_template", :default => false
278
- t.datetime "created_at", :null => false
279
- t.datetime "updated_at", :null => false
280
- end
281
-
282
- add_index "configurations", ["is_template"], :name => "index_configurations_on_is_template"
283
-
284
- create_table "contact_purposes", :force => true do |t|
285
- t.integer "parent_id"
286
- t.integer "lft"
287
- t.integer "rgt"
288
- t.string "description"
289
- t.string "comments"
290
- t.string "internal_identifier"
291
- t.string "external_identifier"
292
- t.string "external_id_source"
293
- t.datetime "created_at", :null => false
294
- t.datetime "updated_at", :null => false
295
- end
296
-
297
- add_index "contact_purposes", ["parent_id"], :name => "index_contact_purposes_on_parent_id"
298
-
299
- create_table "contact_purposes_contacts", :id => false, :force => true do |t|
300
- t.integer "contact_id"
301
- t.integer "contact_purpose_id"
302
- end
303
-
304
- add_index "contact_purposes_contacts", ["contact_id", "contact_purpose_id"], :name => "contact_purposes_contacts_index"
305
-
306
- create_table "contact_types", :force => true do |t|
307
- t.integer "parent_id"
308
- t.integer "lft"
309
- t.integer "rgt"
310
- t.string "description"
311
- t.string "comments"
312
- t.string "internal_identifier"
313
- t.string "external_identifier"
314
- t.string "external_id_source"
315
- t.datetime "created_at", :null => false
316
- t.datetime "updated_at", :null => false
317
- end
318
-
319
- add_index "contact_types", ["parent_id"], :name => "index_contact_types_on_parent_id"
320
-
321
- create_table "contacts", :force => true do |t|
322
- t.integer "party_id"
323
- t.integer "contact_mechanism_id"
324
- t.string "contact_mechanism_type"
325
- t.string "external_identifier"
326
- t.string "external_id_source"
327
- t.datetime "created_at", :null => false
328
- t.datetime "updated_at", :null => false
329
- end
330
-
331
- add_index "contacts", ["contact_mechanism_id", "contact_mechanism_type"], :name => "besi_2"
332
- add_index "contacts", ["party_id"], :name => "index_contacts_on_party_id"
333
-
334
- create_table "currencies", :force => true do |t|
335
- t.string "name"
336
- t.string "definition"
337
- t.string "internal_identifier"
338
- t.string "numeric_code"
339
- t.string "major_unit_symbol"
340
- t.string "minor_unit_symbol"
341
- t.string "ratio_of_minor_unit_to_major_unit"
342
- t.string "postfix_label"
343
- t.datetime "introduction_date"
344
- t.datetime "expiration_date"
345
- t.datetime "created_at", :null => false
346
- t.datetime "updated_at", :null => false
347
- end
348
-
349
- add_index "currencies", ["internal_identifier"], :name => "index_currencies_on_internal_identifier"
350
-
351
- create_table "delayed_jobs", :force => true do |t|
352
- t.integer "priority", :default => 0
353
- t.integer "attempts", :default => 0
354
- t.text "handler"
355
- t.text "last_error"
356
- t.datetime "run_at"
357
- t.datetime "locked_at"
358
- t.datetime "failed_at"
359
- t.string "locked_by"
360
- t.string "queue"
361
- t.datetime "created_at", :null => false
362
- t.datetime "updated_at", :null => false
363
- end
364
-
365
- add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
366
-
367
- create_table "descriptive_assets", :force => true do |t|
368
- t.integer "view_type_id"
369
- t.string "internal_identifier"
370
- t.text "description"
371
- t.string "external_identifier"
372
- t.string "external_id_source"
373
- t.integer "described_record_id"
374
- t.string "described_record_type"
375
- t.datetime "created_at", :null => false
376
- t.datetime "updated_at", :null => false
377
- end
378
-
379
- add_index "descriptive_assets", ["described_record_id", "described_record_type"], :name => "described_record_idx"
380
- add_index "descriptive_assets", ["view_type_id"], :name => "index_descriptive_assets_on_view_type_id"
381
-
382
- create_table "email_addresses", :force => true do |t|
383
- t.string "email_address"
384
- t.string "description"
385
- t.datetime "created_at", :null => false
386
- t.datetime "updated_at", :null => false
387
- end
388
-
389
- create_table "file_assets", :force => true do |t|
390
- t.integer "file_asset_holder_id"
391
- t.string "file_asset_holder_type"
392
- t.string "type"
393
- t.string "name"
394
- t.string "directory"
395
- t.string "data_file_name"
396
- t.string "data_content_type"
397
- t.integer "data_file_size"
398
- t.datetime "data_updated_at"
399
- t.string "width"
400
- t.string "height"
401
- t.datetime "created_at", :null => false
402
- t.datetime "updated_at", :null => false
403
- end
404
-
405
- add_index "file_assets", ["directory"], :name => "index_file_assets_on_directory"
406
- add_index "file_assets", ["file_asset_holder_id", "file_asset_holder_type"], :name => "file_asset_holder_idx"
407
- add_index "file_assets", ["name"], :name => "index_file_assets_on_name"
408
- add_index "file_assets", ["type"], :name => "index_file_assets_on_type"
409
-
410
- create_table "geo_countries", :force => true do |t|
411
- t.string "name"
412
- t.string "iso_code_2"
413
- t.string "iso_code_3"
414
- t.boolean "display", :default => true
415
- t.integer "external_id"
416
- t.datetime "created_at"
417
- end
418
-
419
- add_index "geo_countries", ["iso_code_2"], :name => "index_geo_countries_on_iso_code_2"
420
- add_index "geo_countries", ["name"], :name => "index_geo_countries_on_name"
421
-
422
- create_table "geo_zones", :force => true do |t|
423
- t.integer "geo_country_id"
424
- t.string "zone_code", :default => "2"
425
- t.string "zone_name"
426
- t.datetime "created_at"
427
- end
428
-
429
- add_index "geo_zones", ["geo_country_id"], :name => "index_geo_zones_on_geo_country_id"
430
- add_index "geo_zones", ["zone_code"], :name => "index_geo_zones_on_zone_code"
431
- add_index "geo_zones", ["zone_name"], :name => "index_geo_zones_on_zone_name"
432
-
433
- create_table "groups", :force => true do |t|
434
- t.string "description"
435
- t.datetime "created_at", :null => false
436
- t.datetime "updated_at", :null => false
437
- end
438
-
439
- create_table "individuals", :force => true do |t|
440
- t.integer "party_id"
441
- t.string "current_last_name"
442
- t.string "current_first_name"
443
- t.string "current_middle_name"
444
- t.string "current_personal_title"
445
- t.string "current_suffix"
446
- t.string "current_nickname"
447
- t.string "gender", :limit => 1
448
- t.date "birth_date"
449
- t.decimal "height", :precision => 5, :scale => 2
450
- t.integer "weight"
451
- t.string "mothers_maiden_name"
452
- t.string "marital_status", :limit => 1
453
- t.string "social_security_number"
454
- t.integer "current_passport_number"
455
- t.date "current_passport_expire_date"
456
- t.integer "total_years_work_experience"
457
- t.string "comments"
458
- t.string "encrypted_ssn"
459
- t.string "temp_ssn"
460
- t.string "salt"
461
- t.string "ssn_last_four"
462
- t.datetime "created_at", :null => false
463
- t.datetime "updated_at", :null => false
464
- end
465
-
466
- add_index "individuals", ["party_id"], :name => "index_individuals_on_party_id"
467
-
468
- create_table "money", :force => true do |t|
469
- t.string "description"
470
- t.decimal "amount", :precision => 8, :scale => 2
471
- t.integer "currency_id"
472
- t.datetime "created_at", :null => false
473
- t.datetime "updated_at", :null => false
474
- end
475
-
476
- add_index "money", ["currency_id"], :name => "index_money_on_currency_id"
477
-
478
- create_table "note_types", :force => true do |t|
479
- t.integer "parent_id"
480
- t.integer "lft"
481
- t.integer "rgt"
482
- t.string "description"
483
- t.string "internal_identifier"
484
- t.string "external_identifier"
485
- t.integer "note_type_record_id"
486
- t.string "note_type_record_type"
487
- t.datetime "created_at", :null => false
488
- t.datetime "updated_at", :null => false
489
- end
490
-
491
- add_index "note_types", ["note_type_record_id", "note_type_record_type"], :name => "note_type_record_idx"
492
-
493
- create_table "notes", :force => true do |t|
494
- t.integer "created_by_id"
495
- t.text "content"
496
- t.integer "noted_record_id"
497
- t.string "noted_record_type"
498
- t.integer "note_type_id"
499
- t.datetime "created_at", :null => false
500
- t.datetime "updated_at", :null => false
501
- end
502
-
503
- add_index "notes", ["created_by_id"], :name => "index_notes_on_created_by_id"
504
- add_index "notes", ["note_type_id"], :name => "index_notes_on_note_type_id"
505
- add_index "notes", ["noted_record_id", "noted_record_type"], :name => "index_notes_on_noted_record_id_and_noted_record_type"
506
-
507
- create_table "organizations", :force => true do |t|
508
- t.string "description"
509
- t.string "tax_id_number"
510
- t.datetime "created_at", :null => false
511
- t.datetime "updated_at", :null => false
512
- end
513
-
514
- create_table "parties", :force => true do |t|
515
- t.string "description"
516
- t.integer "business_party_id"
517
- t.string "business_party_type"
518
- t.integer "list_view_image_id"
519
- t.string "enterprise_identifier"
520
- t.datetime "created_at", :null => false
521
- t.datetime "updated_at", :null => false
522
- end
523
-
524
- add_index "parties", ["business_party_id", "business_party_type"], :name => "besi_1"
525
-
526
- create_table "parties_security_roles", :id => false, :force => true do |t|
527
- t.integer "party_id"
528
- t.integer "security_role_id"
529
- end
530
-
531
- add_index "parties_security_roles", ["party_id"], :name => "index_parties_security_roles_on_party_id"
532
- add_index "parties_security_roles", ["security_role_id"], :name => "index_parties_security_roles_on_security_role_id"
533
-
534
- create_table "party_relationships", :force => true do |t|
535
- t.string "description"
536
- t.integer "party_id_from"
537
- t.integer "party_id_to"
538
- t.integer "role_type_id_from"
539
- t.integer "role_type_id_to"
540
- t.integer "status_type_id"
541
- t.integer "priority_type_id"
542
- t.integer "relationship_type_id"
543
- t.date "from_date"
544
- t.date "thru_date"
545
- t.string "external_identifier"
546
- t.string "external_id_source"
547
- t.datetime "created_at", :null => false
548
- t.datetime "updated_at", :null => false
549
- end
550
-
551
- add_index "party_relationships", ["priority_type_id"], :name => "index_party_relationships_on_priority_type_id"
552
- add_index "party_relationships", ["relationship_type_id"], :name => "index_party_relationships_on_relationship_type_id"
553
- add_index "party_relationships", ["status_type_id"], :name => "index_party_relationships_on_status_type_id"
554
-
555
- create_table "party_roles", :force => true do |t|
556
- t.string "type"
557
- t.integer "party_id"
558
- t.integer "role_type_id"
559
- t.datetime "created_at", :null => false
560
- t.datetime "updated_at", :null => false
561
- end
562
-
563
- add_index "party_roles", ["party_id"], :name => "index_party_roles_on_party_id"
564
- add_index "party_roles", ["role_type_id"], :name => "index_party_roles_on_role_type_id"
565
-
566
- create_table "party_search_facts", :force => true do |t|
567
- t.integer "party_id"
568
- t.string "eid"
569
- t.string "type"
570
- t.text "roles"
571
- t.string "party_description"
572
- t.string "party_business_party_type"
573
- t.string "user_login"
574
- t.string "individual_current_last_name"
575
- t.string "individual_current_first_name"
576
- t.string "individual_current_middle_name"
577
- t.string "individual_birth_date"
578
- t.string "individual_ssn"
579
- t.string "party_phone_number"
580
- t.string "party_email_address"
581
- t.string "party_address_1"
582
- t.string "party_address_2"
583
- t.string "party_primary_address_city"
584
- t.string "party_primary_address_state"
585
- t.string "party_primary_address_zip"
586
- t.string "party_primary_address_country"
587
- t.boolean "user_enabled"
588
- t.string "user_type"
589
- t.boolean "reindex"
590
- t.datetime "created_at", :null => false
591
- t.datetime "updated_at", :null => false
592
- end
593
-
594
- create_table "phone_numbers", :force => true do |t|
595
- t.string "phone_number"
596
- t.string "description"
597
- t.datetime "created_at", :null => false
598
- t.datetime "updated_at", :null => false
599
- end
600
-
601
- create_table "postal_addresses", :force => true do |t|
602
- t.string "address_line_1"
603
- t.string "address_line_2"
604
- t.string "city"
605
- t.string "state"
606
- t.string "zip"
607
- t.string "country"
608
- t.string "description"
609
- t.integer "geo_country_id"
610
- t.integer "geo_zone_id"
611
- t.datetime "created_at", :null => false
612
- t.datetime "updated_at", :null => false
613
- end
614
-
615
- add_index "postal_addresses", ["geo_country_id"], :name => "index_postal_addresses_on_geo_country_id"
616
- add_index "postal_addresses", ["geo_zone_id"], :name => "index_postal_addresses_on_geo_zone_id"
617
-
618
- create_table "preference_options", :force => true do |t|
619
- t.string "description"
620
- t.string "internal_identifier"
621
- t.string "value"
622
- t.datetime "created_at", :null => false
623
- t.datetime "updated_at", :null => false
624
- end
625
-
626
- create_table "preference_options_preference_types", :id => false, :force => true do |t|
627
- t.integer "preference_type_id"
628
- t.integer "preference_option_id"
629
- end
630
-
631
- add_index "preference_options_preference_types", ["preference_option_id"], :name => "pref_opt_pref_type_pref_opt_id_idx"
632
- add_index "preference_options_preference_types", ["preference_type_id"], :name => "pref_opt_pref_type_pref_type_id_idx"
633
-
634
- create_table "preference_types", :force => true do |t|
635
- t.string "description"
636
- t.string "internal_identifier"
637
- t.integer "default_pref_option_id"
638
- t.datetime "created_at", :null => false
639
- t.datetime "updated_at", :null => false
640
- end
641
-
642
- add_index "preference_types", ["default_pref_option_id"], :name => "index_preference_types_on_default_pref_option_id"
643
-
644
- create_table "preferences", :force => true do |t|
645
- t.integer "preference_option_id"
646
- t.integer "preference_type_id"
647
- t.datetime "created_at", :null => false
648
- t.datetime "updated_at", :null => false
649
- end
650
-
651
- add_index "preferences", ["preference_option_id"], :name => "index_preferences_on_preference_option_id"
652
- add_index "preferences", ["preference_type_id"], :name => "index_preferences_on_preference_type_id"
653
-
654
- create_table "relationship_types", :force => true do |t|
655
- t.integer "parent_id"
656
- t.integer "lft"
657
- t.integer "rgt"
658
- t.integer "valid_from_role_type_id"
659
- t.integer "valid_to_role_type_id"
660
- t.string "name"
661
- t.string "description"
662
- t.string "internal_identifier"
663
- t.string "external_identifier"
664
- t.string "external_id_source"
665
- t.datetime "created_at", :null => false
666
- t.datetime "updated_at", :null => false
667
- end
668
-
669
- add_index "relationship_types", ["valid_from_role_type_id"], :name => "index_relationship_types_on_valid_from_role_type_id"
670
- add_index "relationship_types", ["valid_to_role_type_id"], :name => "index_relationship_types_on_valid_to_role_type_id"
671
-
672
- create_table "role_types", :force => true do |t|
673
- t.integer "parent_id"
674
- t.integer "lft"
675
- t.integer "rgt"
676
- t.string "description"
677
- t.string "comments"
678
- t.string "internal_identifier"
679
- t.string "external_identifier"
680
- t.string "external_id_source"
681
- t.datetime "created_at", :null => false
682
- t.datetime "updated_at", :null => false
683
- end
684
-
685
- create_table "scope_types", :force => true do |t|
686
- t.string "description"
687
- t.string "internal_identifier"
688
- t.datetime "created_at", :null => false
689
- t.datetime "updated_at", :null => false
690
- end
691
-
692
- add_index "scope_types", ["internal_identifier"], :name => "index_scope_types_on_internal_identifier"
693
-
694
- create_table "security_roles", :force => true do |t|
695
- t.string "description"
696
- t.string "internal_identifier"
697
- t.string "external_identifier"
698
- t.string "external_id_source"
699
- t.datetime "created_at", :null => false
700
- t.datetime "updated_at", :null => false
701
- end
702
-
703
- create_table "sessions", :force => true do |t|
704
- t.string "session_id", :null => false
705
- t.text "data"
706
- t.datetime "created_at", :null => false
707
- t.datetime "updated_at", :null => false
708
- end
709
-
710
- add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
711
- add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
712
-
713
- create_table "tree_menu_node_defs", :force => true do |t|
714
- t.string "node_type"
715
- t.integer "parent_id"
716
- t.integer "lft"
717
- t.integer "rgt"
718
- t.string "menu_short_name"
719
- t.string "menu_description"
720
- t.string "text"
721
- t.string "icon_url"
722
- t.string "target_url"
723
- t.string "resource_class"
724
- t.datetime "created_at", :null => false
725
- t.datetime "updated_at", :null => false
726
- end
727
-
728
- add_index "tree_menu_node_defs", ["parent_id"], :name => "index_tree_menu_node_defs_on_parent_id"
729
-
730
- create_table "user_preferences", :force => true do |t|
731
- t.integer "user_id"
732
- t.integer "preference_id"
733
- t.integer "preferenced_record_id"
734
- t.string "preferenced_record_type"
735
- t.datetime "created_at", :null => false
736
- t.datetime "updated_at", :null => false
737
- end
738
-
739
- add_index "user_preferences", ["preference_id"], :name => "index_user_preferences_on_preference_id"
740
- add_index "user_preferences", ["preferenced_record_id"], :name => "index_user_preferences_on_preferenced_record_id"
741
- add_index "user_preferences", ["preferenced_record_type"], :name => "index_user_preferences_on_preferenced_record_type"
742
- add_index "user_preferences", ["user_id"], :name => "index_user_preferences_on_user_id"
743
-
744
- create_table "users", :force => true do |t|
745
- t.string "username"
746
- t.string "email"
747
- t.integer "party_id"
748
- t.string "type"
749
- t.string "salt"
750
- t.string "crypted_password"
751
- t.datetime "last_login_at"
752
- t.datetime "last_logout_at"
753
- t.datetime "last_activity_at"
754
- t.integer "failed_logins_count", :default => 0
755
- t.datetime "lock_expires_at"
756
- t.string "remember_me_token"
757
- t.datetime "remember_me_token_expires_at"
758
- t.string "reset_password_token"
759
- t.datetime "reset_password_token_expires_at"
760
- t.datetime "reset_password_email_sent_at"
761
- t.string "activation_state"
762
- t.string "activation_token"
763
- t.datetime "activation_token_expires_at"
764
- t.string "security_question_1"
765
- t.string "security_answer_1"
766
- t.string "security_question_2"
767
- t.string "security_answer_2"
768
- t.datetime "created_at", :null => false
769
- t.datetime "updated_at", :null => false
770
- end
771
-
772
- add_index "users", ["activation_token"], :name => "index_users_on_activation_token"
773
- add_index "users", ["email"], :name => "index_users_on_email", :unique => true
774
- add_index "users", ["last_logout_at", "last_activity_at"], :name => "activity_idx"
775
- add_index "users", ["remember_me_token"], :name => "index_users_on_remember_me_token"
776
- add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token"
777
- add_index "users", ["username"], :name => "index_users_on_username", :unique => true
778
-
779
- create_table "valid_configurations", :force => true do |t|
780
- t.integer "configured_item_id"
781
- t.string "configured_item_type"
782
- t.integer "configuration_id"
783
- t.datetime "created_at", :null => false
784
- t.datetime "updated_at", :null => false
785
- end
786
-
787
- add_index "valid_configurations", ["configuration_id"], :name => "index_valid_configurations_on_configuration_id"
788
- add_index "valid_configurations", ["configured_item_id", "configured_item_type"], :name => "configured_item_poly_idx"
789
-
790
- create_table "valid_note_types", :force => true do |t|
791
- t.integer "valid_note_type_record_id"
792
- t.string "valid_note_type_record_type"
793
- t.integer "note_type_id"
794
- t.datetime "created_at", :null => false
795
- t.datetime "updated_at", :null => false
796
- end
797
-
798
- add_index "valid_note_types", ["note_type_id"], :name => "index_valid_note_types_on_note_type_id"
799
- add_index "valid_note_types", ["valid_note_type_record_id", "valid_note_type_record_type"], :name => "valid_note_type_record_idx"
800
-
801
- create_table "valid_preference_types", :force => true do |t|
802
- t.integer "preference_type_id"
803
- t.integer "preferenced_record_id"
804
- t.string "preferenced_record_type"
805
- end
806
-
807
- create_table "view_types", :force => true do |t|
808
- t.string "internal_identifier"
809
- t.string "description"
810
- t.datetime "created_at", :null => false
811
- t.datetime "updated_at", :null => false
812
- end
813
-
814
- create_table "widgets", :force => true do |t|
815
- t.string "description"
816
- t.string "internal_identifier"
817
- t.string "icon"
818
- t.string "xtype"
819
- t.datetime "created_at", :null => false
820
- t.datetime "updated_at", :null => false
821
- end
822
-
823
- end