erp_commerce 3.1.3 → 3.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/app/widgets/shopping_cart/javascript/shopping_cart.js +6 -6
- data/lib/erp_commerce/engine.rb +1 -1
- data/lib/erp_commerce/version.rb +1 -1
- metadata +5 -126
- data/spec/dummy/db/data_migrations/20101011152441_payment_gateway_actions.erp_commerce.rb +0 -28
- data/spec/dummy/db/data_migrations/20101014142230_financial_txn_types.erp_txns_and_accts.rb +0 -16
- data/spec/dummy/db/data_migrations/20110109173616_create_capability_scope_types.erp_tech_svcs.rb +0 -15
- data/spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb +0 -24
- data/spec/dummy/db/data_migrations/20110525001935_add_usd_currency.erp_base_erp_svcs.rb +0 -12
- data/spec/dummy/db/data_migrations/20110527160807_add_default_prod_avail_types.erp_products.rb +0 -27
- data/spec/dummy/db/data_migrations/20110605231556_create_order_party_roles.erp_orders.rb +0 -24
- data/spec/dummy/db/data_migrations/20110609150135_add_iso_codes.erp_base_erp_svcs.rb +0 -19
- data/spec/dummy/db/data_migrations/20110728201729_erp_app_setup.erp_app.rb +0 -252
- data/spec/dummy/db/data_migrations/20110728201730_create_desktop_app_product_manager.erp_products.rb +0 -26
- data/spec/dummy/db/data_migrations/20110728201731_create_desktop_app_order_manager.erp_orders.rb +0 -26
- data/spec/dummy/db/data_migrations/20110728201732_create_organizer_app_order_management.erp_orders.rb +0 -15
- data/spec/dummy/db/data_migrations/20110728201733_update_preferences.erp_app.rb +0 -53
- data/spec/dummy/db/data_migrations/20110802200222_schedule_delete_expired_sessions_job.erp_tech_svcs.rb +0 -16
- data/spec/dummy/db/data_migrations/20110816161238_create_desktop_app_audit_log_viewer.erp_app.rb +0 -21
- data/spec/dummy/db/data_migrations/20110817160743_add_file_manager_application.erp_app.rb +0 -32
- data/spec/dummy/db/data_migrations/20110913145838_setup_compass_ae_instance.erp_base_erp_svcs.rb +0 -12
- data/spec/dummy/db/data_migrations/20111108183739_add_default_capabilities.erp_app.rb +0 -23
- data/spec/dummy/db/data_migrations/20111108183740_add_new_contact_widgets.erp_app.rb +0 -42
- data/spec/dummy/db/data_migrations/20111111144706_setup_audit_log_types.erp_tech_svcs.rb +0 -22
- data/spec/dummy/db/data_migrations/20120229160222_add_userinfo_widget.erp_app.rb +0 -29
- data/spec/dummy/db/data_migrations/20120229174343_add_orders_widget.erp_orders.rb +0 -29
- data/spec/dummy/db/data_migrations/20120405193721_create_party_and_role_type_for_communication_events.erp_app.rb +0 -11
- data/spec/dummy/db/data_migrations/20120411180756_create_user_management_mobile_application.erp_app.rb +0 -19
- data/spec/dummy/db/data_migrations/20120418164215_create_configuration_management_desktop_application.erp_app.rb +0 -23
- data/spec/dummy/db/data_migrations/20121116155018_create_group_relationship_and_role_types.erp_tech_svcs.rb +0 -20
- data/spec/dummy/db/data_migrations/20121130201859_upgrade_remove_system_mgmt_app.erp_app.rb +0 -16
- data/spec/dummy/db/data_migrations/20121130212146_note_capabilities.erp_tech_svcs.rb +0 -24
- data/spec/dummy/db/data_migrations/20121218175028_create_security_management_desktop_application.erp_app.rb +0 -23
- data/spec/dummy/db/data_migrations/20130422155150_upgrade_compass_ae_instances_data.erp_base_erp_svcs.rb +0 -19
- data/spec/dummy/db/data_migrations/20130422155151_add_guid_to_instances.erp_base_erp_svcs.rb +0 -10
- data/spec/dummy/db/data_migrations/20130422155152_create_job_tracker_desktop_application.erp_app.rb +0 -23
- data/spec/dummy/db/data_migrations/20130422155153_created_tracked_jobs.erp_app.rb +0 -15
- data/spec/dummy/db/data_migrations/20130422155154_add_job_tracker_mobile_app.erp_app.rb +0 -17
- data/spec/dummy/db/data_migrations/20130422155155_add_credit_card_biz_txn_acct_types.erp_commerce.rb +0 -58
- data/spec/dummy/db/migrate/20130107205819_base_erp_services.erp_base_erp_svcs.rb +0 -461
- data/spec/dummy/db/migrate/20130107205820_base_tech_services.erp_tech_svcs.rb +0 -271
- data/spec/dummy/db/migrate/20130107205821_create_has_attribute_tables.erp_tech_svcs.rb +0 -39
- data/spec/dummy/db/migrate/20130107205822_create_groups.erp_tech_svcs.rb +0 -19
- data/spec/dummy/db/migrate/20130107205823_upgrade_security.erp_tech_svcs.rb +0 -54
- data/spec/dummy/db/migrate/20130107205824_upgrade_security2.erp_tech_svcs.rb +0 -270
- data/spec/dummy/db/migrate/20130107205825_base_app_framework.erp_app.rb +0 -276
- data/spec/dummy/db/migrate/20130107205826_base_txns_and_accts.erp_txns_and_accts.rb +0 -364
- data/spec/dummy/db/migrate/20130107205827_agreements_services.erp_agreements.rb +0 -160
- data/spec/dummy/db/migrate/20130107205828_agreements_services_indexes.erp_agreements.rb +0 -52
- data/spec/dummy/db/migrate/20130107205829_base_products.erp_products.rb +0 -234
- data/spec/dummy/db/migrate/20130107205830_base_products_indexes.erp_products.rb +0 -59
- data/spec/dummy/db/migrate/20130107205831_base_orders.erp_orders.rb +0 -178
- data/spec/dummy/db/migrate/20130107205832_erp_commerce_base.erp_commerce.rb +0 -442
- data/spec/dummy/db/migrate/20130422155141_add_txn_status.erp_base_erp_svcs.rb +0 -37
- data/spec/dummy/db/migrate/20130422155142_upgrade_compass_ae_instances.erp_base_erp_svcs.rb +0 -34
- data/spec/dummy/db/migrate/20130422155143_add_uuid_compass_ae_instance.erp_base_erp_svcs.rb +0 -17
- data/spec/dummy/db/migrate/20130422155144_add_long_lat_to_address.erp_base_erp_svcs.rb +0 -16
- data/spec/dummy/db/migrate/20130422155145_add_queue_to_delayed_jobs.erp_tech_svcs.rb +0 -14
- data/spec/dummy/db/migrate/20130422155146_add_job_tracker.erp_app.rb +0 -20
- data/spec/dummy/db/migrate/20130422155147_update_mobile_application.erp_app.rb +0 -28
- data/spec/dummy/db/migrate/20130422155148_add_biz_txn_acct_type_id_to_biz_txn_acct_root.erp_txns_and_accts.rb +0 -6
- data/spec/dummy/db/migrate/20130422155149_add_product_instances_nested_set_indexes.erp_products.rb +0 -10
- data/spec/dummy/db/schema.rb +0 -1884
- data/spec/dummy/db/spec.sqlite3 +0 -0
- data/spec/dummy/log/spec.log +0 -7181
@@ -1,37 +0,0 @@
|
|
1
|
-
# This migration comes from erp_base_erp_svcs (originally 20120606183856)
|
2
|
-
class AddTxnStatus < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
unless table_exists?(:status_applications)
|
5
|
-
create_table :status_applications do |t|
|
6
|
-
t.references :tracked_status_type
|
7
|
-
t.references :status_application_record, :polymorphic => true
|
8
|
-
t.datetime :from_date
|
9
|
-
t.datetime :thru_date
|
10
|
-
|
11
|
-
t.timestamps
|
12
|
-
end
|
13
|
-
|
14
|
-
add_index :status_applications, [:status_application_record_id, :status_application_record_type], :name => 'status_applications_record_idx'
|
15
|
-
add_index :status_applications, :tracked_status_type_id, :name => 'tracked_status_type_id_idx'
|
16
|
-
add_index :status_applications, :from_date, :name => 'from_date_idx'
|
17
|
-
add_index :status_applications, :thru_date, :name => 'thru_date_idx'
|
18
|
-
end
|
19
|
-
|
20
|
-
unless table_exists?(:tracked_status_types)
|
21
|
-
create_table :tracked_status_types do |t|
|
22
|
-
t.string :description
|
23
|
-
t.string :internal_identifier
|
24
|
-
t.string :external_identifier
|
25
|
-
|
26
|
-
t.timestamps
|
27
|
-
end
|
28
|
-
|
29
|
-
add_index :tracked_status_types, :internal_identifier, :name => 'tracked_status_types_iid_idx'
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
def down
|
34
|
-
drop_table :status_applications if table_exists?(:status_applications)
|
35
|
-
drop_table :tracked_status_types if table_exists?(:tracked_status_types)
|
36
|
-
end
|
37
|
-
end
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# This migration comes from erp_base_erp_svcs (originally 20130211444444)
|
2
|
-
# This migration comes from erp_base_erp_svcs (originally 20130211444444)
|
3
|
-
class UpgradeCompassAeInstances < ActiveRecord::Migration
|
4
|
-
def self.up
|
5
|
-
unless columns(:compass_ae_instances).collect {|c| c.name}.include?('type')
|
6
|
-
add_column :compass_ae_instances, :description, :string
|
7
|
-
add_column :compass_ae_instances, :internal_identifier, :string
|
8
|
-
add_column :compass_ae_instances, :type, :string
|
9
|
-
add_column :compass_ae_instances, :schema, :string, :default => 'public'
|
10
|
-
add_column :compass_ae_instances, :parent_id, :integer
|
11
|
-
|
12
|
-
add_index :compass_ae_instances, :internal_identifier, :name => "iid_idx"
|
13
|
-
add_index :compass_ae_instances, :schema, :name => "schema_idx"
|
14
|
-
add_index :compass_ae_instances, :type, :name => "type_idx"
|
15
|
-
add_index :compass_ae_instances, :parent_id, :name => "parent_id_idx"
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
unless table_exists?(:compass_ae_instance_party_roles)
|
20
|
-
create_table :compass_ae_instance_party_roles do |t|
|
21
|
-
t.string :description
|
22
|
-
t.integer :compass_ae_instance_id
|
23
|
-
t.integer :party_id
|
24
|
-
t.integer :role_type_id
|
25
|
-
|
26
|
-
t.timestamps
|
27
|
-
end
|
28
|
-
|
29
|
-
add_index :compass_ae_instance_party_roles, :compass_ae_instance_id, :name => "compass_ae_instance_id_idx"
|
30
|
-
add_index :compass_ae_instance_party_roles, :party_id, :name => "party_id_idx"
|
31
|
-
add_index :compass_ae_instance_party_roles, :role_type_id, :name => "role_type_id_idx"
|
32
|
-
end
|
33
|
-
|
34
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# This migration comes from erp_base_erp_svcs (originally 20130404171435)
|
2
|
-
require 'uuid'
|
3
|
-
|
4
|
-
class AddUuidCompassAeInstance < ActiveRecord::Migration
|
5
|
-
def self.up
|
6
|
-
unless columns(:compass_ae_instances).collect {|c| c.name}.include?('guid')
|
7
|
-
add_column :compass_ae_instances, :guid, :string
|
8
|
-
add_index :compass_ae_instances, :guid, :name => "guid_idx"
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
def self.down
|
13
|
-
if columns(:compass_ae_instances).collect {|c| c.name}.include?('guid')
|
14
|
-
remove_column :compass_ae_instances, :guid
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# This migration comes from erp_base_erp_svcs (originally 20130411125210)
|
2
|
-
class AddLongLatToAddress < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
unless columns(:postal_addresses).collect {|c| c.name}.include?('latitude')
|
5
|
-
add_column :postal_addresses, :latitude, :decimal, :precision => 12, :scale => 8
|
6
|
-
add_column :postal_addresses, :longitude, :decimal, :precision => 12, :scale => 8
|
7
|
-
end
|
8
|
-
end
|
9
|
-
|
10
|
-
def down
|
11
|
-
if columns(:postal_addresses).collect {|c| c.name}.include?('latitude')
|
12
|
-
remove_column :postal_addresses, :latitude
|
13
|
-
remove_column :postal_addresses, :longitude
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# This migration comes from erp_tech_svcs (originally 20130410135419)
|
2
|
-
class AddQueueToDelayedJobs < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
unless columns(:delayed_jobs).collect {|c| c.name}.include?('queue')
|
5
|
-
add_column :delayed_jobs, :queue, :string
|
6
|
-
end
|
7
|
-
end
|
8
|
-
|
9
|
-
def down
|
10
|
-
if columns(:delayed_jobs).collect {|c| c.name}.include?('queue')
|
11
|
-
remove_column :delayed_jobs, :queue, :string
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# This migration comes from erp_app (originally 20120920145259)
|
2
|
-
class AddJobTracker < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
unless table_exists?(:job_trackers)
|
5
|
-
create_table :job_trackers do |t|
|
6
|
-
t.string :job_name
|
7
|
-
t.string :job_klass
|
8
|
-
t.string :run_time
|
9
|
-
t.datetime :last_run_at
|
10
|
-
t.datetime :next_run_at
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
def down
|
16
|
-
if table_exists?(:job_trackers)
|
17
|
-
drop_table :job_trackers
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# This migration comes from erp_app (originally 20130410182333)
|
2
|
-
class UpdateMobileApplication < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
unless columns(:applications).collect { |c| c.name }.include?('xtype')
|
5
|
-
rename_column :applications, :base_url, :xtype
|
6
|
-
|
7
|
-
user_management = MobileApplication.find_by_internal_identifier('user_management')
|
8
|
-
if user_management.nil?
|
9
|
-
MobileApplication.create(
|
10
|
-
:description => 'User Mgmt',
|
11
|
-
:icon => 'icon-user',
|
12
|
-
:internal_identifier => 'user_management',
|
13
|
-
:xtype => 'compass-erpapp-mobile-usermanagement-application'
|
14
|
-
)
|
15
|
-
else
|
16
|
-
user_management.description = 'User Mgmt'
|
17
|
-
user_management.xtype = 'compass-erpapp-mobile-usermanagement-application'
|
18
|
-
user_management.save
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
22
|
-
|
23
|
-
def down
|
24
|
-
if columns(:applications).collect { |c| c.name }.include?('xtype')
|
25
|
-
rename_column :applications, :xtype, :base_url
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
data/spec/dummy/db/migrate/20130422155149_add_product_instances_nested_set_indexes.erp_products.rb
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
# This migration comes from erp_products (originally 20130131204335)
|
2
|
-
class AddProductInstancesNestedSetIndexes < ActiveRecord::Migration
|
3
|
-
def up
|
4
|
-
add_index :product_instances, :lft, :name => 'lft_index' unless indexes(:product_instances).collect {|i| i.name}.include?('lft_index')
|
5
|
-
add_index :product_instances, :rgt, :name => 'rgt_index' unless indexes(:product_instances).collect {|i| i.name}.include?('rgt_index')
|
6
|
-
end
|
7
|
-
|
8
|
-
def down
|
9
|
-
end
|
10
|
-
end
|
data/spec/dummy/db/schema.rb
DELETED
@@ -1,1884 +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 => 20130422155149) do
|
15
|
-
|
16
|
-
create_table "accepted_credit_cards", :force => true do |t|
|
17
|
-
t.integer "organization_id"
|
18
|
-
t.string "card_type"
|
19
|
-
t.datetime "created_at", :null => false
|
20
|
-
t.datetime "updated_at", :null => false
|
21
|
-
end
|
22
|
-
|
23
|
-
create_table "agreement_item_types", :force => true do |t|
|
24
|
-
t.integer "parent_id"
|
25
|
-
t.integer "lft"
|
26
|
-
t.integer "rgt"
|
27
|
-
t.string "description"
|
28
|
-
t.string "comments"
|
29
|
-
t.string "internal_identifier"
|
30
|
-
t.string "external_identifier"
|
31
|
-
t.string "external_id_source"
|
32
|
-
t.datetime "created_at", :null => false
|
33
|
-
t.datetime "updated_at", :null => false
|
34
|
-
end
|
35
|
-
|
36
|
-
add_index "agreement_item_types", ["parent_id"], :name => "index_agreement_item_types_on_parent_id"
|
37
|
-
|
38
|
-
create_table "agreement_items", :force => true do |t|
|
39
|
-
t.integer "agreement_id"
|
40
|
-
t.integer "agreement_item_type_id"
|
41
|
-
t.string "agreement_item_value"
|
42
|
-
t.string "description"
|
43
|
-
t.string "agreement_item_rule_string"
|
44
|
-
t.datetime "created_at", :null => false
|
45
|
-
t.datetime "updated_at", :null => false
|
46
|
-
end
|
47
|
-
|
48
|
-
add_index "agreement_items", ["agreement_id"], :name => "index_agreement_items_on_agreement_id"
|
49
|
-
add_index "agreement_items", ["agreement_item_type_id"], :name => "index_agreement_items_on_agreement_item_type_id"
|
50
|
-
|
51
|
-
create_table "agreement_party_roles", :force => true do |t|
|
52
|
-
t.string "description"
|
53
|
-
t.integer "agreement_id"
|
54
|
-
t.integer "party_id"
|
55
|
-
t.integer "role_type_id"
|
56
|
-
t.string "external_identifier"
|
57
|
-
t.string "external_id_source"
|
58
|
-
t.datetime "created_at", :null => false
|
59
|
-
t.datetime "updated_at", :null => false
|
60
|
-
end
|
61
|
-
|
62
|
-
add_index "agreement_party_roles", ["agreement_id"], :name => "index_agreement_party_roles_on_agreement_id"
|
63
|
-
add_index "agreement_party_roles", ["party_id"], :name => "index_agreement_party_roles_on_party_id"
|
64
|
-
add_index "agreement_party_roles", ["role_type_id"], :name => "index_agreement_party_roles_on_role_type_id"
|
65
|
-
|
66
|
-
create_table "agreement_relationships", :force => true do |t|
|
67
|
-
t.integer "agreement_reln_type_id"
|
68
|
-
t.string "description"
|
69
|
-
t.integer "agreement_id_from"
|
70
|
-
t.integer "agreement_id_to"
|
71
|
-
t.integer "role_type_id_from"
|
72
|
-
t.integer "role_type_id_to"
|
73
|
-
t.integer "status_type_id"
|
74
|
-
t.date "from_date"
|
75
|
-
t.date "thru_date"
|
76
|
-
t.datetime "created_at", :null => false
|
77
|
-
t.datetime "updated_at", :null => false
|
78
|
-
end
|
79
|
-
|
80
|
-
add_index "agreement_relationships", ["agreement_reln_type_id"], :name => "index_agreement_relationships_on_agreement_reln_type_id"
|
81
|
-
add_index "agreement_relationships", ["status_type_id"], :name => "index_agreement_relationships_on_status_type_id"
|
82
|
-
|
83
|
-
create_table "agreement_reln_types", :force => true do |t|
|
84
|
-
t.integer "parent_id"
|
85
|
-
t.integer "lft"
|
86
|
-
t.integer "rgt"
|
87
|
-
t.integer "valid_from_role_type_id"
|
88
|
-
t.integer "valid_to_role_type_id"
|
89
|
-
t.string "name"
|
90
|
-
t.string "description"
|
91
|
-
t.string "internal_identifier"
|
92
|
-
t.string "external_identifier"
|
93
|
-
t.string "external_id_source"
|
94
|
-
t.datetime "created_at", :null => false
|
95
|
-
t.datetime "updated_at", :null => false
|
96
|
-
end
|
97
|
-
|
98
|
-
add_index "agreement_reln_types", ["parent_id"], :name => "index_agreement_reln_types_on_parent_id"
|
99
|
-
add_index "agreement_reln_types", ["valid_from_role_type_id"], :name => "index_agreement_reln_types_on_valid_from_role_type_id"
|
100
|
-
add_index "agreement_reln_types", ["valid_to_role_type_id"], :name => "index_agreement_reln_types_on_valid_to_role_type_id"
|
101
|
-
|
102
|
-
create_table "agreement_role_types", :force => true do |t|
|
103
|
-
t.integer "parent_id"
|
104
|
-
t.integer "lft"
|
105
|
-
t.integer "rgt"
|
106
|
-
t.string "description"
|
107
|
-
t.string "comments"
|
108
|
-
t.string "internal_identifier"
|
109
|
-
t.string "external_identifier"
|
110
|
-
t.string "external_id_source"
|
111
|
-
t.datetime "created_at", :null => false
|
112
|
-
t.datetime "updated_at", :null => false
|
113
|
-
end
|
114
|
-
|
115
|
-
add_index "agreement_role_types", ["parent_id"], :name => "index_agreement_role_types_on_parent_id"
|
116
|
-
|
117
|
-
create_table "agreement_types", :force => true do |t|
|
118
|
-
t.integer "parent_id"
|
119
|
-
t.integer "lft"
|
120
|
-
t.integer "rgt"
|
121
|
-
t.string "description"
|
122
|
-
t.string "comments"
|
123
|
-
t.string "internal_identifier"
|
124
|
-
t.string "external_identifier"
|
125
|
-
t.string "external_id_source"
|
126
|
-
t.datetime "created_at", :null => false
|
127
|
-
t.datetime "updated_at", :null => false
|
128
|
-
end
|
129
|
-
|
130
|
-
add_index "agreement_types", ["parent_id"], :name => "index_agreement_types_on_parent_id"
|
131
|
-
|
132
|
-
create_table "agreements", :force => true do |t|
|
133
|
-
t.string "description"
|
134
|
-
t.integer "agreement_type_id"
|
135
|
-
t.string "agreement_status"
|
136
|
-
t.integer "product_id"
|
137
|
-
t.date "agreement_date"
|
138
|
-
t.date "from_date"
|
139
|
-
t.date "thru_date"
|
140
|
-
t.string "external_identifier"
|
141
|
-
t.string "external_id_source"
|
142
|
-
t.datetime "created_at", :null => false
|
143
|
-
t.datetime "updated_at", :null => false
|
144
|
-
end
|
145
|
-
|
146
|
-
add_index "agreements", ["agreement_type_id"], :name => "index_agreements_on_agreement_type_id"
|
147
|
-
add_index "agreements", ["product_id"], :name => "index_agreements_on_product_id"
|
148
|
-
|
149
|
-
create_table "app_containers", :force => true do |t|
|
150
|
-
t.integer "user_id"
|
151
|
-
t.string "description"
|
152
|
-
t.string "internal_identifier"
|
153
|
-
t.string "type"
|
154
|
-
t.datetime "created_at", :null => false
|
155
|
-
t.datetime "updated_at", :null => false
|
156
|
-
end
|
157
|
-
|
158
|
-
add_index "app_containers", ["type"], :name => "index_app_containers_on_type"
|
159
|
-
add_index "app_containers", ["user_id"], :name => "index_app_containers_on_user_id"
|
160
|
-
|
161
|
-
create_table "app_containers_applications", :id => false, :force => true do |t|
|
162
|
-
t.integer "app_container_id"
|
163
|
-
t.integer "application_id"
|
164
|
-
end
|
165
|
-
|
166
|
-
add_index "app_containers_applications", ["app_container_id"], :name => "index_app_containers_applications_on_app_container_id"
|
167
|
-
add_index "app_containers_applications", ["application_id"], :name => "index_app_containers_applications_on_application_id"
|
168
|
-
|
169
|
-
create_table "applications", :force => true do |t|
|
170
|
-
t.string "description"
|
171
|
-
t.string "icon"
|
172
|
-
t.string "internal_identifier"
|
173
|
-
t.string "javascript_class_name"
|
174
|
-
t.string "shortcut_id"
|
175
|
-
t.string "xtype"
|
176
|
-
t.string "type"
|
177
|
-
t.datetime "created_at", :null => false
|
178
|
-
t.datetime "updated_at", :null => false
|
179
|
-
end
|
180
|
-
|
181
|
-
create_table "applications_widgets", :id => false, :force => true do |t|
|
182
|
-
t.integer "application_id"
|
183
|
-
t.integer "widget_id"
|
184
|
-
end
|
185
|
-
|
186
|
-
add_index "applications_widgets", ["application_id"], :name => "index_applications_widgets_on_application_id"
|
187
|
-
add_index "applications_widgets", ["widget_id"], :name => "index_applications_widgets_on_widget_id"
|
188
|
-
|
189
|
-
create_table "attribute_types", :force => true do |t|
|
190
|
-
t.string "internal_identifier"
|
191
|
-
t.string "description"
|
192
|
-
t.string "data_type"
|
193
|
-
t.datetime "created_at", :null => false
|
194
|
-
t.datetime "updated_at", :null => false
|
195
|
-
end
|
196
|
-
|
197
|
-
add_index "attribute_types", ["internal_identifier"], :name => ":attribute_types_iid_idx"
|
198
|
-
|
199
|
-
create_table "attribute_values", :force => true do |t|
|
200
|
-
t.integer "attributed_record_id"
|
201
|
-
t.string "attributed_record_type"
|
202
|
-
t.integer "attribute_type_id"
|
203
|
-
t.string "value"
|
204
|
-
t.datetime "created_at", :null => false
|
205
|
-
t.datetime "updated_at", :null => false
|
206
|
-
end
|
207
|
-
|
208
|
-
add_index "attribute_values", ["attribute_type_id"], :name => "attribute_values_attributed_type_idx"
|
209
|
-
add_index "attribute_values", ["attributed_record_id", "attributed_record_type"], :name => "attribute_values_attributed_record_idx"
|
210
|
-
add_index "attribute_values", ["value"], :name => "attribute_values_value_idx"
|
211
|
-
|
212
|
-
create_table "audit_log_item_types", :force => true do |t|
|
213
|
-
t.string "internal_identifier"
|
214
|
-
t.string "external_identifier"
|
215
|
-
t.string "external_id_source"
|
216
|
-
t.string "description"
|
217
|
-
t.string "comments"
|
218
|
-
t.integer "parent_id"
|
219
|
-
t.integer "lft"
|
220
|
-
t.integer "rgt"
|
221
|
-
t.datetime "created_at", :null => false
|
222
|
-
t.datetime "updated_at", :null => false
|
223
|
-
end
|
224
|
-
|
225
|
-
create_table "audit_log_items", :force => true do |t|
|
226
|
-
t.integer "audit_log_id"
|
227
|
-
t.integer "audit_log_item_type_id"
|
228
|
-
t.string "audit_log_item_value"
|
229
|
-
t.string "description"
|
230
|
-
t.datetime "created_at", :null => false
|
231
|
-
t.datetime "updated_at", :null => false
|
232
|
-
end
|
233
|
-
|
234
|
-
create_table "audit_log_types", :force => true do |t|
|
235
|
-
t.string "description"
|
236
|
-
t.string "error_code"
|
237
|
-
t.string "comments"
|
238
|
-
t.string "internal_identifier"
|
239
|
-
t.string "external_identifier"
|
240
|
-
t.string "external_id_source"
|
241
|
-
t.integer "parent_id"
|
242
|
-
t.integer "lft"
|
243
|
-
t.integer "rgt"
|
244
|
-
t.datetime "created_at", :null => false
|
245
|
-
t.datetime "updated_at", :null => false
|
246
|
-
end
|
247
|
-
|
248
|
-
create_table "audit_logs", :force => true do |t|
|
249
|
-
t.string "application"
|
250
|
-
t.string "description"
|
251
|
-
t.integer "party_id"
|
252
|
-
t.text "additional_info"
|
253
|
-
t.integer "audit_log_type_id"
|
254
|
-
t.integer "event_record_id"
|
255
|
-
t.string "event_record_type"
|
256
|
-
t.datetime "created_at", :null => false
|
257
|
-
t.datetime "updated_at", :null => false
|
258
|
-
end
|
259
|
-
|
260
|
-
add_index "audit_logs", ["event_record_id", "event_record_type"], :name => "event_record_index"
|
261
|
-
add_index "audit_logs", ["party_id"], :name => "index_audit_logs_on_party_id"
|
262
|
-
|
263
|
-
create_table "bank_account_types", :force => true do |t|
|
264
|
-
t.string "description"
|
265
|
-
t.string "internal_identifier"
|
266
|
-
t.datetime "created_at", :null => false
|
267
|
-
t.datetime "updated_at", :null => false
|
268
|
-
end
|
269
|
-
|
270
|
-
create_table "bank_accounts", :force => true do |t|
|
271
|
-
t.string "routing_number"
|
272
|
-
t.string "crypted_private_account_number"
|
273
|
-
t.string "name_on_account"
|
274
|
-
t.integer "bank_account_type_id"
|
275
|
-
t.datetime "created_at", :null => false
|
276
|
-
t.datetime "updated_at", :null => false
|
277
|
-
end
|
278
|
-
|
279
|
-
add_index "bank_accounts", ["bank_account_type_id"], :name => "bank_accounts_account_type_idx"
|
280
|
-
|
281
|
-
create_table "base_txn_contexts", :force => true do |t|
|
282
|
-
t.integer "biz_txn_event_id"
|
283
|
-
t.integer "txn_context_record_id"
|
284
|
-
t.string "txn_context_record_type"
|
285
|
-
t.datetime "created_at", :null => false
|
286
|
-
t.datetime "updated_at", :null => false
|
287
|
-
end
|
288
|
-
|
289
|
-
add_index "base_txn_contexts", ["txn_context_record_id", "txn_context_record_type"], :name => "txn_context_record_idx"
|
290
|
-
|
291
|
-
create_table "biz_acct_txn_tasks", :force => true do |t|
|
292
|
-
t.integer "biz_txn_task_id"
|
293
|
-
t.integer "biz_txn_account_id"
|
294
|
-
t.string "description"
|
295
|
-
t.string "comments"
|
296
|
-
t.datetime "entered_date"
|
297
|
-
t.datetime "requested_date"
|
298
|
-
t.datetime "created_at", :null => false
|
299
|
-
t.datetime "updated_at", :null => false
|
300
|
-
end
|
301
|
-
|
302
|
-
add_index "biz_acct_txn_tasks", ["biz_txn_account_id"], :name => "index_biz_acct_txn_tasks_on_biz_txn_account_id"
|
303
|
-
add_index "biz_acct_txn_tasks", ["biz_txn_task_id"], :name => "index_biz_acct_txn_tasks_on_biz_txn_task_id"
|
304
|
-
|
305
|
-
create_table "biz_txn_acct_party_roles", :force => true do |t|
|
306
|
-
t.string "description"
|
307
|
-
t.integer "biz_txn_acct_root_id"
|
308
|
-
t.integer "party_id"
|
309
|
-
t.integer "biz_txn_acct_pty_rtype_id"
|
310
|
-
t.integer "is_default_billing_acct_flag"
|
311
|
-
t.datetime "created_at", :null => false
|
312
|
-
t.datetime "updated_at", :null => false
|
313
|
-
end
|
314
|
-
|
315
|
-
add_index "biz_txn_acct_party_roles", ["biz_txn_acct_pty_rtype_id"], :name => "index_biz_txn_acct_party_roles_on_biz_txn_acct_pty_rtype_id"
|
316
|
-
add_index "biz_txn_acct_party_roles", ["biz_txn_acct_root_id"], :name => "index_biz_txn_acct_party_roles_on_biz_txn_acct_root_id"
|
317
|
-
add_index "biz_txn_acct_party_roles", ["party_id"], :name => "index_biz_txn_acct_party_roles_on_party_id"
|
318
|
-
|
319
|
-
create_table "biz_txn_acct_pty_rtypes", :force => true do |t|
|
320
|
-
t.integer "parent_id"
|
321
|
-
t.integer "lft"
|
322
|
-
t.integer "rgt"
|
323
|
-
t.string "description"
|
324
|
-
t.string "comments"
|
325
|
-
t.string "internal_identifier"
|
326
|
-
t.string "external_identifier"
|
327
|
-
t.string "external_id_source"
|
328
|
-
t.datetime "created_at", :null => false
|
329
|
-
t.datetime "updated_at", :null => false
|
330
|
-
end
|
331
|
-
|
332
|
-
add_index "biz_txn_acct_pty_rtypes", ["parent_id"], :name => "index_biz_txn_acct_pty_rtypes_on_parent_id"
|
333
|
-
|
334
|
-
create_table "biz_txn_acct_rel_types", :force => true do |t|
|
335
|
-
t.integer "parent_id"
|
336
|
-
t.integer "lft"
|
337
|
-
t.integer "rgt"
|
338
|
-
t.string "description"
|
339
|
-
t.string "comments"
|
340
|
-
t.string "internal_identifier"
|
341
|
-
t.string "external_identifier"
|
342
|
-
t.string "external_id_source"
|
343
|
-
t.datetime "created_at", :null => false
|
344
|
-
t.datetime "updated_at", :null => false
|
345
|
-
end
|
346
|
-
|
347
|
-
add_index "biz_txn_acct_rel_types", ["parent_id"], :name => "index_biz_txn_acct_rel_types_on_parent_id"
|
348
|
-
|
349
|
-
create_table "biz_txn_acct_relationships", :force => true do |t|
|
350
|
-
t.integer "biz_txn_acct_rel_type_id"
|
351
|
-
t.string "description"
|
352
|
-
t.integer "biz_txn_acct_root_id_from"
|
353
|
-
t.integer "biz_txn_acct_root_id_to"
|
354
|
-
t.integer "status_type_id"
|
355
|
-
t.date "from_date"
|
356
|
-
t.date "thru_date"
|
357
|
-
t.datetime "created_at", :null => false
|
358
|
-
t.datetime "updated_at", :null => false
|
359
|
-
end
|
360
|
-
|
361
|
-
add_index "biz_txn_acct_relationships", ["biz_txn_acct_rel_type_id"], :name => "index_biz_txn_acct_relationships_on_biz_txn_acct_rel_type_id"
|
362
|
-
add_index "biz_txn_acct_relationships", ["status_type_id"], :name => "index_biz_txn_acct_relationships_on_status_type_id"
|
363
|
-
|
364
|
-
create_table "biz_txn_acct_roots", :force => true do |t|
|
365
|
-
t.string "description"
|
366
|
-
t.integer "status"
|
367
|
-
t.integer "biz_txn_acct_id"
|
368
|
-
t.string "biz_txn_acct_type"
|
369
|
-
t.string "external_identifier"
|
370
|
-
t.string "external_id_source"
|
371
|
-
t.string "type"
|
372
|
-
t.datetime "created_at", :null => false
|
373
|
-
t.datetime "updated_at", :null => false
|
374
|
-
t.integer "biz_txn_acct_type_id"
|
375
|
-
end
|
376
|
-
|
377
|
-
add_index "biz_txn_acct_roots", ["biz_txn_acct_id", "biz_txn_acct_type"], :name => "btai_2"
|
378
|
-
|
379
|
-
create_table "biz_txn_acct_status_types", :force => true do |t|
|
380
|
-
t.datetime "created_at", :null => false
|
381
|
-
t.datetime "updated_at", :null => false
|
382
|
-
end
|
383
|
-
|
384
|
-
create_table "biz_txn_acct_statuses", :force => true do |t|
|
385
|
-
t.datetime "created_at", :null => false
|
386
|
-
t.datetime "updated_at", :null => false
|
387
|
-
end
|
388
|
-
|
389
|
-
create_table "biz_txn_acct_types", :force => true do |t|
|
390
|
-
t.integer "parent_id"
|
391
|
-
t.integer "lft"
|
392
|
-
t.integer "rgt"
|
393
|
-
t.string "description"
|
394
|
-
t.string "comments"
|
395
|
-
t.string "internal_identifier"
|
396
|
-
t.string "external_identifier"
|
397
|
-
t.string "external_id_source"
|
398
|
-
t.datetime "created_at", :null => false
|
399
|
-
t.datetime "updated_at", :null => false
|
400
|
-
end
|
401
|
-
|
402
|
-
add_index "biz_txn_acct_types", ["parent_id"], :name => "index_biz_txn_acct_types_on_parent_id"
|
403
|
-
|
404
|
-
create_table "biz_txn_agreement_role_types", :force => true do |t|
|
405
|
-
t.integer "parent_id"
|
406
|
-
t.integer "lft"
|
407
|
-
t.integer "rgt"
|
408
|
-
t.string "description"
|
409
|
-
t.string "comments"
|
410
|
-
t.string "internal_identifier"
|
411
|
-
t.datetime "created_at", :null => false
|
412
|
-
t.datetime "updated_at", :null => false
|
413
|
-
end
|
414
|
-
|
415
|
-
add_index "biz_txn_agreement_role_types", ["parent_id"], :name => "index_biz_txn_agreement_role_types_on_parent_id"
|
416
|
-
|
417
|
-
create_table "biz_txn_agreement_roles", :force => true do |t|
|
418
|
-
t.integer "biz_txn_event_id"
|
419
|
-
t.string "biz_txn_event_type"
|
420
|
-
t.integer "agreement_id"
|
421
|
-
t.integer "biz_txn_agreement_role_type_id"
|
422
|
-
t.datetime "created_at", :null => false
|
423
|
-
t.datetime "updated_at", :null => false
|
424
|
-
end
|
425
|
-
|
426
|
-
add_index "biz_txn_agreement_roles", ["agreement_id"], :name => "index_biz_txn_agreement_roles_on_agreement_id"
|
427
|
-
add_index "biz_txn_agreement_roles", ["biz_txn_agreement_role_type_id"], :name => "index_biz_txn_agreement_roles_on_biz_txn_agreement_role_type_id"
|
428
|
-
|
429
|
-
create_table "biz_txn_event_descs", :force => true do |t|
|
430
|
-
t.integer "biz_txn_event_id"
|
431
|
-
t.integer "language_id"
|
432
|
-
t.integer "locale_id"
|
433
|
-
t.integer "priority"
|
434
|
-
t.integer "sequence"
|
435
|
-
t.string "short_description"
|
436
|
-
t.string "long_description"
|
437
|
-
t.datetime "created_at", :null => false
|
438
|
-
t.datetime "updated_at", :null => false
|
439
|
-
end
|
440
|
-
|
441
|
-
add_index "biz_txn_event_descs", ["biz_txn_event_id"], :name => "index_biz_txn_event_descs_on_biz_txn_event_id"
|
442
|
-
add_index "biz_txn_event_descs", ["language_id"], :name => "index_biz_txn_event_descs_on_language_id"
|
443
|
-
add_index "biz_txn_event_descs", ["locale_id"], :name => "index_biz_txn_event_descs_on_locale_id"
|
444
|
-
|
445
|
-
create_table "biz_txn_events", :force => true do |t|
|
446
|
-
t.string "description"
|
447
|
-
t.integer "biz_txn_acct_root_id"
|
448
|
-
t.integer "biz_txn_type_id"
|
449
|
-
t.datetime "entered_date"
|
450
|
-
t.datetime "post_date"
|
451
|
-
t.integer "biz_txn_record_id"
|
452
|
-
t.string "biz_txn_record_type"
|
453
|
-
t.string "external_identifier"
|
454
|
-
t.string "external_id_source"
|
455
|
-
t.datetime "created_at", :null => false
|
456
|
-
t.datetime "updated_at", :null => false
|
457
|
-
end
|
458
|
-
|
459
|
-
add_index "biz_txn_events", ["biz_txn_acct_root_id"], :name => "index_biz_txn_events_on_biz_txn_acct_root_id"
|
460
|
-
add_index "biz_txn_events", ["biz_txn_record_id", "biz_txn_record_type"], :name => "btai_1"
|
461
|
-
add_index "biz_txn_events", ["biz_txn_type_id"], :name => "index_biz_txn_events_on_biz_txn_type_id"
|
462
|
-
|
463
|
-
create_table "biz_txn_party_role_types", :force => true do |t|
|
464
|
-
t.integer "parent_id"
|
465
|
-
t.integer "lft"
|
466
|
-
t.integer "rgt"
|
467
|
-
t.string "description"
|
468
|
-
t.string "comments"
|
469
|
-
t.string "internal_identifier"
|
470
|
-
t.datetime "created_at", :null => false
|
471
|
-
t.datetime "updated_at", :null => false
|
472
|
-
end
|
473
|
-
|
474
|
-
add_index "biz_txn_party_role_types", ["parent_id"], :name => "index_biz_txn_party_role_types_on_parent_id"
|
475
|
-
|
476
|
-
create_table "biz_txn_party_roles", :force => true do |t|
|
477
|
-
t.integer "biz_txn_event_id"
|
478
|
-
t.integer "party_id"
|
479
|
-
t.integer "biz_txn_party_role_type_id"
|
480
|
-
t.datetime "created_at", :null => false
|
481
|
-
t.datetime "updated_at", :null => false
|
482
|
-
end
|
483
|
-
|
484
|
-
add_index "biz_txn_party_roles", ["biz_txn_event_id"], :name => "index_biz_txn_party_roles_on_biz_txn_event_id"
|
485
|
-
add_index "biz_txn_party_roles", ["biz_txn_party_role_type_id"], :name => "index_biz_txn_party_roles_on_biz_txn_party_role_type_id"
|
486
|
-
add_index "biz_txn_party_roles", ["party_id"], :name => "index_biz_txn_party_roles_on_party_id"
|
487
|
-
|
488
|
-
create_table "biz_txn_rel_types", :force => true do |t|
|
489
|
-
t.integer "parent_id"
|
490
|
-
t.integer "lft"
|
491
|
-
t.integer "rgt"
|
492
|
-
t.string "description"
|
493
|
-
t.string "comments"
|
494
|
-
t.string "internal_identifier"
|
495
|
-
t.string "external_identifier"
|
496
|
-
t.string "external_id_source"
|
497
|
-
t.datetime "created_at", :null => false
|
498
|
-
t.datetime "updated_at", :null => false
|
499
|
-
end
|
500
|
-
|
501
|
-
add_index "biz_txn_rel_types", ["parent_id"], :name => "index_biz_txn_rel_types_on_parent_id"
|
502
|
-
|
503
|
-
create_table "biz_txn_relationships", :force => true do |t|
|
504
|
-
t.integer "biz_txn_rel_type_id"
|
505
|
-
t.string "description"
|
506
|
-
t.integer "txn_event_id_from"
|
507
|
-
t.integer "txn_event_id_to"
|
508
|
-
t.integer "status_type_id"
|
509
|
-
t.date "from_date"
|
510
|
-
t.date "thru_date"
|
511
|
-
t.datetime "created_at", :null => false
|
512
|
-
t.datetime "updated_at", :null => false
|
513
|
-
end
|
514
|
-
|
515
|
-
add_index "biz_txn_relationships", ["biz_txn_rel_type_id"], :name => "index_biz_txn_relationships_on_biz_txn_rel_type_id"
|
516
|
-
add_index "biz_txn_relationships", ["status_type_id"], :name => "index_biz_txn_relationships_on_status_type_id"
|
517
|
-
|
518
|
-
create_table "biz_txn_statuses", :force => true do |t|
|
519
|
-
t.string "description"
|
520
|
-
t.string "comments"
|
521
|
-
t.datetime "created_at", :null => false
|
522
|
-
t.datetime "updated_at", :null => false
|
523
|
-
end
|
524
|
-
|
525
|
-
create_table "biz_txn_task_types", :force => true do |t|
|
526
|
-
t.integer "parent_id"
|
527
|
-
t.integer "lft"
|
528
|
-
t.integer "rgt"
|
529
|
-
t.string "description"
|
530
|
-
t.string "comments"
|
531
|
-
t.datetime "created_at", :null => false
|
532
|
-
t.datetime "updated_at", :null => false
|
533
|
-
end
|
534
|
-
|
535
|
-
add_index "biz_txn_task_types", ["parent_id"], :name => "index_biz_txn_task_types_on_parent_id"
|
536
|
-
|
537
|
-
create_table "biz_txn_tasks", :force => true do |t|
|
538
|
-
t.string "description"
|
539
|
-
t.datetime "created_at", :null => false
|
540
|
-
t.datetime "updated_at", :null => false
|
541
|
-
end
|
542
|
-
|
543
|
-
create_table "biz_txn_types", :force => true do |t|
|
544
|
-
t.integer "parent_id"
|
545
|
-
t.integer "lft"
|
546
|
-
t.integer "rgt"
|
547
|
-
t.string "description"
|
548
|
-
t.string "comments"
|
549
|
-
t.string "internal_identifier"
|
550
|
-
t.string "external_identifier"
|
551
|
-
t.string "external_id_source"
|
552
|
-
t.datetime "created_at", :null => false
|
553
|
-
t.datetime "updated_at", :null => false
|
554
|
-
end
|
555
|
-
|
556
|
-
add_index "biz_txn_types", ["parent_id", "lft", "rgt"], :name => "biz_txn_type_nested_set_idx"
|
557
|
-
|
558
|
-
create_table "capabilities", :force => true do |t|
|
559
|
-
t.string "description"
|
560
|
-
t.integer "capability_type_id"
|
561
|
-
t.string "capability_resource_type"
|
562
|
-
t.integer "capability_resource_id"
|
563
|
-
t.integer "scope_type_id"
|
564
|
-
t.text "scope_query"
|
565
|
-
t.datetime "created_at", :null => false
|
566
|
-
t.datetime "updated_at", :null => false
|
567
|
-
end
|
568
|
-
|
569
|
-
add_index "capabilities", ["capability_resource_id", "capability_resource_type"], :name => "capability_resource_index"
|
570
|
-
add_index "capabilities", ["capability_type_id"], :name => "index_capabilities_on_capability_type_id"
|
571
|
-
add_index "capabilities", ["scope_type_id"], :name => "index_capabilities_on_scope_type_id"
|
572
|
-
|
573
|
-
create_table "capability_accessors", :force => true do |t|
|
574
|
-
t.string "capability_accessor_record_type"
|
575
|
-
t.integer "capability_accessor_record_id"
|
576
|
-
t.integer "capability_id"
|
577
|
-
t.datetime "created_at", :null => false
|
578
|
-
t.datetime "updated_at", :null => false
|
579
|
-
end
|
580
|
-
|
581
|
-
add_index "capability_accessors", ["capability_accessor_record_id", "capability_accessor_record_type"], :name => "capability_accessor_record_index"
|
582
|
-
add_index "capability_accessors", ["capability_id"], :name => "index_capability_accessors_on_capability_id"
|
583
|
-
|
584
|
-
create_table "capability_types", :force => true do |t|
|
585
|
-
t.string "internal_identifier"
|
586
|
-
t.string "description"
|
587
|
-
t.datetime "created_at", :null => false
|
588
|
-
t.datetime "updated_at", :null => false
|
589
|
-
end
|
590
|
-
|
591
|
-
create_table "capable_models", :force => true do |t|
|
592
|
-
t.integer "capable_model_record_id"
|
593
|
-
t.string "capable_model_record_type"
|
594
|
-
t.datetime "created_at", :null => false
|
595
|
-
t.datetime "updated_at", :null => false
|
596
|
-
end
|
597
|
-
|
598
|
-
add_index "capable_models", ["capable_model_record_id", "capable_model_record_type"], :name => "capable_model_record_idx"
|
599
|
-
|
600
|
-
create_table "categories", :force => true do |t|
|
601
|
-
t.string "description"
|
602
|
-
t.string "external_identifier"
|
603
|
-
t.datetime "from_date"
|
604
|
-
t.datetime "to_date"
|
605
|
-
t.string "internal_identifier"
|
606
|
-
t.integer "category_record_id"
|
607
|
-
t.string "category_record_type"
|
608
|
-
t.integer "parent_id"
|
609
|
-
t.integer "lft"
|
610
|
-
t.integer "rgt"
|
611
|
-
t.datetime "created_at", :null => false
|
612
|
-
t.datetime "updated_at", :null => false
|
613
|
-
end
|
614
|
-
|
615
|
-
add_index "categories", ["category_record_id", "category_record_type"], :name => "category_polymorphic"
|
616
|
-
|
617
|
-
create_table "category_classifications", :force => true do |t|
|
618
|
-
t.integer "category_id"
|
619
|
-
t.string "classification_type"
|
620
|
-
t.integer "classification_id"
|
621
|
-
t.datetime "from_date"
|
622
|
-
t.datetime "to_date"
|
623
|
-
t.datetime "created_at", :null => false
|
624
|
-
t.datetime "updated_at", :null => false
|
625
|
-
end
|
626
|
-
|
627
|
-
add_index "category_classifications", ["classification_id", "classification_type"], :name => "classification_polymorphic"
|
628
|
-
|
629
|
-
create_table "charge_line_payment_txns", :force => true do |t|
|
630
|
-
t.integer "charge_line_id"
|
631
|
-
t.integer "payment_txn_id"
|
632
|
-
t.string "payment_txn_type"
|
633
|
-
t.datetime "created_at", :null => false
|
634
|
-
t.datetime "updated_at", :null => false
|
635
|
-
end
|
636
|
-
|
637
|
-
add_index "charge_line_payment_txns", ["charge_line_id"], :name => "index_charge_line_payment_txns_on_charge_line_id"
|
638
|
-
add_index "charge_line_payment_txns", ["payment_txn_id", "payment_txn_type"], :name => "payment_txn_idx"
|
639
|
-
|
640
|
-
create_table "charge_lines", :force => true do |t|
|
641
|
-
t.string "sti_type"
|
642
|
-
t.integer "money_id"
|
643
|
-
t.string "description"
|
644
|
-
t.string "external_identifier"
|
645
|
-
t.string "external_id_source"
|
646
|
-
t.integer "charged_item_id"
|
647
|
-
t.string "charged_item_type"
|
648
|
-
t.datetime "created_at", :null => false
|
649
|
-
t.datetime "updated_at", :null => false
|
650
|
-
end
|
651
|
-
|
652
|
-
add_index "charge_lines", ["charged_item_id", "charged_item_type"], :name => "charged_item_idx"
|
653
|
-
|
654
|
-
create_table "compass_ae_instance_party_roles", :force => true do |t|
|
655
|
-
t.string "description"
|
656
|
-
t.integer "compass_ae_instance_id"
|
657
|
-
t.integer "party_id"
|
658
|
-
t.integer "role_type_id"
|
659
|
-
t.datetime "created_at", :null => false
|
660
|
-
t.datetime "updated_at", :null => false
|
661
|
-
end
|
662
|
-
|
663
|
-
add_index "compass_ae_instance_party_roles", ["compass_ae_instance_id"], :name => "compass_ae_instance_id_idx"
|
664
|
-
add_index "compass_ae_instance_party_roles", ["party_id"], :name => "party_id_idx"
|
665
|
-
add_index "compass_ae_instance_party_roles", ["role_type_id"], :name => "role_type_id_idx"
|
666
|
-
|
667
|
-
create_table "compass_ae_instances", :force => true do |t|
|
668
|
-
t.decimal "version", :precision => 8, :scale => 3
|
669
|
-
t.datetime "created_at", :null => false
|
670
|
-
t.datetime "updated_at", :null => false
|
671
|
-
t.string "description"
|
672
|
-
t.string "internal_identifier"
|
673
|
-
t.string "type"
|
674
|
-
t.string "schema", :default => "public"
|
675
|
-
t.integer "parent_id"
|
676
|
-
t.string "guid"
|
677
|
-
end
|
678
|
-
|
679
|
-
add_index "compass_ae_instances", ["guid"], :name => "guid_idx"
|
680
|
-
add_index "compass_ae_instances", ["internal_identifier"], :name => "iid_idx"
|
681
|
-
add_index "compass_ae_instances", ["parent_id"], :name => "parent_id_idx"
|
682
|
-
add_index "compass_ae_instances", ["schema"], :name => "schema_idx"
|
683
|
-
add_index "compass_ae_instances", ["type"], :name => "type_idx"
|
684
|
-
|
685
|
-
create_table "configuration_item_types", :force => true do |t|
|
686
|
-
t.integer "parent_id"
|
687
|
-
t.integer "lft"
|
688
|
-
t.integer "rgt"
|
689
|
-
t.string "description"
|
690
|
-
t.string "internal_identifier"
|
691
|
-
t.boolean "allow_user_defined_options", :default => false
|
692
|
-
t.boolean "is_multi_optional", :default => false
|
693
|
-
t.datetime "created_at", :null => false
|
694
|
-
t.datetime "updated_at", :null => false
|
695
|
-
end
|
696
|
-
|
697
|
-
create_table "configuration_item_types_configuration_options", :force => true do |t|
|
698
|
-
t.integer "configuration_item_type_id"
|
699
|
-
t.integer "configuration_option_id"
|
700
|
-
t.boolean "is_default", :default => false
|
701
|
-
t.datetime "created_at", :null => false
|
702
|
-
t.datetime "updated_at", :null => false
|
703
|
-
end
|
704
|
-
|
705
|
-
add_index "configuration_item_types_configuration_options", ["configuration_item_type_id"], :name => "conf_item_type_conf_opt_id_item_idx"
|
706
|
-
add_index "configuration_item_types_configuration_options", ["configuration_option_id"], :name => "conf_item_type_conf_opt_id_opt_idx"
|
707
|
-
|
708
|
-
create_table "configuration_item_types_configurations", :id => false, :force => true do |t|
|
709
|
-
t.integer "configuration_item_type_id"
|
710
|
-
t.integer "configuration_id"
|
711
|
-
end
|
712
|
-
|
713
|
-
add_index "configuration_item_types_configurations", ["configuration_id"], :name => "conf_id_idx"
|
714
|
-
add_index "configuration_item_types_configurations", ["configuration_item_type_id", "configuration_id"], :name => "conf_config_type_uniq_idx", :unique => true
|
715
|
-
add_index "configuration_item_types_configurations", ["configuration_item_type_id"], :name => "conf_conf_type_id_item_idx"
|
716
|
-
|
717
|
-
create_table "configuration_items", :force => true do |t|
|
718
|
-
t.integer "configuration_id"
|
719
|
-
t.integer "configuration_item_type_id"
|
720
|
-
t.integer "configuration_option_id"
|
721
|
-
t.datetime "created_at", :null => false
|
722
|
-
t.datetime "updated_at", :null => false
|
723
|
-
end
|
724
|
-
|
725
|
-
add_index "configuration_items", ["configuration_id"], :name => "index_configuration_items_on_configuration_id"
|
726
|
-
add_index "configuration_items", ["configuration_item_type_id"], :name => "index_configuration_items_on_configuration_item_type_id"
|
727
|
-
add_index "configuration_items", ["configuration_option_id"], :name => "index_configuration_items_on_configuration_option_id"
|
728
|
-
|
729
|
-
create_table "configuration_items_configuration_options", :id => false, :force => true do |t|
|
730
|
-
t.integer "configuration_item_id"
|
731
|
-
t.integer "configuration_option_id"
|
732
|
-
end
|
733
|
-
|
734
|
-
add_index "configuration_items_configuration_options", ["configuration_item_id"], :name => "conf_item_conf_opt_id_item_idx"
|
735
|
-
add_index "configuration_items_configuration_options", ["configuration_option_id"], :name => "conf_item_conf_opt_id_opt_idx"
|
736
|
-
|
737
|
-
create_table "configuration_options", :force => true do |t|
|
738
|
-
t.string "description"
|
739
|
-
t.string "internal_identifier"
|
740
|
-
t.string "value"
|
741
|
-
t.text "comment"
|
742
|
-
t.boolean "user_defined", :default => false
|
743
|
-
t.datetime "created_at", :null => false
|
744
|
-
t.datetime "updated_at", :null => false
|
745
|
-
end
|
746
|
-
|
747
|
-
add_index "configuration_options", ["internal_identifier"], :name => "index_configuration_options_on_internal_identifier"
|
748
|
-
add_index "configuration_options", ["user_defined"], :name => "index_configuration_options_on_user_defined"
|
749
|
-
add_index "configuration_options", ["value"], :name => "index_configuration_options_on_value"
|
750
|
-
|
751
|
-
create_table "configurations", :force => true do |t|
|
752
|
-
t.string "description"
|
753
|
-
t.string "internal_identifier"
|
754
|
-
t.boolean "active"
|
755
|
-
t.boolean "is_template", :default => false
|
756
|
-
t.datetime "created_at", :null => false
|
757
|
-
t.datetime "updated_at", :null => false
|
758
|
-
end
|
759
|
-
|
760
|
-
add_index "configurations", ["is_template"], :name => "index_configurations_on_is_template"
|
761
|
-
|
762
|
-
create_table "contact_purposes", :force => true do |t|
|
763
|
-
t.integer "parent_id"
|
764
|
-
t.integer "lft"
|
765
|
-
t.integer "rgt"
|
766
|
-
t.string "description"
|
767
|
-
t.string "comments"
|
768
|
-
t.string "internal_identifier"
|
769
|
-
t.string "external_identifier"
|
770
|
-
t.string "external_id_source"
|
771
|
-
t.datetime "created_at", :null => false
|
772
|
-
t.datetime "updated_at", :null => false
|
773
|
-
end
|
774
|
-
|
775
|
-
add_index "contact_purposes", ["parent_id"], :name => "index_contact_purposes_on_parent_id"
|
776
|
-
|
777
|
-
create_table "contact_purposes_contacts", :id => false, :force => true do |t|
|
778
|
-
t.integer "contact_id"
|
779
|
-
t.integer "contact_purpose_id"
|
780
|
-
end
|
781
|
-
|
782
|
-
add_index "contact_purposes_contacts", ["contact_id", "contact_purpose_id"], :name => "contact_purposes_contacts_index"
|
783
|
-
|
784
|
-
create_table "contact_types", :force => true do |t|
|
785
|
-
t.integer "parent_id"
|
786
|
-
t.integer "lft"
|
787
|
-
t.integer "rgt"
|
788
|
-
t.string "description"
|
789
|
-
t.string "comments"
|
790
|
-
t.string "internal_identifier"
|
791
|
-
t.string "external_identifier"
|
792
|
-
t.string "external_id_source"
|
793
|
-
t.datetime "created_at", :null => false
|
794
|
-
t.datetime "updated_at", :null => false
|
795
|
-
end
|
796
|
-
|
797
|
-
add_index "contact_types", ["parent_id"], :name => "index_contact_types_on_parent_id"
|
798
|
-
|
799
|
-
create_table "contacts", :force => true do |t|
|
800
|
-
t.integer "party_id"
|
801
|
-
t.integer "contact_mechanism_id"
|
802
|
-
t.string "contact_mechanism_type"
|
803
|
-
t.string "external_identifier"
|
804
|
-
t.string "external_id_source"
|
805
|
-
t.datetime "created_at", :null => false
|
806
|
-
t.datetime "updated_at", :null => false
|
807
|
-
end
|
808
|
-
|
809
|
-
add_index "contacts", ["contact_mechanism_id", "contact_mechanism_type"], :name => "besi_2"
|
810
|
-
add_index "contacts", ["party_id"], :name => "index_contacts_on_party_id"
|
811
|
-
|
812
|
-
create_table "credit_card_account_party_roles", :force => true do |t|
|
813
|
-
t.integer "credit_card_account_id"
|
814
|
-
t.integer "role_type_id"
|
815
|
-
t.integer "party_id"
|
816
|
-
t.integer "credit_card_id"
|
817
|
-
t.datetime "created_at", :null => false
|
818
|
-
t.datetime "updated_at", :null => false
|
819
|
-
end
|
820
|
-
|
821
|
-
add_index "credit_card_account_party_roles", ["credit_card_account_id"], :name => "index_credit_card_account_party_roles_on_credit_card_account_id"
|
822
|
-
add_index "credit_card_account_party_roles", ["credit_card_id"], :name => "index_credit_card_account_party_roles_on_credit_card_id"
|
823
|
-
add_index "credit_card_account_party_roles", ["party_id"], :name => "index_credit_card_account_party_roles_on_party_id"
|
824
|
-
add_index "credit_card_account_party_roles", ["role_type_id"], :name => "index_credit_card_account_party_roles_on_role_type_id"
|
825
|
-
|
826
|
-
create_table "credit_card_account_purposes", :force => true do |t|
|
827
|
-
t.integer "parent_id"
|
828
|
-
t.integer "lft"
|
829
|
-
t.integer "rgt"
|
830
|
-
t.string "description"
|
831
|
-
t.string "comments"
|
832
|
-
t.string "internal_identifier"
|
833
|
-
t.string "external_identifier"
|
834
|
-
t.string "external_id_source"
|
835
|
-
t.datetime "created_at", :null => false
|
836
|
-
t.datetime "updated_at", :null => false
|
837
|
-
end
|
838
|
-
|
839
|
-
create_table "credit_card_accounts", :force => true do |t|
|
840
|
-
t.datetime "created_at", :null => false
|
841
|
-
t.datetime "updated_at", :null => false
|
842
|
-
end
|
843
|
-
|
844
|
-
create_table "credit_cards", :force => true do |t|
|
845
|
-
t.string "crypted_private_card_number"
|
846
|
-
t.integer "expiration_month"
|
847
|
-
t.integer "expiration_year"
|
848
|
-
t.string "description"
|
849
|
-
t.string "first_name_on_card"
|
850
|
-
t.string "last_name_on_card"
|
851
|
-
t.string "card_type"
|
852
|
-
t.integer "postal_address_id"
|
853
|
-
t.integer "credit_card_account_purpose_id"
|
854
|
-
t.string "credit_card_token"
|
855
|
-
t.datetime "created_at", :null => false
|
856
|
-
t.datetime "updated_at", :null => false
|
857
|
-
end
|
858
|
-
|
859
|
-
create_table "currencies", :force => true do |t|
|
860
|
-
t.string "name"
|
861
|
-
t.string "definition"
|
862
|
-
t.string "internal_identifier"
|
863
|
-
t.string "numeric_code"
|
864
|
-
t.string "major_unit_symbol"
|
865
|
-
t.string "minor_unit_symbol"
|
866
|
-
t.string "ratio_of_minor_unit_to_major_unit"
|
867
|
-
t.string "postfix_label"
|
868
|
-
t.datetime "introduction_date"
|
869
|
-
t.datetime "expiration_date"
|
870
|
-
t.datetime "created_at", :null => false
|
871
|
-
t.datetime "updated_at", :null => false
|
872
|
-
end
|
873
|
-
|
874
|
-
add_index "currencies", ["internal_identifier"], :name => "index_currencies_on_internal_identifier"
|
875
|
-
|
876
|
-
create_table "delayed_jobs", :force => true do |t|
|
877
|
-
t.integer "priority", :default => 0
|
878
|
-
t.integer "attempts", :default => 0
|
879
|
-
t.text "handler"
|
880
|
-
t.text "last_error"
|
881
|
-
t.datetime "run_at"
|
882
|
-
t.datetime "locked_at"
|
883
|
-
t.datetime "failed_at"
|
884
|
-
t.string "locked_by"
|
885
|
-
t.string "queue"
|
886
|
-
t.datetime "created_at", :null => false
|
887
|
-
t.datetime "updated_at", :null => false
|
888
|
-
end
|
889
|
-
|
890
|
-
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
|
891
|
-
|
892
|
-
create_table "descriptive_assets", :force => true do |t|
|
893
|
-
t.integer "view_type_id"
|
894
|
-
t.string "internal_identifier"
|
895
|
-
t.text "description"
|
896
|
-
t.string "external_identifier"
|
897
|
-
t.string "external_id_source"
|
898
|
-
t.integer "described_record_id"
|
899
|
-
t.string "described_record_type"
|
900
|
-
t.datetime "created_at", :null => false
|
901
|
-
t.datetime "updated_at", :null => false
|
902
|
-
end
|
903
|
-
|
904
|
-
add_index "descriptive_assets", ["described_record_id", "described_record_type"], :name => "described_record_idx"
|
905
|
-
add_index "descriptive_assets", ["view_type_id"], :name => "index_descriptive_assets_on_view_type_id"
|
906
|
-
|
907
|
-
create_table "email_addresses", :force => true do |t|
|
908
|
-
t.string "email_address"
|
909
|
-
t.string "description"
|
910
|
-
t.datetime "created_at", :null => false
|
911
|
-
t.datetime "updated_at", :null => false
|
912
|
-
end
|
913
|
-
|
914
|
-
create_table "fee_types", :force => true do |t|
|
915
|
-
t.string "internal_identifier"
|
916
|
-
t.string "description"
|
917
|
-
t.string "comments"
|
918
|
-
t.string "external_identifier"
|
919
|
-
t.string "external_id_source"
|
920
|
-
t.integer "parent_id"
|
921
|
-
t.integer "lft"
|
922
|
-
t.integer "rgt"
|
923
|
-
t.datetime "created_at", :null => false
|
924
|
-
t.datetime "updated_at", :null => false
|
925
|
-
end
|
926
|
-
|
927
|
-
create_table "fees", :force => true do |t|
|
928
|
-
t.integer "fee_record_id"
|
929
|
-
t.string "fee_record_type"
|
930
|
-
t.integer "money_id"
|
931
|
-
t.integer "fee_type_id"
|
932
|
-
t.string "description"
|
933
|
-
t.datetime "start_date"
|
934
|
-
t.datetime "end_date"
|
935
|
-
t.string "external_identifier"
|
936
|
-
t.string "external_id_source"
|
937
|
-
t.datetime "created_at", :null => false
|
938
|
-
t.datetime "updated_at", :null => false
|
939
|
-
end
|
940
|
-
|
941
|
-
add_index "fees", ["fee_record_id", "fee_record_type"], :name => "fee_record_idx"
|
942
|
-
add_index "fees", ["fee_type_id"], :name => "index_fees_on_fee_type_id"
|
943
|
-
add_index "fees", ["money_id"], :name => "index_fees_on_money_id"
|
944
|
-
|
945
|
-
create_table "file_assets", :force => true do |t|
|
946
|
-
t.integer "file_asset_holder_id"
|
947
|
-
t.string "file_asset_holder_type"
|
948
|
-
t.string "type"
|
949
|
-
t.string "name"
|
950
|
-
t.string "directory"
|
951
|
-
t.string "data_file_name"
|
952
|
-
t.string "data_content_type"
|
953
|
-
t.integer "data_file_size"
|
954
|
-
t.datetime "data_updated_at"
|
955
|
-
t.string "width"
|
956
|
-
t.string "height"
|
957
|
-
t.datetime "created_at", :null => false
|
958
|
-
t.datetime "updated_at", :null => false
|
959
|
-
end
|
960
|
-
|
961
|
-
add_index "file_assets", ["directory"], :name => "index_file_assets_on_directory"
|
962
|
-
add_index "file_assets", ["file_asset_holder_id", "file_asset_holder_type"], :name => "file_asset_holder_idx"
|
963
|
-
add_index "file_assets", ["name"], :name => "index_file_assets_on_name"
|
964
|
-
add_index "file_assets", ["type"], :name => "index_file_assets_on_type"
|
965
|
-
|
966
|
-
create_table "financial_txn_accounts", :force => true do |t|
|
967
|
-
t.string "account_number"
|
968
|
-
t.integer "agreement_id"
|
969
|
-
t.integer "balance_id"
|
970
|
-
t.date "balance_date"
|
971
|
-
t.boolean "calculate_balance"
|
972
|
-
t.integer "payment_due_id"
|
973
|
-
t.date "due_date"
|
974
|
-
t.integer "financial_account_id"
|
975
|
-
t.string "financial_account_type"
|
976
|
-
t.datetime "created_at", :null => false
|
977
|
-
t.datetime "updated_at", :null => false
|
978
|
-
end
|
979
|
-
|
980
|
-
create_table "financial_txn_assns", :force => true do |t|
|
981
|
-
t.integer "financial_txn_id"
|
982
|
-
t.integer "financial_txn_record_id"
|
983
|
-
t.string "financial_txn_record_type"
|
984
|
-
t.datetime "created_at", :null => false
|
985
|
-
t.datetime "updated_at", :null => false
|
986
|
-
end
|
987
|
-
|
988
|
-
create_table "financial_txns", :force => true do |t|
|
989
|
-
t.integer "money_id"
|
990
|
-
t.date "apply_date"
|
991
|
-
t.datetime "created_at", :null => false
|
992
|
-
t.datetime "updated_at", :null => false
|
993
|
-
end
|
994
|
-
|
995
|
-
create_table "geo_countries", :force => true do |t|
|
996
|
-
t.string "name"
|
997
|
-
t.string "iso_code_2"
|
998
|
-
t.string "iso_code_3"
|
999
|
-
t.boolean "display", :default => true
|
1000
|
-
t.integer "external_id"
|
1001
|
-
t.datetime "created_at"
|
1002
|
-
end
|
1003
|
-
|
1004
|
-
add_index "geo_countries", ["iso_code_2"], :name => "index_geo_countries_on_iso_code_2"
|
1005
|
-
add_index "geo_countries", ["name"], :name => "index_geo_countries_on_name"
|
1006
|
-
|
1007
|
-
create_table "geo_zones", :force => true do |t|
|
1008
|
-
t.integer "geo_country_id"
|
1009
|
-
t.string "zone_code", :default => "2"
|
1010
|
-
t.string "zone_name"
|
1011
|
-
t.datetime "created_at"
|
1012
|
-
end
|
1013
|
-
|
1014
|
-
add_index "geo_zones", ["geo_country_id"], :name => "index_geo_zones_on_geo_country_id"
|
1015
|
-
add_index "geo_zones", ["zone_code"], :name => "index_geo_zones_on_zone_code"
|
1016
|
-
add_index "geo_zones", ["zone_name"], :name => "index_geo_zones_on_zone_name"
|
1017
|
-
|
1018
|
-
create_table "groups", :force => true do |t|
|
1019
|
-
t.string "description"
|
1020
|
-
t.datetime "created_at", :null => false
|
1021
|
-
t.datetime "updated_at", :null => false
|
1022
|
-
end
|
1023
|
-
|
1024
|
-
create_table "individuals", :force => true do |t|
|
1025
|
-
t.integer "party_id"
|
1026
|
-
t.string "current_last_name"
|
1027
|
-
t.string "current_first_name"
|
1028
|
-
t.string "current_middle_name"
|
1029
|
-
t.string "current_personal_title"
|
1030
|
-
t.string "current_suffix"
|
1031
|
-
t.string "current_nickname"
|
1032
|
-
t.string "gender", :limit => 1
|
1033
|
-
t.date "birth_date"
|
1034
|
-
t.decimal "height", :precision => 5, :scale => 2
|
1035
|
-
t.integer "weight"
|
1036
|
-
t.string "mothers_maiden_name"
|
1037
|
-
t.string "marital_status", :limit => 1
|
1038
|
-
t.string "social_security_number"
|
1039
|
-
t.integer "current_passport_number"
|
1040
|
-
t.date "current_passport_expire_date"
|
1041
|
-
t.integer "total_years_work_experience"
|
1042
|
-
t.string "comments"
|
1043
|
-
t.string "encrypted_ssn"
|
1044
|
-
t.string "temp_ssn"
|
1045
|
-
t.string "salt"
|
1046
|
-
t.string "ssn_last_four"
|
1047
|
-
t.datetime "created_at", :null => false
|
1048
|
-
t.datetime "updated_at", :null => false
|
1049
|
-
end
|
1050
|
-
|
1051
|
-
add_index "individuals", ["party_id"], :name => "index_individuals_on_party_id"
|
1052
|
-
|
1053
|
-
create_table "job_trackers", :force => true do |t|
|
1054
|
-
t.string "job_name"
|
1055
|
-
t.string "job_klass"
|
1056
|
-
t.string "run_time"
|
1057
|
-
t.datetime "last_run_at"
|
1058
|
-
t.datetime "next_run_at"
|
1059
|
-
end
|
1060
|
-
|
1061
|
-
create_table "line_item_role_types", :force => true do |t|
|
1062
|
-
t.integer "parent_id"
|
1063
|
-
t.integer "lft"
|
1064
|
-
t.integer "rgt"
|
1065
|
-
t.string "description"
|
1066
|
-
t.string "comments"
|
1067
|
-
t.string "internal_identifier"
|
1068
|
-
t.string "external_identifier"
|
1069
|
-
t.string "external_id_source"
|
1070
|
-
t.datetime "created_at", :null => false
|
1071
|
-
t.datetime "updated_at", :null => false
|
1072
|
-
end
|
1073
|
-
|
1074
|
-
add_index "line_item_role_types", ["parent_id"], :name => "index_line_item_role_types_on_parent_id"
|
1075
|
-
|
1076
|
-
create_table "loyalty_program_codes", :force => true do |t|
|
1077
|
-
t.string "identifier"
|
1078
|
-
t.string "name"
|
1079
|
-
t.string "description"
|
1080
|
-
t.datetime "created_at", :null => false
|
1081
|
-
t.datetime "updated_at", :null => false
|
1082
|
-
end
|
1083
|
-
|
1084
|
-
create_table "money", :force => true do |t|
|
1085
|
-
t.string "description"
|
1086
|
-
t.decimal "amount", :precision => 8, :scale => 2
|
1087
|
-
t.integer "currency_id"
|
1088
|
-
t.datetime "created_at", :null => false
|
1089
|
-
t.datetime "updated_at", :null => false
|
1090
|
-
end
|
1091
|
-
|
1092
|
-
add_index "money", ["currency_id"], :name => "index_money_on_currency_id"
|
1093
|
-
|
1094
|
-
create_table "note_types", :force => true do |t|
|
1095
|
-
t.integer "parent_id"
|
1096
|
-
t.integer "lft"
|
1097
|
-
t.integer "rgt"
|
1098
|
-
t.string "description"
|
1099
|
-
t.string "internal_identifier"
|
1100
|
-
t.string "external_identifier"
|
1101
|
-
t.integer "note_type_record_id"
|
1102
|
-
t.string "note_type_record_type"
|
1103
|
-
t.datetime "created_at", :null => false
|
1104
|
-
t.datetime "updated_at", :null => false
|
1105
|
-
end
|
1106
|
-
|
1107
|
-
add_index "note_types", ["note_type_record_id", "note_type_record_type"], :name => "note_type_record_idx"
|
1108
|
-
|
1109
|
-
create_table "notes", :force => true do |t|
|
1110
|
-
t.integer "created_by_id"
|
1111
|
-
t.text "content"
|
1112
|
-
t.integer "noted_record_id"
|
1113
|
-
t.string "noted_record_type"
|
1114
|
-
t.integer "note_type_id"
|
1115
|
-
t.datetime "created_at", :null => false
|
1116
|
-
t.datetime "updated_at", :null => false
|
1117
|
-
end
|
1118
|
-
|
1119
|
-
add_index "notes", ["created_by_id"], :name => "index_notes_on_created_by_id"
|
1120
|
-
add_index "notes", ["note_type_id"], :name => "index_notes_on_note_type_id"
|
1121
|
-
add_index "notes", ["noted_record_id", "noted_record_type"], :name => "index_notes_on_noted_record_id_and_noted_record_type"
|
1122
|
-
|
1123
|
-
create_table "order_line_item_pty_roles", :force => true do |t|
|
1124
|
-
t.string "description"
|
1125
|
-
t.integer "order_line_item_id"
|
1126
|
-
t.integer "party_id"
|
1127
|
-
t.integer "line_item_role_type_id"
|
1128
|
-
t.integer "biz_txn_acct_root_id"
|
1129
|
-
t.datetime "created_at", :null => false
|
1130
|
-
t.datetime "updated_at", :null => false
|
1131
|
-
end
|
1132
|
-
|
1133
|
-
add_index "order_line_item_pty_roles", ["biz_txn_acct_root_id"], :name => "index_order_line_item_pty_roles_on_biz_txn_acct_root_id"
|
1134
|
-
add_index "order_line_item_pty_roles", ["line_item_role_type_id"], :name => "index_order_line_item_pty_roles_on_line_item_role_type_id"
|
1135
|
-
add_index "order_line_item_pty_roles", ["order_line_item_id"], :name => "index_order_line_item_pty_roles_on_order_line_item_id"
|
1136
|
-
add_index "order_line_item_pty_roles", ["party_id"], :name => "index_order_line_item_pty_roles_on_party_id"
|
1137
|
-
|
1138
|
-
create_table "order_line_item_types", :force => true do |t|
|
1139
|
-
t.integer "parent_id"
|
1140
|
-
t.integer "lft"
|
1141
|
-
t.integer "rgt"
|
1142
|
-
t.string "description"
|
1143
|
-
t.string "comments"
|
1144
|
-
t.string "internal_identifier"
|
1145
|
-
t.string "external_identifier"
|
1146
|
-
t.string "external_id_source"
|
1147
|
-
t.datetime "created_at", :null => false
|
1148
|
-
t.datetime "updated_at", :null => false
|
1149
|
-
end
|
1150
|
-
|
1151
|
-
add_index "order_line_item_types", ["parent_id"], :name => "index_order_line_item_types_on_parent_id"
|
1152
|
-
|
1153
|
-
create_table "order_line_items", :force => true do |t|
|
1154
|
-
t.integer "order_txn_id"
|
1155
|
-
t.integer "order_line_item_type_id"
|
1156
|
-
t.integer "product_id"
|
1157
|
-
t.string "product_description"
|
1158
|
-
t.integer "product_instance_id"
|
1159
|
-
t.string "product_instance_description"
|
1160
|
-
t.integer "product_type_id"
|
1161
|
-
t.string "product_type_description"
|
1162
|
-
t.decimal "sold_price", :precision => 8, :scale => 2
|
1163
|
-
t.integer "sold_price_uom"
|
1164
|
-
t.integer "sold_amount"
|
1165
|
-
t.integer "sold_amount_uom"
|
1166
|
-
t.integer "product_offer_id"
|
1167
|
-
t.datetime "created_at", :null => false
|
1168
|
-
t.datetime "updated_at", :null => false
|
1169
|
-
end
|
1170
|
-
|
1171
|
-
add_index "order_line_items", ["order_line_item_type_id"], :name => "index_order_line_items_on_order_line_item_type_id"
|
1172
|
-
add_index "order_line_items", ["order_txn_id"], :name => "index_order_line_items_on_order_txn_id"
|
1173
|
-
add_index "order_line_items", ["product_id"], :name => "index_order_line_items_on_product_id"
|
1174
|
-
add_index "order_line_items", ["product_instance_id"], :name => "index_order_line_items_on_product_instance_id"
|
1175
|
-
add_index "order_line_items", ["product_offer_id"], :name => "index_order_line_items_on_product_offer_id"
|
1176
|
-
add_index "order_line_items", ["product_type_id"], :name => "index_order_line_items_on_product_type_id"
|
1177
|
-
|
1178
|
-
create_table "order_txn_types", :force => true do |t|
|
1179
|
-
t.integer "parent_id"
|
1180
|
-
t.integer "lft"
|
1181
|
-
t.integer "rgt"
|
1182
|
-
t.string "description"
|
1183
|
-
t.string "comments"
|
1184
|
-
t.string "internal_identifier"
|
1185
|
-
t.string "external_identifier"
|
1186
|
-
t.string "external_id_source"
|
1187
|
-
t.datetime "created_at", :null => false
|
1188
|
-
t.datetime "updated_at", :null => false
|
1189
|
-
end
|
1190
|
-
|
1191
|
-
add_index "order_txn_types", ["parent_id"], :name => "index_order_txn_types_on_parent_id"
|
1192
|
-
|
1193
|
-
create_table "order_txns", :force => true do |t|
|
1194
|
-
t.string "state_machine"
|
1195
|
-
t.string "description"
|
1196
|
-
t.integer "order_txn_type_id"
|
1197
|
-
t.string "email"
|
1198
|
-
t.string "phone_number"
|
1199
|
-
t.string "ship_to_first_name"
|
1200
|
-
t.string "ship_to_last_name"
|
1201
|
-
t.string "ship_to_address_line_1"
|
1202
|
-
t.string "ship_to_address_line_2"
|
1203
|
-
t.string "bill_to_address_line_1"
|
1204
|
-
t.string "bill_to_address_line_2"
|
1205
|
-
t.string "ship_to_city"
|
1206
|
-
t.string "ship_to_state"
|
1207
|
-
t.string "ship_to_postal_code"
|
1208
|
-
t.string "ship_to_country_name"
|
1209
|
-
t.string "customer_ip"
|
1210
|
-
t.integer "order_number"
|
1211
|
-
t.string "status"
|
1212
|
-
t.string "error_message"
|
1213
|
-
t.integer "order_txn_record_id"
|
1214
|
-
t.string "order_txn_record_type"
|
1215
|
-
t.datetime "created_at", :null => false
|
1216
|
-
t.datetime "updated_at", :null => false
|
1217
|
-
t.string "payment_gateway_txn_id"
|
1218
|
-
t.integer "credit_card_id"
|
1219
|
-
t.string "bill_to_first_name"
|
1220
|
-
t.string "bill_to_last_name"
|
1221
|
-
t.string "bill_to_city"
|
1222
|
-
t.string "bill_to_state"
|
1223
|
-
t.string "bill_to_postal_code"
|
1224
|
-
t.string "bill_to_country_name"
|
1225
|
-
t.string "bill_to_country"
|
1226
|
-
t.string "ship_to_country"
|
1227
|
-
end
|
1228
|
-
|
1229
|
-
add_index "order_txns", ["order_txn_record_id", "order_txn_record_type"], :name => "order_txn_record_idx"
|
1230
|
-
add_index "order_txns", ["order_txn_type_id"], :name => "index_order_txns_on_order_txn_type_id"
|
1231
|
-
|
1232
|
-
create_table "organizations", :force => true do |t|
|
1233
|
-
t.string "description"
|
1234
|
-
t.string "tax_id_number"
|
1235
|
-
t.datetime "created_at", :null => false
|
1236
|
-
t.datetime "updated_at", :null => false
|
1237
|
-
end
|
1238
|
-
|
1239
|
-
create_table "parties", :force => true do |t|
|
1240
|
-
t.string "description"
|
1241
|
-
t.integer "business_party_id"
|
1242
|
-
t.string "business_party_type"
|
1243
|
-
t.integer "list_view_image_id"
|
1244
|
-
t.string "enterprise_identifier"
|
1245
|
-
t.datetime "created_at", :null => false
|
1246
|
-
t.datetime "updated_at", :null => false
|
1247
|
-
end
|
1248
|
-
|
1249
|
-
add_index "parties", ["business_party_id", "business_party_type"], :name => "besi_1"
|
1250
|
-
|
1251
|
-
create_table "parties_security_roles", :id => false, :force => true do |t|
|
1252
|
-
t.integer "party_id"
|
1253
|
-
t.integer "security_role_id"
|
1254
|
-
end
|
1255
|
-
|
1256
|
-
add_index "parties_security_roles", ["party_id"], :name => "index_parties_security_roles_on_party_id"
|
1257
|
-
add_index "parties_security_roles", ["security_role_id"], :name => "index_parties_security_roles_on_security_role_id"
|
1258
|
-
|
1259
|
-
create_table "party_relationships", :force => true do |t|
|
1260
|
-
t.string "description"
|
1261
|
-
t.integer "party_id_from"
|
1262
|
-
t.integer "party_id_to"
|
1263
|
-
t.integer "role_type_id_from"
|
1264
|
-
t.integer "role_type_id_to"
|
1265
|
-
t.integer "status_type_id"
|
1266
|
-
t.integer "priority_type_id"
|
1267
|
-
t.integer "relationship_type_id"
|
1268
|
-
t.date "from_date"
|
1269
|
-
t.date "thru_date"
|
1270
|
-
t.string "external_identifier"
|
1271
|
-
t.string "external_id_source"
|
1272
|
-
t.datetime "created_at", :null => false
|
1273
|
-
t.datetime "updated_at", :null => false
|
1274
|
-
end
|
1275
|
-
|
1276
|
-
add_index "party_relationships", ["priority_type_id"], :name => "index_party_relationships_on_priority_type_id"
|
1277
|
-
add_index "party_relationships", ["relationship_type_id"], :name => "index_party_relationships_on_relationship_type_id"
|
1278
|
-
add_index "party_relationships", ["status_type_id"], :name => "index_party_relationships_on_status_type_id"
|
1279
|
-
|
1280
|
-
create_table "party_roles", :force => true do |t|
|
1281
|
-
t.string "type"
|
1282
|
-
t.integer "party_id"
|
1283
|
-
t.integer "role_type_id"
|
1284
|
-
t.datetime "created_at", :null => false
|
1285
|
-
t.datetime "updated_at", :null => false
|
1286
|
-
end
|
1287
|
-
|
1288
|
-
add_index "party_roles", ["party_id"], :name => "index_party_roles_on_party_id"
|
1289
|
-
add_index "party_roles", ["role_type_id"], :name => "index_party_roles_on_role_type_id"
|
1290
|
-
|
1291
|
-
create_table "party_search_facts", :force => true do |t|
|
1292
|
-
t.integer "party_id"
|
1293
|
-
t.string "eid"
|
1294
|
-
t.string "type"
|
1295
|
-
t.text "roles"
|
1296
|
-
t.string "party_description"
|
1297
|
-
t.string "party_business_party_type"
|
1298
|
-
t.string "user_login"
|
1299
|
-
t.string "individual_current_last_name"
|
1300
|
-
t.string "individual_current_first_name"
|
1301
|
-
t.string "individual_current_middle_name"
|
1302
|
-
t.string "individual_birth_date"
|
1303
|
-
t.string "individual_ssn"
|
1304
|
-
t.string "party_phone_number"
|
1305
|
-
t.string "party_email_address"
|
1306
|
-
t.string "party_address_1"
|
1307
|
-
t.string "party_address_2"
|
1308
|
-
t.string "party_primary_address_city"
|
1309
|
-
t.string "party_primary_address_state"
|
1310
|
-
t.string "party_primary_address_zip"
|
1311
|
-
t.string "party_primary_address_country"
|
1312
|
-
t.boolean "user_enabled"
|
1313
|
-
t.string "user_type"
|
1314
|
-
t.boolean "reindex"
|
1315
|
-
t.datetime "created_at", :null => false
|
1316
|
-
t.datetime "updated_at", :null => false
|
1317
|
-
end
|
1318
|
-
|
1319
|
-
create_table "payment_gateway_actions", :force => true do |t|
|
1320
|
-
t.string "internal_identifier"
|
1321
|
-
t.string "description"
|
1322
|
-
t.datetime "created_at", :null => false
|
1323
|
-
t.datetime "updated_at", :null => false
|
1324
|
-
end
|
1325
|
-
|
1326
|
-
add_index "payment_gateway_actions", ["internal_identifier"], :name => "index_payment_gateway_actions_on_internal_identifier"
|
1327
|
-
|
1328
|
-
create_table "payment_gateways", :force => true do |t|
|
1329
|
-
t.string "params"
|
1330
|
-
t.integer "payment_gateway_action_id"
|
1331
|
-
t.integer "payment_id"
|
1332
|
-
t.string "response"
|
1333
|
-
t.datetime "created_at", :null => false
|
1334
|
-
t.datetime "updated_at", :null => false
|
1335
|
-
end
|
1336
|
-
|
1337
|
-
create_table "payments", :force => true do |t|
|
1338
|
-
t.boolean "success"
|
1339
|
-
t.string "reference_number"
|
1340
|
-
t.integer "financial_txn_id"
|
1341
|
-
t.string "current_state"
|
1342
|
-
t.string "authorization_code"
|
1343
|
-
t.string "external_identifier"
|
1344
|
-
t.datetime "created_at", :null => false
|
1345
|
-
t.datetime "updated_at", :null => false
|
1346
|
-
end
|
1347
|
-
|
1348
|
-
add_index "payments", ["financial_txn_id"], :name => "index_payments_on_financial_txn_id"
|
1349
|
-
|
1350
|
-
create_table "phone_numbers", :force => true do |t|
|
1351
|
-
t.string "phone_number"
|
1352
|
-
t.string "description"
|
1353
|
-
t.datetime "created_at", :null => false
|
1354
|
-
t.datetime "updated_at", :null => false
|
1355
|
-
end
|
1356
|
-
|
1357
|
-
create_table "postal_addresses", :force => true do |t|
|
1358
|
-
t.string "address_line_1"
|
1359
|
-
t.string "address_line_2"
|
1360
|
-
t.string "city"
|
1361
|
-
t.string "state"
|
1362
|
-
t.string "zip"
|
1363
|
-
t.string "country"
|
1364
|
-
t.string "description"
|
1365
|
-
t.integer "geo_country_id"
|
1366
|
-
t.integer "geo_zone_id"
|
1367
|
-
t.datetime "created_at", :null => false
|
1368
|
-
t.datetime "updated_at", :null => false
|
1369
|
-
t.decimal "latitude", :precision => 12, :scale => 8
|
1370
|
-
t.decimal "longitude", :precision => 12, :scale => 8
|
1371
|
-
end
|
1372
|
-
|
1373
|
-
add_index "postal_addresses", ["geo_country_id"], :name => "index_postal_addresses_on_geo_country_id"
|
1374
|
-
add_index "postal_addresses", ["geo_zone_id"], :name => "index_postal_addresses_on_geo_zone_id"
|
1375
|
-
|
1376
|
-
create_table "preference_options", :force => true do |t|
|
1377
|
-
t.string "description"
|
1378
|
-
t.string "internal_identifier"
|
1379
|
-
t.string "value"
|
1380
|
-
t.datetime "created_at", :null => false
|
1381
|
-
t.datetime "updated_at", :null => false
|
1382
|
-
end
|
1383
|
-
|
1384
|
-
create_table "preference_options_preference_types", :id => false, :force => true do |t|
|
1385
|
-
t.integer "preference_type_id"
|
1386
|
-
t.integer "preference_option_id"
|
1387
|
-
end
|
1388
|
-
|
1389
|
-
add_index "preference_options_preference_types", ["preference_option_id"], :name => "pref_opt_pref_type_pref_opt_id_idx"
|
1390
|
-
add_index "preference_options_preference_types", ["preference_type_id"], :name => "pref_opt_pref_type_pref_type_id_idx"
|
1391
|
-
|
1392
|
-
create_table "preference_types", :force => true do |t|
|
1393
|
-
t.string "description"
|
1394
|
-
t.string "internal_identifier"
|
1395
|
-
t.integer "default_pref_option_id"
|
1396
|
-
t.datetime "created_at", :null => false
|
1397
|
-
t.datetime "updated_at", :null => false
|
1398
|
-
end
|
1399
|
-
|
1400
|
-
add_index "preference_types", ["default_pref_option_id"], :name => "index_preference_types_on_default_pref_option_id"
|
1401
|
-
|
1402
|
-
create_table "preferences", :force => true do |t|
|
1403
|
-
t.integer "preference_option_id"
|
1404
|
-
t.integer "preference_type_id"
|
1405
|
-
t.datetime "created_at", :null => false
|
1406
|
-
t.datetime "updated_at", :null => false
|
1407
|
-
end
|
1408
|
-
|
1409
|
-
add_index "preferences", ["preference_option_id"], :name => "index_preferences_on_preference_option_id"
|
1410
|
-
add_index "preferences", ["preference_type_id"], :name => "index_preferences_on_preference_type_id"
|
1411
|
-
|
1412
|
-
create_table "price_component_types", :force => true do |t|
|
1413
|
-
t.string "description"
|
1414
|
-
t.string "internal_identifier"
|
1415
|
-
t.string "external_identifier"
|
1416
|
-
t.string "external_id_source"
|
1417
|
-
t.datetime "created_at", :null => false
|
1418
|
-
t.datetime "updated_at", :null => false
|
1419
|
-
end
|
1420
|
-
|
1421
|
-
create_table "price_components", :force => true do |t|
|
1422
|
-
t.string "description"
|
1423
|
-
t.integer "pricing_plan_component_id"
|
1424
|
-
t.integer "price_id"
|
1425
|
-
t.integer "money_id"
|
1426
|
-
t.integer "priced_component_id"
|
1427
|
-
t.string "priced_component_type"
|
1428
|
-
t.datetime "created_at", :null => false
|
1429
|
-
t.datetime "updated_at", :null => false
|
1430
|
-
end
|
1431
|
-
|
1432
|
-
add_index "price_components", ["money_id"], :name => "index_price_components_on_money_id"
|
1433
|
-
add_index "price_components", ["price_id"], :name => "index_price_components_on_price_id"
|
1434
|
-
add_index "price_components", ["priced_component_id", "priced_component_type"], :name => "priced_component_idx"
|
1435
|
-
add_index "price_components", ["pricing_plan_component_id"], :name => "index_price_components_on_pricing_plan_component_id"
|
1436
|
-
|
1437
|
-
create_table "prices", :force => true do |t|
|
1438
|
-
t.string "description"
|
1439
|
-
t.integer "priced_item_id"
|
1440
|
-
t.string "priced_item_type"
|
1441
|
-
t.integer "pricing_plan_id"
|
1442
|
-
t.integer "money_id"
|
1443
|
-
t.datetime "created_at", :null => false
|
1444
|
-
t.datetime "updated_at", :null => false
|
1445
|
-
end
|
1446
|
-
|
1447
|
-
add_index "prices", ["money_id"], :name => "index_prices_on_money_id"
|
1448
|
-
add_index "prices", ["priced_item_id", "priced_item_type"], :name => "priced_item_idx"
|
1449
|
-
add_index "prices", ["pricing_plan_id"], :name => "index_prices_on_pricing_plan_id"
|
1450
|
-
|
1451
|
-
create_table "pricing_plan_assignments", :force => true do |t|
|
1452
|
-
t.integer "pricing_plan_id"
|
1453
|
-
t.integer "priceable_item_id"
|
1454
|
-
t.string "priceable_item_type"
|
1455
|
-
t.integer "priority"
|
1456
|
-
t.datetime "created_at", :null => false
|
1457
|
-
t.datetime "updated_at", :null => false
|
1458
|
-
end
|
1459
|
-
|
1460
|
-
add_index "pricing_plan_assignments", ["priceable_item_id", "priceable_item_type"], :name => "priceable_item_idx"
|
1461
|
-
add_index "pricing_plan_assignments", ["pricing_plan_id"], :name => "index_pricing_plan_assignments_on_pricing_plan_id"
|
1462
|
-
|
1463
|
-
create_table "pricing_plan_components", :force => true do |t|
|
1464
|
-
t.integer "price_component_type_id"
|
1465
|
-
t.string "description"
|
1466
|
-
t.string "comments"
|
1467
|
-
t.string "internal_identifier"
|
1468
|
-
t.string "external_identifier"
|
1469
|
-
t.string "external_id_source"
|
1470
|
-
t.string "matching_rules"
|
1471
|
-
t.string "pricing_calculation"
|
1472
|
-
t.boolean "is_simple_amount"
|
1473
|
-
t.integer "currency_id"
|
1474
|
-
t.decimal "money_amount", :precision => 8, :scale => 2
|
1475
|
-
t.datetime "created_at", :null => false
|
1476
|
-
t.datetime "updated_at", :null => false
|
1477
|
-
end
|
1478
|
-
|
1479
|
-
add_index "pricing_plan_components", ["price_component_type_id"], :name => "index_pricing_plan_components_on_price_component_type_id"
|
1480
|
-
|
1481
|
-
create_table "pricing_plans", :force => true do |t|
|
1482
|
-
t.string "description"
|
1483
|
-
t.string "comments"
|
1484
|
-
t.string "internal_identifier"
|
1485
|
-
t.string "external_identifier"
|
1486
|
-
t.string "external_id_source"
|
1487
|
-
t.date "from_date"
|
1488
|
-
t.date "thru_date"
|
1489
|
-
t.string "matching_rules"
|
1490
|
-
t.string "pricing_calculation"
|
1491
|
-
t.boolean "is_simple_amount"
|
1492
|
-
t.integer "currency_id"
|
1493
|
-
t.decimal "money_amount", :precision => 8, :scale => 2
|
1494
|
-
t.datetime "created_at", :null => false
|
1495
|
-
t.datetime "updated_at", :null => false
|
1496
|
-
end
|
1497
|
-
|
1498
|
-
create_table "prod_availability_status_types", :force => true do |t|
|
1499
|
-
t.integer "parent_id"
|
1500
|
-
t.integer "lft"
|
1501
|
-
t.integer "rgt"
|
1502
|
-
t.string "description"
|
1503
|
-
t.string "internal_identifier"
|
1504
|
-
t.string "external_identifier"
|
1505
|
-
t.string "external_id_source"
|
1506
|
-
t.datetime "created_at", :null => false
|
1507
|
-
t.datetime "updated_at", :null => false
|
1508
|
-
end
|
1509
|
-
|
1510
|
-
create_table "prod_instance_reln_types", :force => true do |t|
|
1511
|
-
t.integer "parent_id"
|
1512
|
-
t.integer "lft"
|
1513
|
-
t.integer "rgt"
|
1514
|
-
t.string "description"
|
1515
|
-
t.string "comments"
|
1516
|
-
t.string "internal_identifier"
|
1517
|
-
t.string "external_identifier"
|
1518
|
-
t.string "external_id_source"
|
1519
|
-
t.datetime "created_at", :null => false
|
1520
|
-
t.datetime "updated_at", :null => false
|
1521
|
-
end
|
1522
|
-
|
1523
|
-
add_index "prod_instance_reln_types", ["parent_id"], :name => "index_prod_instance_reln_types_on_parent_id"
|
1524
|
-
|
1525
|
-
create_table "prod_instance_relns", :force => true do |t|
|
1526
|
-
t.integer "prod_instance_reln_type_id"
|
1527
|
-
t.string "description"
|
1528
|
-
t.integer "prod_instance_id_from"
|
1529
|
-
t.integer "prod_instance_id_to"
|
1530
|
-
t.integer "role_type_id_from"
|
1531
|
-
t.integer "role_type_id_to"
|
1532
|
-
t.integer "status_type_id"
|
1533
|
-
t.date "from_date"
|
1534
|
-
t.date "thru_date"
|
1535
|
-
t.datetime "created_at", :null => false
|
1536
|
-
t.datetime "updated_at", :null => false
|
1537
|
-
end
|
1538
|
-
|
1539
|
-
add_index "prod_instance_relns", ["prod_instance_reln_type_id"], :name => "index_prod_instance_relns_on_prod_instance_reln_type_id"
|
1540
|
-
add_index "prod_instance_relns", ["status_type_id"], :name => "index_prod_instance_relns_on_status_type_id"
|
1541
|
-
|
1542
|
-
create_table "prod_instance_role_types", :force => true do |t|
|
1543
|
-
t.integer "parent_id"
|
1544
|
-
t.integer "lft"
|
1545
|
-
t.integer "rgt"
|
1546
|
-
t.string "description"
|
1547
|
-
t.string "comments"
|
1548
|
-
t.string "internal_identifier"
|
1549
|
-
t.string "external_identifier"
|
1550
|
-
t.string "external_id_source"
|
1551
|
-
t.datetime "created_at", :null => false
|
1552
|
-
t.datetime "updated_at", :null => false
|
1553
|
-
end
|
1554
|
-
|
1555
|
-
add_index "prod_instance_role_types", ["parent_id"], :name => "index_prod_instance_role_types_on_parent_id"
|
1556
|
-
|
1557
|
-
create_table "prod_type_reln_types", :force => true do |t|
|
1558
|
-
t.integer "parent_id"
|
1559
|
-
t.integer "lft"
|
1560
|
-
t.integer "rgt"
|
1561
|
-
t.string "description"
|
1562
|
-
t.string "comments"
|
1563
|
-
t.string "internal_identifier"
|
1564
|
-
t.string "external_identifier"
|
1565
|
-
t.string "external_id_source"
|
1566
|
-
t.datetime "created_at", :null => false
|
1567
|
-
t.datetime "updated_at", :null => false
|
1568
|
-
end
|
1569
|
-
|
1570
|
-
add_index "prod_type_reln_types", ["parent_id"], :name => "index_prod_type_reln_types_on_parent_id"
|
1571
|
-
|
1572
|
-
create_table "prod_type_relns", :force => true do |t|
|
1573
|
-
t.integer "prod_type_reln_type_id"
|
1574
|
-
t.string "description"
|
1575
|
-
t.integer "prod_type_id_from"
|
1576
|
-
t.integer "prod_type_id_to"
|
1577
|
-
t.integer "role_type_id_from"
|
1578
|
-
t.integer "role_type_id_to"
|
1579
|
-
t.integer "status_type_id"
|
1580
|
-
t.date "from_date"
|
1581
|
-
t.date "thru_date"
|
1582
|
-
t.datetime "created_at", :null => false
|
1583
|
-
t.datetime "updated_at", :null => false
|
1584
|
-
end
|
1585
|
-
|
1586
|
-
add_index "prod_type_relns", ["prod_type_reln_type_id"], :name => "index_prod_type_relns_on_prod_type_reln_type_id"
|
1587
|
-
add_index "prod_type_relns", ["status_type_id"], :name => "index_prod_type_relns_on_status_type_id"
|
1588
|
-
|
1589
|
-
create_table "prod_type_role_types", :force => true do |t|
|
1590
|
-
t.integer "parent_id"
|
1591
|
-
t.integer "lft"
|
1592
|
-
t.integer "rgt"
|
1593
|
-
t.string "description"
|
1594
|
-
t.string "comments"
|
1595
|
-
t.string "internal_identifier"
|
1596
|
-
t.string "external_identifier"
|
1597
|
-
t.string "external_id_source"
|
1598
|
-
t.datetime "created_at", :null => false
|
1599
|
-
t.datetime "updated_at", :null => false
|
1600
|
-
end
|
1601
|
-
|
1602
|
-
add_index "prod_type_role_types", ["parent_id"], :name => "index_prod_type_role_types_on_parent_id"
|
1603
|
-
|
1604
|
-
create_table "product_instance_status_types", :force => true do |t|
|
1605
|
-
t.integer "parent_id"
|
1606
|
-
t.integer "lft"
|
1607
|
-
t.integer "rgt"
|
1608
|
-
t.string "description"
|
1609
|
-
t.string "internal_identifier"
|
1610
|
-
t.string "external_identifier"
|
1611
|
-
t.string "external_id_source"
|
1612
|
-
t.datetime "created_at", :null => false
|
1613
|
-
t.datetime "updated_at", :null => false
|
1614
|
-
end
|
1615
|
-
|
1616
|
-
create_table "product_instances", :force => true do |t|
|
1617
|
-
t.integer "parent_id"
|
1618
|
-
t.integer "lft"
|
1619
|
-
t.integer "rgt"
|
1620
|
-
t.string "description"
|
1621
|
-
t.integer "product_instance_record_id"
|
1622
|
-
t.string "product_instance_record_type"
|
1623
|
-
t.string "external_identifier"
|
1624
|
-
t.string "external_id_source"
|
1625
|
-
t.integer "product_type_id"
|
1626
|
-
t.string "type"
|
1627
|
-
t.integer "prod_availability_status_type_id"
|
1628
|
-
t.datetime "created_at", :null => false
|
1629
|
-
t.datetime "updated_at", :null => false
|
1630
|
-
end
|
1631
|
-
|
1632
|
-
add_index "product_instances", ["lft"], :name => "lft_index"
|
1633
|
-
add_index "product_instances", ["parent_id"], :name => "index_product_instances_on_parent_id"
|
1634
|
-
add_index "product_instances", ["product_instance_record_id", "product_instance_record_type"], :name => "bpi_2"
|
1635
|
-
add_index "product_instances", ["product_type_id"], :name => "index_product_instances_on_product_type_id"
|
1636
|
-
add_index "product_instances", ["rgt"], :name => "rgt_index"
|
1637
|
-
|
1638
|
-
create_table "product_offers", :force => true do |t|
|
1639
|
-
t.string "description"
|
1640
|
-
t.integer "product_offer_record_id"
|
1641
|
-
t.string "product_offer_record_type"
|
1642
|
-
t.string "external_identifier"
|
1643
|
-
t.string "external_id_source"
|
1644
|
-
t.datetime "created_at", :null => false
|
1645
|
-
t.datetime "updated_at", :null => false
|
1646
|
-
end
|
1647
|
-
|
1648
|
-
add_index "product_offers", ["product_offer_record_id", "product_offer_record_type"], :name => "bpi_3"
|
1649
|
-
|
1650
|
-
create_table "product_types", :force => true do |t|
|
1651
|
-
t.integer "parent_id"
|
1652
|
-
t.integer "lft"
|
1653
|
-
t.integer "rgt"
|
1654
|
-
t.string "description"
|
1655
|
-
t.integer "product_type_record_id"
|
1656
|
-
t.string "product_type_record_type"
|
1657
|
-
t.string "external_identifier"
|
1658
|
-
t.string "internal_identifier"
|
1659
|
-
t.string "external_id_source"
|
1660
|
-
t.string "default_image_url"
|
1661
|
-
t.integer "list_view_image_id"
|
1662
|
-
t.datetime "created_at", :null => false
|
1663
|
-
t.datetime "updated_at", :null => false
|
1664
|
-
end
|
1665
|
-
|
1666
|
-
add_index "product_types", ["parent_id"], :name => "index_product_types_on_parent_id"
|
1667
|
-
add_index "product_types", ["product_type_record_id", "product_type_record_type"], :name => "bpi_1"
|
1668
|
-
|
1669
|
-
create_table "relationship_types", :force => true do |t|
|
1670
|
-
t.integer "parent_id"
|
1671
|
-
t.integer "lft"
|
1672
|
-
t.integer "rgt"
|
1673
|
-
t.integer "valid_from_role_type_id"
|
1674
|
-
t.integer "valid_to_role_type_id"
|
1675
|
-
t.string "name"
|
1676
|
-
t.string "description"
|
1677
|
-
t.string "internal_identifier"
|
1678
|
-
t.string "external_identifier"
|
1679
|
-
t.string "external_id_source"
|
1680
|
-
t.datetime "created_at", :null => false
|
1681
|
-
t.datetime "updated_at", :null => false
|
1682
|
-
end
|
1683
|
-
|
1684
|
-
add_index "relationship_types", ["valid_from_role_type_id"], :name => "index_relationship_types_on_valid_from_role_type_id"
|
1685
|
-
add_index "relationship_types", ["valid_to_role_type_id"], :name => "index_relationship_types_on_valid_to_role_type_id"
|
1686
|
-
|
1687
|
-
create_table "role_types", :force => true do |t|
|
1688
|
-
t.integer "parent_id"
|
1689
|
-
t.integer "lft"
|
1690
|
-
t.integer "rgt"
|
1691
|
-
t.string "description"
|
1692
|
-
t.string "comments"
|
1693
|
-
t.string "internal_identifier"
|
1694
|
-
t.string "external_identifier"
|
1695
|
-
t.string "external_id_source"
|
1696
|
-
t.datetime "created_at", :null => false
|
1697
|
-
t.datetime "updated_at", :null => false
|
1698
|
-
end
|
1699
|
-
|
1700
|
-
create_table "scope_types", :force => true do |t|
|
1701
|
-
t.string "description"
|
1702
|
-
t.string "internal_identifier"
|
1703
|
-
t.datetime "created_at", :null => false
|
1704
|
-
t.datetime "updated_at", :null => false
|
1705
|
-
end
|
1706
|
-
|
1707
|
-
add_index "scope_types", ["internal_identifier"], :name => "index_scope_types_on_internal_identifier"
|
1708
|
-
|
1709
|
-
create_table "security_roles", :force => true do |t|
|
1710
|
-
t.string "description"
|
1711
|
-
t.string "internal_identifier"
|
1712
|
-
t.string "external_identifier"
|
1713
|
-
t.string "external_id_source"
|
1714
|
-
t.datetime "created_at", :null => false
|
1715
|
-
t.datetime "updated_at", :null => false
|
1716
|
-
end
|
1717
|
-
|
1718
|
-
create_table "sessions", :force => true do |t|
|
1719
|
-
t.string "session_id", :null => false
|
1720
|
-
t.text "data"
|
1721
|
-
t.datetime "created_at", :null => false
|
1722
|
-
t.datetime "updated_at", :null => false
|
1723
|
-
end
|
1724
|
-
|
1725
|
-
add_index "sessions", ["session_id"], :name => "index_sessions_on_session_id"
|
1726
|
-
add_index "sessions", ["updated_at"], :name => "index_sessions_on_updated_at"
|
1727
|
-
|
1728
|
-
create_table "simple_product_offers", :force => true do |t|
|
1729
|
-
t.string "description"
|
1730
|
-
t.integer "product_id"
|
1731
|
-
t.decimal "base_price", :precision => 8, :scale => 2
|
1732
|
-
t.integer "uom"
|
1733
|
-
t.datetime "created_at", :null => false
|
1734
|
-
t.datetime "updated_at", :null => false
|
1735
|
-
end
|
1736
|
-
|
1737
|
-
add_index "simple_product_offers", ["product_id"], :name => "index_simple_product_offers_on_product_id"
|
1738
|
-
|
1739
|
-
create_table "status_applications", :force => true do |t|
|
1740
|
-
t.integer "tracked_status_type_id"
|
1741
|
-
t.integer "status_application_record_id"
|
1742
|
-
t.string "status_application_record_type"
|
1743
|
-
t.datetime "from_date"
|
1744
|
-
t.datetime "thru_date"
|
1745
|
-
t.datetime "created_at", :null => false
|
1746
|
-
t.datetime "updated_at", :null => false
|
1747
|
-
end
|
1748
|
-
|
1749
|
-
add_index "status_applications", ["from_date"], :name => "from_date_idx"
|
1750
|
-
add_index "status_applications", ["status_application_record_id", "status_application_record_type"], :name => "status_applications_record_idx"
|
1751
|
-
add_index "status_applications", ["thru_date"], :name => "thru_date_idx"
|
1752
|
-
add_index "status_applications", ["tracked_status_type_id"], :name => "tracked_status_type_id_idx"
|
1753
|
-
|
1754
|
-
create_table "tracked_status_types", :force => true do |t|
|
1755
|
-
t.string "description"
|
1756
|
-
t.string "internal_identifier"
|
1757
|
-
t.string "external_identifier"
|
1758
|
-
t.datetime "created_at", :null => false
|
1759
|
-
t.datetime "updated_at", :null => false
|
1760
|
-
end
|
1761
|
-
|
1762
|
-
add_index "tracked_status_types", ["internal_identifier"], :name => "tracked_status_types_iid_idx"
|
1763
|
-
|
1764
|
-
create_table "tree_menu_node_defs", :force => true do |t|
|
1765
|
-
t.string "node_type"
|
1766
|
-
t.integer "parent_id"
|
1767
|
-
t.integer "lft"
|
1768
|
-
t.integer "rgt"
|
1769
|
-
t.string "menu_short_name"
|
1770
|
-
t.string "menu_description"
|
1771
|
-
t.string "text"
|
1772
|
-
t.string "icon_url"
|
1773
|
-
t.string "target_url"
|
1774
|
-
t.string "resource_class"
|
1775
|
-
t.datetime "created_at", :null => false
|
1776
|
-
t.datetime "updated_at", :null => false
|
1777
|
-
end
|
1778
|
-
|
1779
|
-
add_index "tree_menu_node_defs", ["parent_id"], :name => "index_tree_menu_node_defs_on_parent_id"
|
1780
|
-
|
1781
|
-
create_table "user_preferences", :force => true do |t|
|
1782
|
-
t.integer "user_id"
|
1783
|
-
t.integer "preference_id"
|
1784
|
-
t.integer "preferenced_record_id"
|
1785
|
-
t.string "preferenced_record_type"
|
1786
|
-
t.datetime "created_at", :null => false
|
1787
|
-
t.datetime "updated_at", :null => false
|
1788
|
-
end
|
1789
|
-
|
1790
|
-
add_index "user_preferences", ["preference_id"], :name => "index_user_preferences_on_preference_id"
|
1791
|
-
add_index "user_preferences", ["preferenced_record_id"], :name => "index_user_preferences_on_preferenced_record_id"
|
1792
|
-
add_index "user_preferences", ["preferenced_record_type"], :name => "index_user_preferences_on_preferenced_record_type"
|
1793
|
-
add_index "user_preferences", ["user_id"], :name => "index_user_preferences_on_user_id"
|
1794
|
-
|
1795
|
-
create_table "users", :force => true do |t|
|
1796
|
-
t.string "username"
|
1797
|
-
t.string "email"
|
1798
|
-
t.integer "party_id"
|
1799
|
-
t.string "type"
|
1800
|
-
t.string "salt"
|
1801
|
-
t.string "crypted_password"
|
1802
|
-
t.datetime "last_login_at"
|
1803
|
-
t.datetime "last_logout_at"
|
1804
|
-
t.datetime "last_activity_at"
|
1805
|
-
t.integer "failed_logins_count", :default => 0
|
1806
|
-
t.datetime "lock_expires_at"
|
1807
|
-
t.string "remember_me_token"
|
1808
|
-
t.datetime "remember_me_token_expires_at"
|
1809
|
-
t.string "reset_password_token"
|
1810
|
-
t.datetime "reset_password_token_expires_at"
|
1811
|
-
t.datetime "reset_password_email_sent_at"
|
1812
|
-
t.string "activation_state"
|
1813
|
-
t.string "activation_token"
|
1814
|
-
t.datetime "activation_token_expires_at"
|
1815
|
-
t.string "security_question_1"
|
1816
|
-
t.string "security_answer_1"
|
1817
|
-
t.string "security_question_2"
|
1818
|
-
t.string "security_answer_2"
|
1819
|
-
t.datetime "created_at", :null => false
|
1820
|
-
t.datetime "updated_at", :null => false
|
1821
|
-
end
|
1822
|
-
|
1823
|
-
add_index "users", ["activation_token"], :name => "index_users_on_activation_token"
|
1824
|
-
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
1825
|
-
add_index "users", ["last_logout_at", "last_activity_at"], :name => "activity_idx"
|
1826
|
-
add_index "users", ["remember_me_token"], :name => "index_users_on_remember_me_token"
|
1827
|
-
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token"
|
1828
|
-
add_index "users", ["username"], :name => "index_users_on_username", :unique => true
|
1829
|
-
|
1830
|
-
create_table "valid_configurations", :force => true do |t|
|
1831
|
-
t.integer "configured_item_id"
|
1832
|
-
t.string "configured_item_type"
|
1833
|
-
t.integer "configuration_id"
|
1834
|
-
t.datetime "created_at", :null => false
|
1835
|
-
t.datetime "updated_at", :null => false
|
1836
|
-
end
|
1837
|
-
|
1838
|
-
add_index "valid_configurations", ["configuration_id"], :name => "index_valid_configurations_on_configuration_id"
|
1839
|
-
add_index "valid_configurations", ["configured_item_id", "configured_item_type"], :name => "configured_item_poly_idx"
|
1840
|
-
|
1841
|
-
create_table "valid_note_types", :force => true do |t|
|
1842
|
-
t.integer "valid_note_type_record_id"
|
1843
|
-
t.string "valid_note_type_record_type"
|
1844
|
-
t.integer "note_type_id"
|
1845
|
-
t.datetime "created_at", :null => false
|
1846
|
-
t.datetime "updated_at", :null => false
|
1847
|
-
end
|
1848
|
-
|
1849
|
-
add_index "valid_note_types", ["note_type_id"], :name => "index_valid_note_types_on_note_type_id"
|
1850
|
-
add_index "valid_note_types", ["valid_note_type_record_id", "valid_note_type_record_type"], :name => "valid_note_type_record_idx"
|
1851
|
-
|
1852
|
-
create_table "valid_preference_types", :force => true do |t|
|
1853
|
-
t.integer "preference_type_id"
|
1854
|
-
t.integer "preferenced_record_id"
|
1855
|
-
t.string "preferenced_record_type"
|
1856
|
-
end
|
1857
|
-
|
1858
|
-
create_table "valid_price_plan_components", :force => true do |t|
|
1859
|
-
t.integer "pricing_plan_id"
|
1860
|
-
t.integer "pricing_plan_component_id"
|
1861
|
-
t.datetime "created_at", :null => false
|
1862
|
-
t.datetime "updated_at", :null => false
|
1863
|
-
end
|
1864
|
-
|
1865
|
-
add_index "valid_price_plan_components", ["pricing_plan_component_id"], :name => "index_valid_price_plan_components_on_pricing_plan_component_id"
|
1866
|
-
add_index "valid_price_plan_components", ["pricing_plan_id"], :name => "index_valid_price_plan_components_on_pricing_plan_id"
|
1867
|
-
|
1868
|
-
create_table "view_types", :force => true do |t|
|
1869
|
-
t.string "internal_identifier"
|
1870
|
-
t.string "description"
|
1871
|
-
t.datetime "created_at", :null => false
|
1872
|
-
t.datetime "updated_at", :null => false
|
1873
|
-
end
|
1874
|
-
|
1875
|
-
create_table "widgets", :force => true do |t|
|
1876
|
-
t.string "description"
|
1877
|
-
t.string "internal_identifier"
|
1878
|
-
t.string "icon"
|
1879
|
-
t.string "xtype"
|
1880
|
-
t.datetime "created_at", :null => false
|
1881
|
-
t.datetime "updated_at", :null => false
|
1882
|
-
end
|
1883
|
-
|
1884
|
-
end
|