enju_inter_library_loan 0.1.0.pre7 → 0.1.0.pre8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/inter_library_loans/edit.html.erb +2 -2
- data/app/views/inter_library_loans/index.html.erb +2 -2
- data/app/views/inter_library_loans/new.html.erb +2 -2
- data/app/views/inter_library_loans/show.html.erb +2 -2
- data/lib/enju_inter_library_loan/engine.rb +1 -1
- data/lib/enju_inter_library_loan/version.rb +1 -1
- data/spec/dummy/app/controllers/application_controller.rb +3 -67
- data/spec/dummy/config/application.rb +3 -0
- data/spec/dummy/config/application.yml +42 -0
- data/spec/dummy/config/initializers/devise.rb +2 -0
- data/spec/dummy/db/migrate/{001_create_patrons.rb → 001_create_agents.rb} +9 -18
- data/spec/dummy/db/migrate/005_create_manifestations.rb +11 -34
- data/spec/dummy/db/migrate/006_create_items.rb +1 -9
- data/spec/dummy/db/migrate/012_create_owns.rb +12 -0
- data/spec/dummy/db/migrate/015_create_creates.rb +12 -0
- data/spec/dummy/db/migrate/029_create_subjects.rb +27 -0
- data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
- data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
- data/spec/dummy/db/migrate/047_create_produces.rb +12 -0
- data/spec/dummy/db/migrate/055_create_bookmarks.rb +22 -0
- data/spec/dummy/db/migrate/059_create_libraries.rb +1 -7
- data/spec/dummy/db/migrate/069_create_shelves.rb +1 -5
- data/spec/dummy/db/migrate/073_create_carrier_types.rb +11 -0
- data/spec/dummy/db/migrate/077_create_user_groups.rb +16 -0
- data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -6
- data/spec/dummy/db/migrate/112_create_frequencies.rb +12 -0
- data/spec/dummy/db/migrate/113_create_events.rb +23 -0
- data/spec/dummy/db/migrate/114_create_event_categories.rb +16 -0
- data/spec/dummy/db/migrate/117_create_form_of_works.rb +12 -0
- data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
- data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
- data/spec/dummy/db/migrate/124_create_bookstores.rb +17 -0
- data/spec/dummy/db/migrate/125_create_donates.rb +12 -0
- data/spec/dummy/db/migrate/127_create_use_restrictions.rb +16 -0
- data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +16 -0
- data/spec/dummy/db/migrate/130_create_request_status_types.rb +12 -0
- data/spec/dummy/db/migrate/131_create_request_types.rb +12 -0
- data/spec/dummy/db/migrate/132_create_circulation_statuses.rb +16 -0
- data/spec/dummy/db/migrate/142_create_classifications.rb +19 -0
- data/spec/dummy/db/migrate/144_create_classification_types.rb +16 -0
- data/spec/dummy/db/migrate/145_create_subject_heading_types.rb +16 -0
- data/spec/dummy/db/migrate/{20080905191442_create_patron_types.rb → 146_create_subject_types.rb} +3 -3
- data/spec/dummy/db/migrate/149_create_message_templates.rb +18 -0
- data/spec/dummy/db/migrate/154_create_messages.rb +24 -0
- data/spec/dummy/db/migrate/20080606052544_create_work_has_subjects.rb +18 -0
- data/spec/dummy/db/migrate/20080819181903_create_message_requests.rb +20 -0
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +13 -0
- data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +13 -0
- data/spec/dummy/db/migrate/20080905191442_create_agent_types.rb +12 -0
- data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +17 -0
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +28 -0
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +23 -0
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +15 -0
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +22 -0
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +22 -0
- data/spec/dummy/db/migrate/20081028093607_create_event_import_files.rb +27 -0
- data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +17 -0
- data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -0
- data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
- data/spec/dummy/db/migrate/20081117143156_create_inventory_files.rb +18 -0
- data/spec/dummy/db/migrate/20081117143455_create_inventories.rb +17 -0
- data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081212151820_create_bookmark_stat_has_manifestations.rb +13 -0
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20090208044541_create_subject_heading_type_has_subjects.rb +16 -0
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
- data/spec/dummy/db/migrate/20090519203307_create_participates.rb +17 -0
- data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +15 -0
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +15 -0
- data/spec/dummy/db/migrate/20090706125521_add_attachments_inventory_to_inventory_file.rb +15 -0
- data/spec/dummy/db/migrate/20090719201843_create_extents.rb +12 -0
- data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +12 -0
- data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +12 -0
- data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +27 -0
- data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +12 -0
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +18 -0
- data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +13 -0
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +15 -0
- data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +13 -0
- data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100525171356_acts_as_taggable_on_migration.rb +30 -0
- data/spec/dummy/db/migrate/20100527113752_create_delayed_jobs.rb +21 -0
- data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +13 -0
- data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +12 -0
- data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +11 -0
- data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +12 -0
- data/spec/dummy/db/migrate/20100925074639_create_event_import_results.rb +15 -0
- data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +9 -0
- data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +11 -0
- data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
- data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +9 -0
- data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +9 -0
- data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +11 -0
- data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +9 -0
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +12 -0
- data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110913115320_add_lft_and_rgt_to_message.rb +11 -0
- data/spec/dummy/db/migrate/20110913120629_add_lft_and_rgt_to_classification.rb +11 -0
- data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +13 -0
- data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +10 -0
- data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +9 -0
- data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +12 -0
- data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +7 -0
- data/spec/dummy/db/migrate/20111201155456_create_users.rb +3 -0
- data/spec/dummy/db/migrate/20111201155513_add_devise_to_users.rb +8 -16
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
- data/spec/dummy/db/migrate/20111231145823_add_share_bookmarks_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20120105101944_add_queue_to_delayed_jobs.rb +9 -0
- data/spec/dummy/db/migrate/20120125050502_add_depth_to_message.rb +6 -0
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +12 -0
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +6 -0
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20120406020752_add_url_to_subject.rb +5 -0
- data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120413051535_add_event_import_fingerprint_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413100431_add_fingerprint_to_inventory_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120413170734_add_error_message_to_event_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20120415060342_rename_event_import_file_imported_at_to_executed_at.rb +9 -0
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
- data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +5 -0
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +6 -0
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +5 -0
- data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +6 -0
- data/spec/dummy/db/migrate/20130303104849_add_state_index_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +5 -0
- data/spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb +8 -0
- data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +5 -0
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +7 -0
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +5 -0
- data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +6 -0
- data/spec/dummy/db/migrate/20130504133816_add_manifestation_id_to_subject.rb +6 -0
- data/spec/dummy/db/migrate/20130504143515_add_manifestation_id_to_classification.rb +6 -0
- data/spec/dummy/db/migrate/20130504195916_add_subject_heading_type_id_to_subject.rb +5 -0
- data/spec/dummy/db/migrate/20130506175303_create_identifier_types.rb +12 -0
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +15 -0
- data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +5 -0
- data/spec/dummy/db/schema.rb +1191 -143
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/factories/item.rb +1 -1
- data/spec/factories/manifestation.rb +1 -0
- data/spec/fixtures/{patron_types.yml → agent_types.yml} +4 -4
- data/spec/fixtures/{patrons.yml → agents.yml} +46 -46
- data/spec/fixtures/carrier_types.yml +51 -0
- data/spec/fixtures/checkout_types.yml +34 -0
- data/spec/fixtures/circulation_statuses.yml +120 -0
- data/spec/fixtures/languages.yml +1901 -0
- data/spec/fixtures/libraries.yml +25 -33
- metadata +382 -62
- data/spec/dummy/app/models/item.rb +0 -7
- data/spec/dummy/app/models/library.rb +0 -128
- data/spec/dummy/app/models/library_group.rb +0 -86
- data/spec/dummy/app/models/manifestation.rb +0 -6
- data/spec/dummy/app/models/patron.rb +0 -167
- data/spec/dummy/app/models/patron_type.rb +0 -19
- data/spec/dummy/app/models/role.rb +0 -5
- data/spec/dummy/app/models/shelf.rb +0 -54
- data/spec/dummy/app/models/user_has_role.rb +0 -4
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +0 -9
- data/spec/dummy/db/migrate/20110115022329_add_position_to_library_group.rb +0 -9
- data/spec/dummy/db/migrate/20111020063828_remove_dsbl_from_library_group.rb +0 -11
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,7 +11,532 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20130509185724) do
|
15
|
+
|
16
|
+
create_table "agent_import_files", :force => true do |t|
|
17
|
+
t.integer "parent_id"
|
18
|
+
t.string "content_type"
|
19
|
+
t.integer "size"
|
20
|
+
t.integer "user_id"
|
21
|
+
t.text "note"
|
22
|
+
t.datetime "executed_at"
|
23
|
+
t.string "state"
|
24
|
+
t.string "agent_import_file_name"
|
25
|
+
t.string "agent_import_content_type"
|
26
|
+
t.integer "agent_import_file_size"
|
27
|
+
t.datetime "agent_import_updated_at"
|
28
|
+
t.datetime "created_at", :null => false
|
29
|
+
t.datetime "updated_at", :null => false
|
30
|
+
t.string "agent_import_fingerprint"
|
31
|
+
t.text "error_message"
|
32
|
+
t.string "edit_mode"
|
33
|
+
end
|
34
|
+
|
35
|
+
add_index "agent_import_files", ["parent_id"], :name => "index_agent_import_files_on_parent_id"
|
36
|
+
add_index "agent_import_files", ["state"], :name => "index_agent_import_files_on_state"
|
37
|
+
add_index "agent_import_files", ["user_id"], :name => "index_agent_import_files_on_user_id"
|
38
|
+
|
39
|
+
create_table "agent_import_results", :force => true do |t|
|
40
|
+
t.integer "agent_import_file_id"
|
41
|
+
t.integer "agent_id"
|
42
|
+
t.integer "user_id"
|
43
|
+
t.text "body"
|
44
|
+
t.datetime "created_at", :null => false
|
45
|
+
t.datetime "updated_at", :null => false
|
46
|
+
end
|
47
|
+
|
48
|
+
create_table "agent_relationship_types", :force => true do |t|
|
49
|
+
t.string "name", :null => false
|
50
|
+
t.text "display_name"
|
51
|
+
t.text "note"
|
52
|
+
t.integer "position"
|
53
|
+
t.datetime "created_at", :null => false
|
54
|
+
t.datetime "updated_at", :null => false
|
55
|
+
end
|
56
|
+
|
57
|
+
create_table "agent_relationships", :force => true do |t|
|
58
|
+
t.integer "parent_id"
|
59
|
+
t.integer "child_id"
|
60
|
+
t.integer "agent_relationship_type_id"
|
61
|
+
t.datetime "created_at", :null => false
|
62
|
+
t.datetime "updated_at", :null => false
|
63
|
+
t.integer "position"
|
64
|
+
end
|
65
|
+
|
66
|
+
add_index "agent_relationships", ["child_id"], :name => "index_agent_relationships_on_child_id"
|
67
|
+
add_index "agent_relationships", ["parent_id"], :name => "index_agent_relationships_on_parent_id"
|
68
|
+
|
69
|
+
create_table "agent_types", :force => true do |t|
|
70
|
+
t.string "name", :null => false
|
71
|
+
t.text "display_name"
|
72
|
+
t.text "note"
|
73
|
+
t.integer "position"
|
74
|
+
t.datetime "created_at", :null => false
|
75
|
+
t.datetime "updated_at", :null => false
|
76
|
+
end
|
77
|
+
|
78
|
+
create_table "agents", :force => true do |t|
|
79
|
+
t.integer "user_id"
|
80
|
+
t.string "last_name"
|
81
|
+
t.string "middle_name"
|
82
|
+
t.string "first_name"
|
83
|
+
t.string "last_name_transcription"
|
84
|
+
t.string "middle_name_transcription"
|
85
|
+
t.string "first_name_transcription"
|
86
|
+
t.string "corporate_name"
|
87
|
+
t.string "corporate_name_transcription"
|
88
|
+
t.string "full_name"
|
89
|
+
t.text "full_name_transcription"
|
90
|
+
t.text "full_name_alternative"
|
91
|
+
t.datetime "created_at", :null => false
|
92
|
+
t.datetime "updated_at", :null => false
|
93
|
+
t.datetime "deleted_at"
|
94
|
+
t.string "zip_code_1"
|
95
|
+
t.string "zip_code_2"
|
96
|
+
t.text "address_1"
|
97
|
+
t.text "address_2"
|
98
|
+
t.text "address_1_note"
|
99
|
+
t.text "address_2_note"
|
100
|
+
t.string "telephone_number_1"
|
101
|
+
t.string "telephone_number_2"
|
102
|
+
t.string "fax_number_1"
|
103
|
+
t.string "fax_number_2"
|
104
|
+
t.text "other_designation"
|
105
|
+
t.text "place"
|
106
|
+
t.string "postal_code"
|
107
|
+
t.text "street"
|
108
|
+
t.text "locality"
|
109
|
+
t.text "region"
|
110
|
+
t.datetime "date_of_birth"
|
111
|
+
t.datetime "date_of_death"
|
112
|
+
t.integer "language_id", :default => 1, :null => false
|
113
|
+
t.integer "country_id", :default => 1, :null => false
|
114
|
+
t.integer "agent_type_id", :default => 1, :null => false
|
115
|
+
t.integer "lock_version", :default => 0, :null => false
|
116
|
+
t.text "note"
|
117
|
+
t.integer "required_role_id", :default => 1, :null => false
|
118
|
+
t.integer "required_score", :default => 0, :null => false
|
119
|
+
t.string "state"
|
120
|
+
t.text "email"
|
121
|
+
t.text "url"
|
122
|
+
t.text "full_name_alternative_transcription"
|
123
|
+
t.string "birth_date"
|
124
|
+
t.string "death_date"
|
125
|
+
t.string "agent_identifier"
|
126
|
+
end
|
127
|
+
|
128
|
+
add_index "agents", ["agent_identifier"], :name => "index_agents_on_agent_identifier"
|
129
|
+
add_index "agents", ["country_id"], :name => "index_agents_on_country_id"
|
130
|
+
add_index "agents", ["full_name"], :name => "index_agents_on_full_name"
|
131
|
+
add_index "agents", ["language_id"], :name => "index_agents_on_language_id"
|
132
|
+
add_index "agents", ["required_role_id"], :name => "index_agents_on_required_role_id"
|
133
|
+
add_index "agents", ["user_id"], :name => "index_agents_on_user_id", :unique => true
|
134
|
+
|
135
|
+
create_table "baskets", :force => true do |t|
|
136
|
+
t.integer "user_id"
|
137
|
+
t.text "note"
|
138
|
+
t.integer "lock_version", :default => 0, :null => false
|
139
|
+
t.datetime "created_at", :null => false
|
140
|
+
t.datetime "updated_at", :null => false
|
141
|
+
end
|
142
|
+
|
143
|
+
add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
|
144
|
+
|
145
|
+
create_table "bookmark_stat_has_manifestations", :force => true do |t|
|
146
|
+
t.integer "bookmark_stat_id", :null => false
|
147
|
+
t.integer "manifestation_id", :null => false
|
148
|
+
t.integer "bookmarks_count"
|
149
|
+
t.datetime "created_at", :null => false
|
150
|
+
t.datetime "updated_at", :null => false
|
151
|
+
end
|
152
|
+
|
153
|
+
add_index "bookmark_stat_has_manifestations", ["bookmark_stat_id"], :name => "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
|
154
|
+
add_index "bookmark_stat_has_manifestations", ["manifestation_id"], :name => "index_bookmark_stat_has_manifestations_on_manifestation_id"
|
155
|
+
|
156
|
+
create_table "bookmark_stats", :force => true do |t|
|
157
|
+
t.datetime "start_date"
|
158
|
+
t.datetime "end_date"
|
159
|
+
t.datetime "started_at"
|
160
|
+
t.datetime "completed_at"
|
161
|
+
t.text "note"
|
162
|
+
t.string "state"
|
163
|
+
t.datetime "created_at", :null => false
|
164
|
+
t.datetime "updated_at", :null => false
|
165
|
+
end
|
166
|
+
|
167
|
+
add_index "bookmark_stats", ["state"], :name => "index_bookmark_stats_on_state"
|
168
|
+
|
169
|
+
create_table "bookmarks", :force => true do |t|
|
170
|
+
t.integer "user_id", :null => false
|
171
|
+
t.integer "manifestation_id"
|
172
|
+
t.text "title"
|
173
|
+
t.string "url"
|
174
|
+
t.text "note"
|
175
|
+
t.boolean "shared"
|
176
|
+
t.datetime "created_at", :null => false
|
177
|
+
t.datetime "updated_at", :null => false
|
178
|
+
end
|
179
|
+
|
180
|
+
add_index "bookmarks", ["manifestation_id"], :name => "index_bookmarks_on_manifestation_id"
|
181
|
+
add_index "bookmarks", ["url"], :name => "index_bookmarks_on_url"
|
182
|
+
add_index "bookmarks", ["user_id"], :name => "index_bookmarks_on_user_id"
|
183
|
+
|
184
|
+
create_table "bookstores", :force => true do |t|
|
185
|
+
t.text "name", :null => false
|
186
|
+
t.string "zip_code"
|
187
|
+
t.text "address"
|
188
|
+
t.text "note"
|
189
|
+
t.string "telephone_number"
|
190
|
+
t.string "fax_number"
|
191
|
+
t.string "url"
|
192
|
+
t.integer "position"
|
193
|
+
t.datetime "deleted_at"
|
194
|
+
t.datetime "created_at", :null => false
|
195
|
+
t.datetime "updated_at", :null => false
|
196
|
+
end
|
197
|
+
|
198
|
+
create_table "budget_types", :force => true do |t|
|
199
|
+
t.string "name"
|
200
|
+
t.text "display_name"
|
201
|
+
t.text "note"
|
202
|
+
t.integer "position"
|
203
|
+
t.datetime "created_at", :null => false
|
204
|
+
t.datetime "updated_at", :null => false
|
205
|
+
end
|
206
|
+
|
207
|
+
create_table "carrier_type_has_checkout_types", :force => true do |t|
|
208
|
+
t.integer "carrier_type_id", :null => false
|
209
|
+
t.integer "checkout_type_id", :null => false
|
210
|
+
t.text "note"
|
211
|
+
t.integer "position"
|
212
|
+
t.datetime "created_at", :null => false
|
213
|
+
t.datetime "updated_at", :null => false
|
214
|
+
end
|
215
|
+
|
216
|
+
add_index "carrier_type_has_checkout_types", ["carrier_type_id"], :name => "index_carrier_type_has_checkout_types_on_m_form_id"
|
217
|
+
add_index "carrier_type_has_checkout_types", ["checkout_type_id"], :name => "index_carrier_type_has_checkout_types_on_checkout_type_id"
|
218
|
+
|
219
|
+
create_table "carrier_types", :force => true do |t|
|
220
|
+
t.string "name", :null => false
|
221
|
+
t.text "display_name"
|
222
|
+
t.text "note"
|
223
|
+
t.integer "position"
|
224
|
+
t.datetime "created_at", :null => false
|
225
|
+
t.datetime "updated_at", :null => false
|
226
|
+
end
|
227
|
+
|
228
|
+
create_table "checked_items", :force => true do |t|
|
229
|
+
t.integer "item_id", :null => false
|
230
|
+
t.integer "basket_id", :null => false
|
231
|
+
t.datetime "due_date", :null => false
|
232
|
+
t.datetime "created_at", :null => false
|
233
|
+
t.datetime "updated_at", :null => false
|
234
|
+
t.integer "librarian_id"
|
235
|
+
end
|
236
|
+
|
237
|
+
add_index "checked_items", ["basket_id"], :name => "index_checked_items_on_basket_id"
|
238
|
+
add_index "checked_items", ["item_id"], :name => "index_checked_items_on_item_id"
|
239
|
+
|
240
|
+
create_table "checkins", :force => true do |t|
|
241
|
+
t.integer "item_id", :null => false
|
242
|
+
t.integer "librarian_id"
|
243
|
+
t.integer "basket_id"
|
244
|
+
t.datetime "created_at", :null => false
|
245
|
+
t.datetime "updated_at", :null => false
|
246
|
+
end
|
247
|
+
|
248
|
+
add_index "checkins", ["basket_id"], :name => "index_checkins_on_basket_id"
|
249
|
+
add_index "checkins", ["item_id"], :name => "index_checkins_on_item_id"
|
250
|
+
add_index "checkins", ["librarian_id"], :name => "index_checkins_on_librarian_id"
|
251
|
+
|
252
|
+
create_table "checkout_stat_has_manifestations", :force => true do |t|
|
253
|
+
t.integer "manifestation_checkout_stat_id", :null => false
|
254
|
+
t.integer "manifestation_id", :null => false
|
255
|
+
t.integer "checkouts_count"
|
256
|
+
t.datetime "created_at", :null => false
|
257
|
+
t.datetime "updated_at", :null => false
|
258
|
+
end
|
259
|
+
|
260
|
+
add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], :name => "index_checkout_stat_has_manifestations_on_checkout_stat_id"
|
261
|
+
add_index "checkout_stat_has_manifestations", ["manifestation_id"], :name => "index_checkout_stat_has_manifestations_on_manifestation_id"
|
262
|
+
|
263
|
+
create_table "checkout_stat_has_users", :force => true do |t|
|
264
|
+
t.integer "user_checkout_stat_id", :null => false
|
265
|
+
t.integer "user_id", :null => false
|
266
|
+
t.integer "checkouts_count", :default => 0, :null => false
|
267
|
+
t.datetime "created_at", :null => false
|
268
|
+
t.datetime "updated_at", :null => false
|
269
|
+
end
|
270
|
+
|
271
|
+
add_index "checkout_stat_has_users", ["user_checkout_stat_id"], :name => "index_checkout_stat_has_users_on_user_checkout_stat_id"
|
272
|
+
add_index "checkout_stat_has_users", ["user_id"], :name => "index_checkout_stat_has_users_on_user_id"
|
273
|
+
|
274
|
+
create_table "checkout_types", :force => true do |t|
|
275
|
+
t.string "name", :null => false
|
276
|
+
t.text "display_name"
|
277
|
+
t.text "note"
|
278
|
+
t.integer "position"
|
279
|
+
t.datetime "created_at", :null => false
|
280
|
+
t.datetime "updated_at", :null => false
|
281
|
+
end
|
282
|
+
|
283
|
+
add_index "checkout_types", ["name"], :name => "index_checkout_types_on_name"
|
284
|
+
|
285
|
+
create_table "checkouts", :force => true do |t|
|
286
|
+
t.integer "user_id"
|
287
|
+
t.integer "item_id", :null => false
|
288
|
+
t.integer "checkin_id"
|
289
|
+
t.integer "librarian_id"
|
290
|
+
t.integer "basket_id"
|
291
|
+
t.datetime "due_date"
|
292
|
+
t.integer "checkout_renewal_count", :default => 0, :null => false
|
293
|
+
t.integer "lock_version", :default => 0, :null => false
|
294
|
+
t.datetime "created_at", :null => false
|
295
|
+
t.datetime "updated_at", :null => false
|
296
|
+
end
|
297
|
+
|
298
|
+
add_index "checkouts", ["basket_id"], :name => "index_checkouts_on_basket_id"
|
299
|
+
add_index "checkouts", ["checkin_id"], :name => "index_checkouts_on_checkin_id"
|
300
|
+
add_index "checkouts", ["item_id", "basket_id"], :name => "index_checkouts_on_item_id_and_basket_id", :unique => true
|
301
|
+
add_index "checkouts", ["item_id"], :name => "index_checkouts_on_item_id"
|
302
|
+
add_index "checkouts", ["librarian_id"], :name => "index_checkouts_on_librarian_id"
|
303
|
+
add_index "checkouts", ["user_id"], :name => "index_checkouts_on_user_id"
|
304
|
+
|
305
|
+
create_table "circulation_statuses", :force => true do |t|
|
306
|
+
t.string "name", :null => false
|
307
|
+
t.text "display_name"
|
308
|
+
t.text "note"
|
309
|
+
t.integer "position"
|
310
|
+
t.datetime "created_at", :null => false
|
311
|
+
t.datetime "updated_at", :null => false
|
312
|
+
end
|
313
|
+
|
314
|
+
create_table "classification_types", :force => true do |t|
|
315
|
+
t.string "name", :null => false
|
316
|
+
t.text "display_name"
|
317
|
+
t.text "note"
|
318
|
+
t.integer "position"
|
319
|
+
t.datetime "created_at", :null => false
|
320
|
+
t.datetime "updated_at", :null => false
|
321
|
+
end
|
322
|
+
|
323
|
+
create_table "classifications", :force => true do |t|
|
324
|
+
t.integer "parent_id"
|
325
|
+
t.string "category", :null => false
|
326
|
+
t.text "note"
|
327
|
+
t.integer "classification_type_id", :null => false
|
328
|
+
t.datetime "created_at", :null => false
|
329
|
+
t.datetime "updated_at", :null => false
|
330
|
+
t.integer "lft"
|
331
|
+
t.integer "rgt"
|
332
|
+
t.integer "manifestation_id"
|
333
|
+
end
|
334
|
+
|
335
|
+
add_index "classifications", ["category"], :name => "index_classifications_on_category"
|
336
|
+
add_index "classifications", ["classification_type_id"], :name => "index_classifications_on_classification_type_id"
|
337
|
+
add_index "classifications", ["manifestation_id"], :name => "index_classifications_on_manifestation_id"
|
338
|
+
add_index "classifications", ["parent_id"], :name => "index_classifications_on_parent_id"
|
339
|
+
|
340
|
+
create_table "content_types", :force => true do |t|
|
341
|
+
t.string "name", :null => false
|
342
|
+
t.text "display_name"
|
343
|
+
t.text "note"
|
344
|
+
t.integer "position"
|
345
|
+
t.datetime "created_at", :null => false
|
346
|
+
t.datetime "updated_at", :null => false
|
347
|
+
end
|
348
|
+
|
349
|
+
create_table "countries", :force => true do |t|
|
350
|
+
t.string "name", :null => false
|
351
|
+
t.text "display_name"
|
352
|
+
t.string "alpha_2"
|
353
|
+
t.string "alpha_3"
|
354
|
+
t.string "numeric_3"
|
355
|
+
t.text "note"
|
356
|
+
t.integer "position"
|
357
|
+
end
|
358
|
+
|
359
|
+
add_index "countries", ["alpha_2"], :name => "index_countries_on_alpha_2"
|
360
|
+
add_index "countries", ["alpha_3"], :name => "index_countries_on_alpha_3"
|
361
|
+
add_index "countries", ["name"], :name => "index_countries_on_name"
|
362
|
+
add_index "countries", ["numeric_3"], :name => "index_countries_on_numeric_3"
|
363
|
+
|
364
|
+
create_table "create_types", :force => true do |t|
|
365
|
+
t.string "name"
|
366
|
+
t.text "display_name"
|
367
|
+
t.text "note"
|
368
|
+
t.integer "position"
|
369
|
+
t.datetime "created_at", :null => false
|
370
|
+
t.datetime "updated_at", :null => false
|
371
|
+
end
|
372
|
+
|
373
|
+
create_table "creates", :force => true do |t|
|
374
|
+
t.integer "agent_id", :null => false
|
375
|
+
t.integer "work_id", :null => false
|
376
|
+
t.integer "position"
|
377
|
+
t.datetime "created_at", :null => false
|
378
|
+
t.datetime "updated_at", :null => false
|
379
|
+
t.integer "create_type_id"
|
380
|
+
end
|
381
|
+
|
382
|
+
add_index "creates", ["agent_id"], :name => "index_creates_on_agent_id"
|
383
|
+
add_index "creates", ["work_id"], :name => "index_creates_on_work_id"
|
384
|
+
|
385
|
+
create_table "delayed_jobs", :force => true do |t|
|
386
|
+
t.integer "priority", :default => 0
|
387
|
+
t.integer "attempts", :default => 0
|
388
|
+
t.text "handler"
|
389
|
+
t.text "last_error"
|
390
|
+
t.datetime "run_at"
|
391
|
+
t.datetime "locked_at"
|
392
|
+
t.datetime "failed_at"
|
393
|
+
t.string "locked_by"
|
394
|
+
t.datetime "created_at", :null => false
|
395
|
+
t.datetime "updated_at", :null => false
|
396
|
+
t.string "queue"
|
397
|
+
end
|
398
|
+
|
399
|
+
add_index "delayed_jobs", ["priority", "run_at"], :name => "delayed_jobs_priority"
|
400
|
+
|
401
|
+
create_table "donates", :force => true do |t|
|
402
|
+
t.integer "agent_id", :null => false
|
403
|
+
t.integer "item_id", :null => false
|
404
|
+
t.datetime "created_at", :null => false
|
405
|
+
t.datetime "updated_at", :null => false
|
406
|
+
end
|
407
|
+
|
408
|
+
add_index "donates", ["agent_id"], :name => "index_donates_on_agent_id"
|
409
|
+
add_index "donates", ["item_id"], :name => "index_donates_on_item_id"
|
410
|
+
|
411
|
+
create_table "event_categories", :force => true do |t|
|
412
|
+
t.string "name", :null => false
|
413
|
+
t.text "display_name"
|
414
|
+
t.text "note"
|
415
|
+
t.integer "position"
|
416
|
+
t.datetime "created_at", :null => false
|
417
|
+
t.datetime "updated_at", :null => false
|
418
|
+
end
|
419
|
+
|
420
|
+
create_table "event_import_files", :force => true do |t|
|
421
|
+
t.integer "parent_id"
|
422
|
+
t.string "content_type"
|
423
|
+
t.integer "size"
|
424
|
+
t.integer "user_id"
|
425
|
+
t.text "note"
|
426
|
+
t.datetime "executed_at"
|
427
|
+
t.string "state"
|
428
|
+
t.string "event_import_file_name"
|
429
|
+
t.string "event_import_content_type"
|
430
|
+
t.integer "event_import_file_size"
|
431
|
+
t.datetime "event_import_updated_at"
|
432
|
+
t.string "edit_mode"
|
433
|
+
t.datetime "created_at", :null => false
|
434
|
+
t.datetime "updated_at", :null => false
|
435
|
+
t.string "event_import_fingerprint"
|
436
|
+
t.text "error_message"
|
437
|
+
end
|
438
|
+
|
439
|
+
add_index "event_import_files", ["parent_id"], :name => "index_event_import_files_on_parent_id"
|
440
|
+
add_index "event_import_files", ["state"], :name => "index_event_import_files_on_state"
|
441
|
+
add_index "event_import_files", ["user_id"], :name => "index_event_import_files_on_user_id"
|
442
|
+
|
443
|
+
create_table "event_import_results", :force => true do |t|
|
444
|
+
t.integer "event_import_file_id"
|
445
|
+
t.integer "event_id"
|
446
|
+
t.text "body"
|
447
|
+
t.datetime "created_at", :null => false
|
448
|
+
t.datetime "updated_at", :null => false
|
449
|
+
end
|
450
|
+
|
451
|
+
create_table "events", :force => true do |t|
|
452
|
+
t.integer "library_id", :default => 1, :null => false
|
453
|
+
t.integer "event_category_id", :default => 1, :null => false
|
454
|
+
t.string "name"
|
455
|
+
t.text "note"
|
456
|
+
t.datetime "start_at"
|
457
|
+
t.datetime "end_at"
|
458
|
+
t.boolean "all_day", :default => false, :null => false
|
459
|
+
t.datetime "deleted_at"
|
460
|
+
t.text "display_name"
|
461
|
+
t.datetime "created_at", :null => false
|
462
|
+
t.datetime "updated_at", :null => false
|
463
|
+
end
|
464
|
+
|
465
|
+
add_index "events", ["event_category_id"], :name => "index_events_on_event_category_id"
|
466
|
+
add_index "events", ["library_id"], :name => "index_events_on_library_id"
|
467
|
+
|
468
|
+
create_table "exemplifies", :force => true do |t|
|
469
|
+
t.integer "manifestation_id", :null => false
|
470
|
+
t.integer "item_id", :null => false
|
471
|
+
t.integer "position"
|
472
|
+
t.datetime "created_at", :null => false
|
473
|
+
t.datetime "updated_at", :null => false
|
474
|
+
end
|
475
|
+
|
476
|
+
add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
|
477
|
+
add_index "exemplifies", ["manifestation_id"], :name => "index_exemplifies_on_manifestation_id"
|
478
|
+
|
479
|
+
create_table "extents", :force => true do |t|
|
480
|
+
t.string "name", :null => false
|
481
|
+
t.text "display_name"
|
482
|
+
t.text "note"
|
483
|
+
t.integer "position"
|
484
|
+
t.datetime "created_at", :null => false
|
485
|
+
t.datetime "updated_at", :null => false
|
486
|
+
end
|
487
|
+
|
488
|
+
create_table "form_of_works", :force => true do |t|
|
489
|
+
t.string "name", :null => false
|
490
|
+
t.text "display_name"
|
491
|
+
t.text "note"
|
492
|
+
t.integer "position"
|
493
|
+
t.datetime "created_at", :null => false
|
494
|
+
t.datetime "updated_at", :null => false
|
495
|
+
end
|
496
|
+
|
497
|
+
create_table "frequencies", :force => true do |t|
|
498
|
+
t.string "name", :null => false
|
499
|
+
t.text "display_name"
|
500
|
+
t.text "note"
|
501
|
+
t.integer "position"
|
502
|
+
t.datetime "created_at", :null => false
|
503
|
+
t.datetime "updated_at", :null => false
|
504
|
+
end
|
505
|
+
|
506
|
+
create_table "identifier_types", :force => true do |t|
|
507
|
+
t.string "name"
|
508
|
+
t.text "display_name"
|
509
|
+
t.text "note"
|
510
|
+
t.integer "position"
|
511
|
+
t.datetime "created_at", :null => false
|
512
|
+
t.datetime "updated_at", :null => false
|
513
|
+
end
|
514
|
+
|
515
|
+
create_table "identifiers", :force => true do |t|
|
516
|
+
t.string "body", :null => false
|
517
|
+
t.integer "identifier_type_id", :null => false
|
518
|
+
t.integer "manifestation_id"
|
519
|
+
t.boolean "primary"
|
520
|
+
t.integer "position"
|
521
|
+
t.datetime "created_at", :null => false
|
522
|
+
t.datetime "updated_at", :null => false
|
523
|
+
end
|
524
|
+
|
525
|
+
add_index "identifiers", ["body", "identifier_type_id"], :name => "index_identifiers_on_body_and_identifier_type_id"
|
526
|
+
add_index "identifiers", ["manifestation_id"], :name => "index_identifiers_on_manifestation_id"
|
527
|
+
|
528
|
+
create_table "import_requests", :force => true do |t|
|
529
|
+
t.string "isbn"
|
530
|
+
t.string "state"
|
531
|
+
t.integer "manifestation_id"
|
532
|
+
t.integer "user_id"
|
533
|
+
t.datetime "created_at", :null => false
|
534
|
+
t.datetime "updated_at", :null => false
|
535
|
+
end
|
536
|
+
|
537
|
+
add_index "import_requests", ["isbn"], :name => "index_import_requests_on_isbn"
|
538
|
+
add_index "import_requests", ["manifestation_id"], :name => "index_import_requests_on_manifestation_id"
|
539
|
+
add_index "import_requests", ["user_id"], :name => "index_import_requests_on_user_id"
|
15
540
|
|
16
541
|
create_table "inter_library_loans", :force => true do |t|
|
17
542
|
t.integer "item_id", :null => false
|
@@ -30,38 +555,105 @@ ActiveRecord::Schema.define(:version => 20120105074911) do
|
|
30
555
|
add_index "inter_library_loans", ["borrowing_library_id"], :name => "index_inter_library_loans_on_borrowing_library_id"
|
31
556
|
add_index "inter_library_loans", ["item_id"], :name => "index_inter_library_loans_on_item_id"
|
32
557
|
|
558
|
+
create_table "inventories", :force => true do |t|
|
559
|
+
t.integer "item_id"
|
560
|
+
t.integer "inventory_file_id"
|
561
|
+
t.text "note"
|
562
|
+
t.datetime "created_at", :null => false
|
563
|
+
t.datetime "updated_at", :null => false
|
564
|
+
end
|
565
|
+
|
566
|
+
add_index "inventories", ["inventory_file_id"], :name => "index_inventories_on_inventory_file_id"
|
567
|
+
add_index "inventories", ["item_id"], :name => "index_inventories_on_item_id"
|
568
|
+
|
569
|
+
create_table "inventory_files", :force => true do |t|
|
570
|
+
t.string "filename"
|
571
|
+
t.string "content_type"
|
572
|
+
t.integer "size"
|
573
|
+
t.integer "user_id"
|
574
|
+
t.text "note"
|
575
|
+
t.datetime "created_at", :null => false
|
576
|
+
t.datetime "updated_at", :null => false
|
577
|
+
t.string "inventory_file_name"
|
578
|
+
t.string "inventory_content_type"
|
579
|
+
t.integer "inventory_file_size"
|
580
|
+
t.datetime "inventory_updated_at"
|
581
|
+
t.string "inventory_fingerprint"
|
582
|
+
end
|
583
|
+
|
584
|
+
add_index "inventory_files", ["user_id"], :name => "index_inventory_files_on_user_id"
|
585
|
+
|
586
|
+
create_table "item_has_use_restrictions", :force => true do |t|
|
587
|
+
t.integer "item_id", :null => false
|
588
|
+
t.integer "use_restriction_id", :null => false
|
589
|
+
t.datetime "created_at", :null => false
|
590
|
+
t.datetime "updated_at", :null => false
|
591
|
+
end
|
592
|
+
|
593
|
+
add_index "item_has_use_restrictions", ["item_id"], :name => "index_item_has_use_restrictions_on_item_id"
|
594
|
+
add_index "item_has_use_restrictions", ["use_restriction_id"], :name => "index_item_has_use_restrictions_on_use_restriction_id"
|
595
|
+
|
33
596
|
create_table "items", :force => true do |t|
|
34
597
|
t.string "call_number"
|
35
598
|
t.string "item_identifier"
|
36
|
-
t.
|
37
|
-
t.
|
38
|
-
t.datetime "created_at", :null => false
|
39
|
-
t.datetime "updated_at", :null => false
|
599
|
+
t.datetime "created_at", :null => false
|
600
|
+
t.datetime "updated_at", :null => false
|
40
601
|
t.datetime "deleted_at"
|
41
|
-
t.integer "shelf_id",
|
42
|
-
t.
|
43
|
-
t.boolean "include_supplements", :default => false, :null => false
|
44
|
-
t.integer "checkouts_count", :default => 0, :null => false
|
45
|
-
t.integer "owns_count", :default => 0, :null => false
|
46
|
-
t.integer "resource_has_subjects_count", :default => 0, :null => false
|
602
|
+
t.integer "shelf_id", :default => 1, :null => false
|
603
|
+
t.boolean "include_supplements", :default => false, :null => false
|
47
604
|
t.text "note"
|
48
605
|
t.string "url"
|
49
606
|
t.integer "price"
|
50
|
-
t.integer "lock_version",
|
51
|
-
t.integer "required_role_id",
|
607
|
+
t.integer "lock_version", :default => 0, :null => false
|
608
|
+
t.integer "required_role_id", :default => 1, :null => false
|
52
609
|
t.string "state"
|
53
|
-
t.integer "required_score",
|
610
|
+
t.integer "required_score", :default => 0, :null => false
|
611
|
+
t.datetime "acquired_at"
|
612
|
+
t.integer "bookstore_id"
|
613
|
+
t.integer "budget_type_id"
|
614
|
+
t.integer "circulation_status_id", :default => 5, :null => false
|
615
|
+
t.integer "checkout_type_id", :default => 1, :null => false
|
54
616
|
end
|
55
617
|
|
618
|
+
add_index "items", ["bookstore_id"], :name => "index_items_on_bookstore_id"
|
56
619
|
add_index "items", ["checkout_type_id"], :name => "index_items_on_checkout_type_id"
|
57
620
|
add_index "items", ["circulation_status_id"], :name => "index_items_on_circulation_status_id"
|
58
621
|
add_index "items", ["item_identifier"], :name => "index_items_on_item_identifier"
|
59
622
|
add_index "items", ["required_role_id"], :name => "index_items_on_required_role_id"
|
60
623
|
add_index "items", ["shelf_id"], :name => "index_items_on_shelf_id"
|
61
624
|
|
625
|
+
create_table "languages", :force => true do |t|
|
626
|
+
t.string "name", :null => false
|
627
|
+
t.string "native_name"
|
628
|
+
t.text "display_name"
|
629
|
+
t.string "iso_639_1"
|
630
|
+
t.string "iso_639_2"
|
631
|
+
t.string "iso_639_3"
|
632
|
+
t.text "note"
|
633
|
+
t.integer "position"
|
634
|
+
end
|
635
|
+
|
636
|
+
add_index "languages", ["iso_639_1"], :name => "index_languages_on_iso_639_1"
|
637
|
+
add_index "languages", ["iso_639_2"], :name => "index_languages_on_iso_639_2"
|
638
|
+
add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
|
639
|
+
add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
|
640
|
+
|
641
|
+
create_table "lending_policies", :force => true do |t|
|
642
|
+
t.integer "item_id", :null => false
|
643
|
+
t.integer "user_group_id", :null => false
|
644
|
+
t.integer "loan_period", :default => 0, :null => false
|
645
|
+
t.datetime "fixed_due_date"
|
646
|
+
t.integer "renewal", :default => 0, :null => false
|
647
|
+
t.integer "fine", :default => 0, :null => false
|
648
|
+
t.text "note"
|
649
|
+
t.integer "position"
|
650
|
+
t.datetime "created_at", :null => false
|
651
|
+
t.datetime "updated_at", :null => false
|
652
|
+
end
|
653
|
+
|
654
|
+
add_index "lending_policies", ["item_id", "user_group_id"], :name => "index_lending_policies_on_item_id_and_user_group_id", :unique => true
|
655
|
+
|
62
656
|
create_table "libraries", :force => true do |t|
|
63
|
-
t.integer "patron_id"
|
64
|
-
t.string "patron_type"
|
65
657
|
t.string "name", :null => false
|
66
658
|
t.text "display_name"
|
67
659
|
t.string "short_display_name", :null => false
|
@@ -85,91 +677,152 @@ ActiveRecord::Schema.define(:version => 20120105074911) do
|
|
85
677
|
t.string "isil"
|
86
678
|
end
|
87
679
|
|
88
|
-
add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
|
89
|
-
add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
|
90
|
-
|
680
|
+
add_index "libraries", ["library_group_id"], :name => "index_libraries_on_library_group_id"
|
681
|
+
add_index "libraries", ["name"], :name => "index_libraries_on_name", :unique => true
|
682
|
+
|
683
|
+
create_table "library_groups", :force => true do |t|
|
684
|
+
t.string "name", :null => false
|
685
|
+
t.text "display_name"
|
686
|
+
t.string "short_name", :null => false
|
687
|
+
t.string "email"
|
688
|
+
t.text "my_networks"
|
689
|
+
t.boolean "use_dsbl", :default => false, :null => false
|
690
|
+
t.text "dsbl_list"
|
691
|
+
t.text "login_banner"
|
692
|
+
t.text "note"
|
693
|
+
t.integer "country_id"
|
694
|
+
t.datetime "created_at", :null => false
|
695
|
+
t.datetime "updated_at", :null => false
|
696
|
+
t.boolean "allow_bookmark_external_url", :default => false, :null => false
|
697
|
+
t.string "url", :default => "http://localhost:3000/"
|
698
|
+
end
|
699
|
+
|
700
|
+
add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
|
701
|
+
|
702
|
+
create_table "licenses", :force => true do |t|
|
703
|
+
t.string "name", :null => false
|
704
|
+
t.string "display_name"
|
705
|
+
t.text "note"
|
706
|
+
t.integer "position"
|
707
|
+
t.datetime "created_at", :null => false
|
708
|
+
t.datetime "updated_at", :null => false
|
709
|
+
end
|
710
|
+
|
711
|
+
create_table "manifestation_checkout_stats", :force => true do |t|
|
712
|
+
t.datetime "start_date"
|
713
|
+
t.datetime "end_date"
|
714
|
+
t.text "note"
|
715
|
+
t.string "state"
|
716
|
+
t.datetime "created_at", :null => false
|
717
|
+
t.datetime "updated_at", :null => false
|
718
|
+
t.datetime "started_at"
|
719
|
+
t.datetime "completed_at"
|
720
|
+
end
|
721
|
+
|
722
|
+
add_index "manifestation_checkout_stats", ["state"], :name => "index_manifestation_checkout_stats_on_state"
|
91
723
|
|
92
|
-
create_table "
|
93
|
-
t.string "name",
|
724
|
+
create_table "manifestation_relationship_types", :force => true do |t|
|
725
|
+
t.string "name", :null => false
|
94
726
|
t.text "display_name"
|
95
|
-
t.string "short_name", :null => false
|
96
|
-
t.string "email"
|
97
|
-
t.text "my_networks"
|
98
|
-
t.text "login_banner"
|
99
727
|
t.text "note"
|
100
|
-
t.integer "valid_period_for_new_user", :default => 365, :null => false
|
101
|
-
t.boolean "post_to_union_catalog", :default => false, :null => false
|
102
|
-
t.integer "country_id"
|
103
|
-
t.datetime "created_at", :null => false
|
104
|
-
t.datetime "updated_at", :null => false
|
105
|
-
t.text "admin_networks"
|
106
|
-
t.boolean "allow_bookmark_external_url", :default => false, :null => false
|
107
728
|
t.integer "position"
|
108
|
-
t.
|
729
|
+
t.datetime "created_at", :null => false
|
730
|
+
t.datetime "updated_at", :null => false
|
109
731
|
end
|
110
732
|
|
111
|
-
|
733
|
+
create_table "manifestation_relationships", :force => true do |t|
|
734
|
+
t.integer "parent_id"
|
735
|
+
t.integer "child_id"
|
736
|
+
t.integer "manifestation_relationship_type_id"
|
737
|
+
t.datetime "created_at", :null => false
|
738
|
+
t.datetime "updated_at", :null => false
|
739
|
+
t.integer "position"
|
740
|
+
end
|
741
|
+
|
742
|
+
add_index "manifestation_relationships", ["child_id"], :name => "index_manifestation_relationships_on_child_id"
|
743
|
+
add_index "manifestation_relationships", ["parent_id"], :name => "index_manifestation_relationships_on_parent_id"
|
744
|
+
|
745
|
+
create_table "manifestation_reserve_stats", :force => true do |t|
|
746
|
+
t.datetime "start_date"
|
747
|
+
t.datetime "end_date"
|
748
|
+
t.text "note"
|
749
|
+
t.string "state"
|
750
|
+
t.datetime "created_at", :null => false
|
751
|
+
t.datetime "updated_at", :null => false
|
752
|
+
t.datetime "started_at"
|
753
|
+
t.datetime "completed_at"
|
754
|
+
end
|
755
|
+
|
756
|
+
add_index "manifestation_reserve_stats", ["state"], :name => "index_manifestation_reserve_stats_on_state"
|
112
757
|
|
113
758
|
create_table "manifestations", :force => true do |t|
|
114
|
-
t.text "original_title",
|
759
|
+
t.text "original_title", :null => false
|
115
760
|
t.text "title_alternative"
|
116
761
|
t.text "title_transcription"
|
117
762
|
t.string "classification_number"
|
118
763
|
t.string "manifestation_identifier"
|
119
764
|
t.datetime "date_of_publication"
|
120
|
-
t.datetime "
|
121
|
-
t.datetime "created_at",
|
122
|
-
t.datetime "updated_at",
|
765
|
+
t.datetime "date_copyrighted"
|
766
|
+
t.datetime "created_at", :null => false
|
767
|
+
t.datetime "updated_at", :null => false
|
123
768
|
t.datetime "deleted_at"
|
124
769
|
t.string "access_address"
|
125
|
-
t.integer "language_id",
|
126
|
-
t.integer "carrier_type_id",
|
127
|
-
t.integer "extent_id",
|
770
|
+
t.integer "language_id", :default => 1, :null => false
|
771
|
+
t.integer "carrier_type_id", :default => 1, :null => false
|
772
|
+
t.integer "extent_id", :default => 1, :null => false
|
128
773
|
t.integer "start_page"
|
129
774
|
t.integer "end_page"
|
130
|
-
t.
|
131
|
-
t.
|
132
|
-
t.
|
133
|
-
t.string "isbn"
|
134
|
-
t.string "isbn10"
|
135
|
-
t.string "wrong_isbn"
|
136
|
-
t.string "nbn"
|
137
|
-
t.string "lccn"
|
138
|
-
t.string "oclc_number"
|
139
|
-
t.string "issn"
|
775
|
+
t.integer "height"
|
776
|
+
t.integer "width"
|
777
|
+
t.integer "depth"
|
140
778
|
t.integer "price"
|
141
779
|
t.text "fulltext"
|
142
|
-
t.string "
|
143
|
-
t.string "
|
144
|
-
t.string "
|
780
|
+
t.string "volume_number_string"
|
781
|
+
t.string "issue_number_string"
|
782
|
+
t.string "serial_number_string"
|
145
783
|
t.integer "edition"
|
146
784
|
t.text "note"
|
147
|
-
t.
|
148
|
-
t.integer "
|
149
|
-
t.integer "
|
150
|
-
t.integer "work_has_subjects_count", :default => 0, :null => false
|
151
|
-
t.boolean "repository_content", :default => false, :null => false
|
152
|
-
t.integer "lock_version", :default => 0, :null => false
|
153
|
-
t.integer "required_role_id", :default => 1, :null => false
|
785
|
+
t.boolean "repository_content", :default => false, :null => false
|
786
|
+
t.integer "lock_version", :default => 0, :null => false
|
787
|
+
t.integer "required_role_id", :default => 1, :null => false
|
154
788
|
t.string "state"
|
155
|
-
t.integer "required_score",
|
156
|
-
t.integer "frequency_id",
|
157
|
-
t.boolean "subscription_master",
|
789
|
+
t.integer "required_score", :default => 0, :null => false
|
790
|
+
t.integer "frequency_id", :default => 1, :null => false
|
791
|
+
t.boolean "subscription_master", :default => false, :null => false
|
792
|
+
t.string "attachment_file_name"
|
793
|
+
t.string "attachment_content_type"
|
794
|
+
t.integer "attachment_file_size"
|
795
|
+
t.datetime "attachment_updated_at"
|
796
|
+
t.text "title_alternative_transcription"
|
797
|
+
t.text "description"
|
798
|
+
t.text "abstract"
|
799
|
+
t.datetime "available_at"
|
800
|
+
t.datetime "valid_until"
|
801
|
+
t.datetime "date_submitted"
|
802
|
+
t.datetime "date_accepted"
|
803
|
+
t.datetime "date_caputured"
|
804
|
+
t.string "pub_date"
|
805
|
+
t.string "edition_string"
|
806
|
+
t.integer "volume_number"
|
807
|
+
t.integer "issue_number"
|
808
|
+
t.integer "serial_number"
|
809
|
+
t.integer "content_type_id", :default => 1
|
810
|
+
t.integer "year_of_publication"
|
811
|
+
t.text "attachment_meta"
|
812
|
+
t.integer "month_of_publication"
|
813
|
+
t.boolean "fulltext_content"
|
814
|
+
t.string "doi"
|
815
|
+
t.boolean "periodical"
|
816
|
+
t.text "statement_of_responsibility"
|
158
817
|
end
|
159
818
|
|
160
819
|
add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
|
161
|
-
add_index "manifestations", ["
|
162
|
-
add_index "manifestations", ["
|
163
|
-
add_index "manifestations", ["isbn"], :name => "index_manifestations_on_isbn"
|
164
|
-
add_index "manifestations", ["issn"], :name => "index_manifestations_on_issn"
|
165
|
-
add_index "manifestations", ["lccn"], :name => "index_manifestations_on_lccn"
|
820
|
+
add_index "manifestations", ["date_of_publication"], :name => "index_manifestations_on_date_of_publication"
|
821
|
+
add_index "manifestations", ["doi"], :name => "index_manifestations_on_doi"
|
166
822
|
add_index "manifestations", ["manifestation_identifier"], :name => "index_manifestations_on_manifestation_identifier"
|
167
|
-
add_index "manifestations", ["nbn"], :name => "index_manifestations_on_nbn"
|
168
|
-
add_index "manifestations", ["oclc_number"], :name => "index_manifestations_on_oclc_number"
|
169
|
-
add_index "manifestations", ["required_role_id"], :name => "index_manifestations_on_required_role_id"
|
170
823
|
add_index "manifestations", ["updated_at"], :name => "index_manifestations_on_updated_at"
|
171
824
|
|
172
|
-
create_table "
|
825
|
+
create_table "medium_of_performances", :force => true do |t|
|
173
826
|
t.string "name", :null => false
|
174
827
|
t.text "display_name"
|
175
828
|
t.text "note"
|
@@ -178,61 +831,235 @@ ActiveRecord::Schema.define(:version => 20120105074911) do
|
|
178
831
|
t.datetime "updated_at", :null => false
|
179
832
|
end
|
180
833
|
|
181
|
-
create_table "
|
182
|
-
t.integer "
|
183
|
-
t.
|
184
|
-
t.
|
185
|
-
t.
|
186
|
-
t.string "last_name_transcription"
|
187
|
-
t.string "middle_name_transcription"
|
188
|
-
t.string "first_name_transcription"
|
189
|
-
t.string "corporate_name"
|
190
|
-
t.string "corporate_name_transcription"
|
191
|
-
t.string "full_name"
|
192
|
-
t.text "full_name_transcription"
|
193
|
-
t.text "full_name_alternative"
|
194
|
-
t.datetime "created_at", :null => false
|
195
|
-
t.datetime "updated_at", :null => false
|
834
|
+
create_table "message_requests", :force => true do |t|
|
835
|
+
t.integer "sender_id"
|
836
|
+
t.integer "receiver_id"
|
837
|
+
t.integer "message_template_id"
|
838
|
+
t.datetime "sent_at"
|
196
839
|
t.datetime "deleted_at"
|
197
|
-
t.
|
198
|
-
t.string "zip_code_2"
|
199
|
-
t.text "address_1"
|
200
|
-
t.text "address_2"
|
201
|
-
t.text "address_1_note"
|
202
|
-
t.text "address_2_note"
|
203
|
-
t.string "telephone_number_1"
|
204
|
-
t.string "telephone_number_2"
|
205
|
-
t.string "fax_number_1"
|
206
|
-
t.string "fax_number_2"
|
207
|
-
t.text "other_designation"
|
208
|
-
t.text "place"
|
209
|
-
t.string "postal_code"
|
210
|
-
t.text "street"
|
211
|
-
t.text "locality"
|
212
|
-
t.text "region"
|
213
|
-
t.datetime "date_of_birth"
|
214
|
-
t.datetime "date_of_death"
|
215
|
-
t.integer "language_id", :default => 1, :null => false
|
216
|
-
t.integer "country_id", :default => 1, :null => false
|
217
|
-
t.integer "patron_type_id", :default => 1, :null => false
|
218
|
-
t.integer "lock_version", :default => 0, :null => false
|
219
|
-
t.text "note"
|
220
|
-
t.integer "creates_count", :default => 0, :null => false
|
221
|
-
t.integer "realizes_count", :default => 0, :null => false
|
222
|
-
t.integer "produces_count", :default => 0, :null => false
|
223
|
-
t.integer "owns_count", :default => 0, :null => false
|
224
|
-
t.integer "required_role_id", :default => 1, :null => false
|
225
|
-
t.integer "required_score", :default => 0, :null => false
|
840
|
+
t.text "body"
|
226
841
|
t.string "state"
|
227
|
-
t.
|
228
|
-
t.
|
842
|
+
t.datetime "created_at", :null => false
|
843
|
+
t.datetime "updated_at", :null => false
|
844
|
+
end
|
845
|
+
|
846
|
+
add_index "message_requests", ["state"], :name => "index_message_requests_on_state"
|
847
|
+
|
848
|
+
create_table "message_templates", :force => true do |t|
|
849
|
+
t.string "status", :null => false
|
850
|
+
t.text "title", :null => false
|
851
|
+
t.text "body", :null => false
|
852
|
+
t.integer "position"
|
853
|
+
t.string "locale", :default => "en"
|
854
|
+
t.datetime "created_at", :null => false
|
855
|
+
t.datetime "updated_at", :null => false
|
856
|
+
end
|
857
|
+
|
858
|
+
add_index "message_templates", ["status"], :name => "index_message_templates_on_status", :unique => true
|
859
|
+
|
860
|
+
create_table "messages", :force => true do |t|
|
861
|
+
t.datetime "read_at"
|
862
|
+
t.integer "receiver_id"
|
863
|
+
t.integer "sender_id"
|
864
|
+
t.string "subject", :null => false
|
865
|
+
t.text "body"
|
866
|
+
t.integer "message_request_id"
|
867
|
+
t.string "state"
|
868
|
+
t.integer "parent_id"
|
869
|
+
t.datetime "created_at", :null => false
|
870
|
+
t.datetime "updated_at", :null => false
|
871
|
+
t.integer "lft"
|
872
|
+
t.integer "rgt"
|
873
|
+
t.integer "depth"
|
874
|
+
end
|
875
|
+
|
876
|
+
add_index "messages", ["message_request_id"], :name => "index_messages_on_message_request_id"
|
877
|
+
add_index "messages", ["parent_id"], :name => "index_messages_on_parent_id"
|
878
|
+
add_index "messages", ["receiver_id"], :name => "index_messages_on_receiver_id"
|
879
|
+
add_index "messages", ["sender_id"], :name => "index_messages_on_sender_id"
|
880
|
+
|
881
|
+
create_table "owns", :force => true do |t|
|
882
|
+
t.integer "agent_id", :null => false
|
883
|
+
t.integer "item_id", :null => false
|
884
|
+
t.integer "position"
|
885
|
+
t.datetime "created_at", :null => false
|
886
|
+
t.datetime "updated_at", :null => false
|
887
|
+
end
|
888
|
+
|
889
|
+
add_index "owns", ["agent_id"], :name => "index_owns_on_agent_id"
|
890
|
+
add_index "owns", ["item_id"], :name => "index_owns_on_item_id"
|
891
|
+
|
892
|
+
create_table "participates", :force => true do |t|
|
893
|
+
t.integer "agent_id", :null => false
|
894
|
+
t.integer "event_id", :null => false
|
895
|
+
t.integer "position"
|
896
|
+
t.datetime "created_at", :null => false
|
897
|
+
t.datetime "updated_at", :null => false
|
898
|
+
end
|
899
|
+
|
900
|
+
add_index "participates", ["agent_id"], :name => "index_participates_on_agent_id"
|
901
|
+
add_index "participates", ["event_id"], :name => "index_participates_on_event_id"
|
902
|
+
|
903
|
+
create_table "picture_files", :force => true do |t|
|
904
|
+
t.integer "picture_attachable_id"
|
905
|
+
t.string "picture_attachable_type"
|
906
|
+
t.string "content_type"
|
907
|
+
t.text "title"
|
908
|
+
t.string "thumbnail"
|
909
|
+
t.integer "position"
|
910
|
+
t.datetime "created_at", :null => false
|
911
|
+
t.datetime "updated_at", :null => false
|
912
|
+
t.string "picture_file_name"
|
913
|
+
t.string "picture_content_type"
|
914
|
+
t.integer "picture_file_size"
|
915
|
+
t.datetime "picture_updated_at"
|
916
|
+
t.text "picture_meta"
|
917
|
+
t.string "picture_fingerprint"
|
918
|
+
end
|
919
|
+
|
920
|
+
add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], :name => "index_picture_files_on_picture_attachable_id_and_type"
|
921
|
+
|
922
|
+
create_table "produce_types", :force => true do |t|
|
923
|
+
t.string "name"
|
924
|
+
t.text "display_name"
|
925
|
+
t.text "note"
|
926
|
+
t.integer "position"
|
927
|
+
t.datetime "created_at", :null => false
|
928
|
+
t.datetime "updated_at", :null => false
|
929
|
+
end
|
930
|
+
|
931
|
+
create_table "produces", :force => true do |t|
|
932
|
+
t.integer "agent_id", :null => false
|
933
|
+
t.integer "manifestation_id", :null => false
|
934
|
+
t.integer "position"
|
935
|
+
t.datetime "created_at", :null => false
|
936
|
+
t.datetime "updated_at", :null => false
|
937
|
+
t.integer "produce_type_id"
|
938
|
+
end
|
939
|
+
|
940
|
+
add_index "produces", ["agent_id"], :name => "index_produces_on_agent_id"
|
941
|
+
add_index "produces", ["manifestation_id"], :name => "index_produces_on_manifestation_id"
|
942
|
+
|
943
|
+
create_table "realize_types", :force => true do |t|
|
944
|
+
t.string "name"
|
945
|
+
t.text "display_name"
|
946
|
+
t.text "note"
|
947
|
+
t.integer "position"
|
948
|
+
t.datetime "created_at", :null => false
|
949
|
+
t.datetime "updated_at", :null => false
|
950
|
+
end
|
951
|
+
|
952
|
+
create_table "realizes", :force => true do |t|
|
953
|
+
t.integer "agent_id", :null => false
|
954
|
+
t.integer "expression_id", :null => false
|
955
|
+
t.integer "position"
|
956
|
+
t.datetime "created_at", :null => false
|
957
|
+
t.datetime "updated_at", :null => false
|
958
|
+
t.integer "realize_type_id"
|
959
|
+
end
|
960
|
+
|
961
|
+
add_index "realizes", ["agent_id"], :name => "index_realizes_on_agent_id"
|
962
|
+
add_index "realizes", ["expression_id"], :name => "index_realizes_on_expression_id"
|
963
|
+
|
964
|
+
create_table "request_status_types", :force => true do |t|
|
965
|
+
t.string "name", :null => false
|
966
|
+
t.text "display_name"
|
967
|
+
t.text "note"
|
968
|
+
t.integer "position"
|
969
|
+
t.datetime "created_at", :null => false
|
970
|
+
t.datetime "updated_at", :null => false
|
971
|
+
end
|
972
|
+
|
973
|
+
create_table "request_types", :force => true do |t|
|
974
|
+
t.string "name", :null => false
|
975
|
+
t.text "display_name"
|
976
|
+
t.text "note"
|
977
|
+
t.integer "position"
|
978
|
+
t.datetime "created_at", :null => false
|
979
|
+
t.datetime "updated_at", :null => false
|
980
|
+
end
|
981
|
+
|
982
|
+
create_table "reserve_stat_has_manifestations", :force => true do |t|
|
983
|
+
t.integer "manifestation_reserve_stat_id", :null => false
|
984
|
+
t.integer "manifestation_id", :null => false
|
985
|
+
t.integer "reserves_count"
|
986
|
+
t.datetime "created_at", :null => false
|
987
|
+
t.datetime "updated_at", :null => false
|
988
|
+
end
|
989
|
+
|
990
|
+
add_index "reserve_stat_has_manifestations", ["manifestation_id"], :name => "index_reserve_stat_has_manifestations_on_manifestation_id"
|
991
|
+
add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], :name => "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
|
992
|
+
|
993
|
+
create_table "reserve_stat_has_users", :force => true do |t|
|
994
|
+
t.integer "user_reserve_stat_id", :null => false
|
995
|
+
t.integer "user_id", :null => false
|
996
|
+
t.integer "reserves_count"
|
997
|
+
t.datetime "created_at", :null => false
|
998
|
+
t.datetime "updated_at", :null => false
|
999
|
+
end
|
1000
|
+
|
1001
|
+
add_index "reserve_stat_has_users", ["user_id"], :name => "index_reserve_stat_has_users_on_user_id"
|
1002
|
+
add_index "reserve_stat_has_users", ["user_reserve_stat_id"], :name => "index_reserve_stat_has_users_on_user_reserve_stat_id"
|
1003
|
+
|
1004
|
+
create_table "reserves", :force => true do |t|
|
1005
|
+
t.integer "user_id", :null => false
|
1006
|
+
t.integer "manifestation_id", :null => false
|
1007
|
+
t.integer "item_id"
|
1008
|
+
t.integer "request_status_type_id", :null => false
|
1009
|
+
t.datetime "checked_out_at"
|
1010
|
+
t.datetime "created_at", :null => false
|
1011
|
+
t.datetime "updated_at", :null => false
|
1012
|
+
t.datetime "canceled_at"
|
1013
|
+
t.datetime "expired_at"
|
1014
|
+
t.datetime "deleted_at"
|
1015
|
+
t.string "state"
|
1016
|
+
t.boolean "expiration_notice_to_agent", :default => false
|
1017
|
+
t.boolean "expiration_notice_to_library", :default => false
|
1018
|
+
t.datetime "retained_at"
|
1019
|
+
t.datetime "postponed_at"
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
|
1023
|
+
add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
|
1024
|
+
add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
|
1025
|
+
add_index "reserves", ["state"], :name => "index_reserves_on_state"
|
1026
|
+
add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
|
1027
|
+
|
1028
|
+
create_table "resource_import_files", :force => true do |t|
|
1029
|
+
t.integer "parent_id"
|
1030
|
+
t.string "content_type"
|
1031
|
+
t.integer "size"
|
1032
|
+
t.integer "user_id"
|
1033
|
+
t.text "note"
|
1034
|
+
t.datetime "executed_at"
|
1035
|
+
t.string "state"
|
1036
|
+
t.string "resource_import_file_name"
|
1037
|
+
t.string "resource_import_content_type"
|
1038
|
+
t.integer "resource_import_file_size"
|
1039
|
+
t.datetime "resource_import_updated_at"
|
1040
|
+
t.datetime "created_at", :null => false
|
1041
|
+
t.datetime "updated_at", :null => false
|
1042
|
+
t.string "edit_mode"
|
1043
|
+
t.string "resource_import_fingerprint"
|
1044
|
+
t.text "error_message"
|
229
1045
|
end
|
230
1046
|
|
231
|
-
add_index "
|
232
|
-
add_index "
|
233
|
-
add_index "
|
234
|
-
|
235
|
-
|
1047
|
+
add_index "resource_import_files", ["parent_id"], :name => "index_resource_import_files_on_parent_id"
|
1048
|
+
add_index "resource_import_files", ["state"], :name => "index_resource_import_files_on_state"
|
1049
|
+
add_index "resource_import_files", ["user_id"], :name => "index_resource_import_files_on_user_id"
|
1050
|
+
|
1051
|
+
create_table "resource_import_results", :force => true do |t|
|
1052
|
+
t.integer "resource_import_file_id"
|
1053
|
+
t.integer "manifestation_id"
|
1054
|
+
t.integer "item_id"
|
1055
|
+
t.text "body"
|
1056
|
+
t.datetime "created_at", :null => false
|
1057
|
+
t.datetime "updated_at", :null => false
|
1058
|
+
end
|
1059
|
+
|
1060
|
+
add_index "resource_import_results", ["item_id"], :name => "index_resource_import_results_on_item_id"
|
1061
|
+
add_index "resource_import_results", ["manifestation_id"], :name => "index_resource_import_results_on_manifestation_id"
|
1062
|
+
add_index "resource_import_results", ["resource_import_file_id"], :name => "index_resource_import_results_on_resource_import_file_id"
|
236
1063
|
|
237
1064
|
create_table "roles", :force => true do |t|
|
238
1065
|
t.string "name"
|
@@ -243,20 +1070,207 @@ ActiveRecord::Schema.define(:version => 20120105074911) do
|
|
243
1070
|
t.datetime "updated_at", :null => false
|
244
1071
|
end
|
245
1072
|
|
1073
|
+
create_table "search_engines", :force => true do |t|
|
1074
|
+
t.string "name", :null => false
|
1075
|
+
t.text "display_name"
|
1076
|
+
t.string "url", :null => false
|
1077
|
+
t.text "base_url", :null => false
|
1078
|
+
t.text "http_method", :null => false
|
1079
|
+
t.text "query_param", :null => false
|
1080
|
+
t.text "additional_param"
|
1081
|
+
t.text "note"
|
1082
|
+
t.integer "position"
|
1083
|
+
t.datetime "created_at", :null => false
|
1084
|
+
t.datetime "updated_at", :null => false
|
1085
|
+
end
|
1086
|
+
|
1087
|
+
create_table "series_statement_merge_lists", :force => true do |t|
|
1088
|
+
t.string "title"
|
1089
|
+
t.datetime "created_at", :null => false
|
1090
|
+
t.datetime "updated_at", :null => false
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
create_table "series_statement_merges", :force => true do |t|
|
1094
|
+
t.integer "series_statement_id", :null => false
|
1095
|
+
t.integer "series_statement_merge_list_id", :null => false
|
1096
|
+
t.datetime "created_at", :null => false
|
1097
|
+
t.datetime "updated_at", :null => false
|
1098
|
+
end
|
1099
|
+
|
1100
|
+
add_index "series_statement_merges", ["series_statement_id"], :name => "index_series_statement_merges_on_series_statement_id"
|
1101
|
+
add_index "series_statement_merges", ["series_statement_merge_list_id"], :name => "index_series_statement_merges_on_series_statement_merge_list_id"
|
1102
|
+
|
1103
|
+
create_table "series_statements", :force => true do |t|
|
1104
|
+
t.text "original_title"
|
1105
|
+
t.text "numbering"
|
1106
|
+
t.text "title_subseries"
|
1107
|
+
t.text "numbering_subseries"
|
1108
|
+
t.integer "position"
|
1109
|
+
t.datetime "created_at", :null => false
|
1110
|
+
t.datetime "updated_at", :null => false
|
1111
|
+
t.text "title_transcription"
|
1112
|
+
t.text "title_alternative"
|
1113
|
+
t.string "series_statement_identifier"
|
1114
|
+
t.integer "manifestation_id"
|
1115
|
+
t.text "note"
|
1116
|
+
t.text "title_subseries_transcription"
|
1117
|
+
t.text "creator_string"
|
1118
|
+
t.text "volume_number_string"
|
1119
|
+
t.text "volume_number_transcription_string"
|
1120
|
+
t.boolean "series_master"
|
1121
|
+
t.integer "root_manifestation_id"
|
1122
|
+
end
|
1123
|
+
|
1124
|
+
add_index "series_statements", ["manifestation_id"], :name => "index_series_statements_on_manifestation_id"
|
1125
|
+
add_index "series_statements", ["root_manifestation_id"], :name => "index_series_statements_on_root_manifestation_id"
|
1126
|
+
add_index "series_statements", ["series_statement_identifier"], :name => "index_series_statements_on_series_statement_identifier"
|
1127
|
+
|
246
1128
|
create_table "shelves", :force => true do |t|
|
247
|
-
t.string "name",
|
1129
|
+
t.string "name", :null => false
|
248
1130
|
t.text "display_name"
|
249
1131
|
t.text "note"
|
250
|
-
t.integer "library_id", :default => 1,
|
251
|
-
t.integer "items_count", :default => 0,
|
1132
|
+
t.integer "library_id", :default => 1, :null => false
|
1133
|
+
t.integer "items_count", :default => 0, :null => false
|
252
1134
|
t.integer "position"
|
253
|
-
t.datetime "created_at",
|
254
|
-
t.datetime "updated_at",
|
1135
|
+
t.datetime "created_at", :null => false
|
1136
|
+
t.datetime "updated_at", :null => false
|
255
1137
|
t.datetime "deleted_at"
|
1138
|
+
t.boolean "closed", :default => false, :null => false
|
256
1139
|
end
|
257
1140
|
|
258
1141
|
add_index "shelves", ["library_id"], :name => "index_shelves_on_library_id"
|
259
1142
|
|
1143
|
+
create_table "subject_heading_type_has_subjects", :force => true do |t|
|
1144
|
+
t.integer "subject_id", :null => false
|
1145
|
+
t.string "subject_type"
|
1146
|
+
t.integer "subject_heading_type_id", :null => false
|
1147
|
+
t.datetime "created_at", :null => false
|
1148
|
+
t.datetime "updated_at", :null => false
|
1149
|
+
end
|
1150
|
+
|
1151
|
+
add_index "subject_heading_type_has_subjects", ["subject_id"], :name => "index_subject_heading_type_has_subjects_on_subject_id"
|
1152
|
+
|
1153
|
+
create_table "subject_heading_types", :force => true do |t|
|
1154
|
+
t.string "name", :null => false
|
1155
|
+
t.text "display_name"
|
1156
|
+
t.text "note"
|
1157
|
+
t.integer "position"
|
1158
|
+
t.datetime "created_at", :null => false
|
1159
|
+
t.datetime "updated_at", :null => false
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
create_table "subject_types", :force => true do |t|
|
1163
|
+
t.string "name", :null => false
|
1164
|
+
t.text "display_name"
|
1165
|
+
t.text "note"
|
1166
|
+
t.integer "position"
|
1167
|
+
t.datetime "created_at", :null => false
|
1168
|
+
t.datetime "updated_at", :null => false
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
create_table "subjects", :force => true do |t|
|
1172
|
+
t.integer "parent_id"
|
1173
|
+
t.integer "use_term_id"
|
1174
|
+
t.string "term"
|
1175
|
+
t.text "term_transcription"
|
1176
|
+
t.integer "subject_type_id", :null => false
|
1177
|
+
t.text "scope_note"
|
1178
|
+
t.text "note"
|
1179
|
+
t.integer "required_role_id", :default => 1, :null => false
|
1180
|
+
t.integer "lock_version", :default => 0, :null => false
|
1181
|
+
t.datetime "created_at"
|
1182
|
+
t.datetime "updated_at"
|
1183
|
+
t.datetime "deleted_at"
|
1184
|
+
t.string "url"
|
1185
|
+
t.integer "manifestation_id"
|
1186
|
+
t.integer "subject_heading_type_id"
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
add_index "subjects", ["manifestation_id"], :name => "index_subjects_on_manifestation_id"
|
1190
|
+
add_index "subjects", ["parent_id"], :name => "index_subjects_on_parent_id"
|
1191
|
+
add_index "subjects", ["required_role_id"], :name => "index_subjects_on_required_role_id"
|
1192
|
+
add_index "subjects", ["subject_type_id"], :name => "index_subjects_on_subject_type_id"
|
1193
|
+
add_index "subjects", ["term"], :name => "index_subjects_on_term"
|
1194
|
+
add_index "subjects", ["use_term_id"], :name => "index_subjects_on_use_term_id"
|
1195
|
+
|
1196
|
+
create_table "taggings", :force => true do |t|
|
1197
|
+
t.integer "tag_id"
|
1198
|
+
t.integer "taggable_id"
|
1199
|
+
t.string "taggable_type"
|
1200
|
+
t.integer "tagger_id"
|
1201
|
+
t.string "tagger_type"
|
1202
|
+
t.string "context"
|
1203
|
+
t.datetime "created_at"
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
add_index "taggings", ["tag_id"], :name => "index_taggings_on_tag_id"
|
1207
|
+
add_index "taggings", ["taggable_id", "taggable_type", "context"], :name => "index_taggings_on_taggable_id_and_taggable_type_and_context"
|
1208
|
+
|
1209
|
+
create_table "tags", :force => true do |t|
|
1210
|
+
t.string "name"
|
1211
|
+
t.string "name_transcription"
|
1212
|
+
t.datetime "created_at", :null => false
|
1213
|
+
t.datetime "updated_at", :null => false
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
create_table "use_restrictions", :force => true do |t|
|
1217
|
+
t.string "name", :null => false
|
1218
|
+
t.text "display_name"
|
1219
|
+
t.text "note"
|
1220
|
+
t.integer "position"
|
1221
|
+
t.datetime "created_at", :null => false
|
1222
|
+
t.datetime "updated_at", :null => false
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
create_table "user_checkout_stats", :force => true do |t|
|
1226
|
+
t.datetime "start_date"
|
1227
|
+
t.datetime "end_date"
|
1228
|
+
t.text "note"
|
1229
|
+
t.string "state"
|
1230
|
+
t.datetime "created_at", :null => false
|
1231
|
+
t.datetime "updated_at", :null => false
|
1232
|
+
t.datetime "started_at"
|
1233
|
+
t.datetime "completed_at"
|
1234
|
+
end
|
1235
|
+
|
1236
|
+
add_index "user_checkout_stats", ["state"], :name => "index_user_checkout_stats_on_state"
|
1237
|
+
|
1238
|
+
create_table "user_group_has_checkout_types", :force => true do |t|
|
1239
|
+
t.integer "user_group_id", :null => false
|
1240
|
+
t.integer "checkout_type_id", :null => false
|
1241
|
+
t.integer "checkout_limit", :default => 0, :null => false
|
1242
|
+
t.integer "checkout_period", :default => 0, :null => false
|
1243
|
+
t.integer "checkout_renewal_limit", :default => 0, :null => false
|
1244
|
+
t.integer "reservation_limit", :default => 0, :null => false
|
1245
|
+
t.integer "reservation_expired_period", :default => 7, :null => false
|
1246
|
+
t.boolean "set_due_date_before_closing_day", :default => false, :null => false
|
1247
|
+
t.datetime "fixed_due_date"
|
1248
|
+
t.text "note"
|
1249
|
+
t.integer "position"
|
1250
|
+
t.datetime "created_at", :null => false
|
1251
|
+
t.datetime "updated_at", :null => false
|
1252
|
+
t.integer "current_checkout_count"
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
add_index "user_group_has_checkout_types", ["checkout_type_id"], :name => "index_user_group_has_checkout_types_on_checkout_type_id"
|
1256
|
+
add_index "user_group_has_checkout_types", ["user_group_id"], :name => "index_user_group_has_checkout_types_on_user_group_id"
|
1257
|
+
|
1258
|
+
create_table "user_groups", :force => true do |t|
|
1259
|
+
t.string "name"
|
1260
|
+
t.string "string"
|
1261
|
+
t.text "display_name"
|
1262
|
+
t.text "note"
|
1263
|
+
t.integer "position"
|
1264
|
+
t.datetime "created_at", :null => false
|
1265
|
+
t.datetime "updated_at", :null => false
|
1266
|
+
t.datetime "deleted_at"
|
1267
|
+
t.integer "valid_period_for_new_user", :default => 0, :null => false
|
1268
|
+
t.datetime "expired_at"
|
1269
|
+
t.integer "number_of_day_to_notify_overdue", :default => 1, :null => false
|
1270
|
+
t.integer "number_of_day_to_notify_due_date", :default => 7, :null => false
|
1271
|
+
t.integer "number_of_time_to_notify_overdue", :default => 3, :null => false
|
1272
|
+
end
|
1273
|
+
|
260
1274
|
create_table "user_has_roles", :force => true do |t|
|
261
1275
|
t.integer "user_id"
|
262
1276
|
t.integer "role_id"
|
@@ -264,36 +1278,70 @@ ActiveRecord::Schema.define(:version => 20120105074911) do
|
|
264
1278
|
t.datetime "updated_at", :null => false
|
265
1279
|
end
|
266
1280
|
|
1281
|
+
create_table "user_reserve_stats", :force => true do |t|
|
1282
|
+
t.datetime "start_date"
|
1283
|
+
t.datetime "end_date"
|
1284
|
+
t.text "note"
|
1285
|
+
t.string "state"
|
1286
|
+
t.datetime "created_at", :null => false
|
1287
|
+
t.datetime "updated_at", :null => false
|
1288
|
+
t.datetime "started_at"
|
1289
|
+
t.datetime "completed_at"
|
1290
|
+
end
|
1291
|
+
|
1292
|
+
add_index "user_reserve_stats", ["state"], :name => "index_user_reserve_stats_on_state"
|
1293
|
+
|
267
1294
|
create_table "users", :force => true do |t|
|
268
1295
|
t.integer "user_group_id"
|
269
1296
|
t.integer "required_role_id"
|
270
1297
|
t.string "username"
|
271
1298
|
t.text "note"
|
272
1299
|
t.string "locale"
|
273
|
-
t.
|
274
|
-
t.
|
275
|
-
t.
|
276
|
-
t.
|
1300
|
+
t.string "user_number"
|
1301
|
+
t.integer "library_id"
|
1302
|
+
t.datetime "locked_at"
|
1303
|
+
t.datetime "created_at", :null => false
|
1304
|
+
t.datetime "updated_at", :null => false
|
1305
|
+
t.string "email", :default => "", :null => false
|
1306
|
+
t.string "encrypted_password", :default => "", :null => false
|
277
1307
|
t.string "reset_password_token"
|
278
1308
|
t.datetime "reset_password_sent_at"
|
279
1309
|
t.datetime "remember_created_at"
|
280
|
-
t.integer "sign_in_count",
|
1310
|
+
t.integer "sign_in_count", :default => 0
|
281
1311
|
t.datetime "current_sign_in_at"
|
282
1312
|
t.datetime "last_sign_in_at"
|
283
1313
|
t.string "current_sign_in_ip"
|
284
1314
|
t.string "last_sign_in_ip"
|
285
|
-
t.
|
286
|
-
t.string "
|
287
|
-
t.
|
288
|
-
t.datetime "confirmation_sent_at"
|
289
|
-
t.string "unconfirmed_email"
|
290
|
-
t.integer "failed_attempts", :default => 0
|
291
|
-
t.string "unlock_token"
|
292
|
-
t.datetime "locked_at"
|
293
|
-
t.string "authentication_token"
|
1315
|
+
t.boolean "save_checkout_history", :default => false, :null => false
|
1316
|
+
t.string "checkout_icalendar_token"
|
1317
|
+
t.boolean "share_bookmarks"
|
294
1318
|
end
|
295
1319
|
|
1320
|
+
add_index "users", ["checkout_icalendar_token"], :name => "index_users_on_checkout_icalendar_token", :unique => true
|
296
1321
|
add_index "users", ["email"], :name => "index_users_on_email"
|
297
1322
|
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
298
1323
|
|
1324
|
+
create_table "versions", :force => true do |t|
|
1325
|
+
t.string "item_type", :null => false
|
1326
|
+
t.integer "item_id", :null => false
|
1327
|
+
t.string "event", :null => false
|
1328
|
+
t.string "whodunnit"
|
1329
|
+
t.text "object"
|
1330
|
+
t.datetime "created_at"
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
add_index "versions", ["item_type", "item_id"], :name => "index_versions_on_item_type_and_item_id"
|
1334
|
+
|
1335
|
+
create_table "work_has_subjects", :force => true do |t|
|
1336
|
+
t.integer "subject_id"
|
1337
|
+
t.string "subject_type"
|
1338
|
+
t.integer "work_id"
|
1339
|
+
t.integer "position"
|
1340
|
+
t.datetime "created_at", :null => false
|
1341
|
+
t.datetime "updated_at", :null => false
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
add_index "work_has_subjects", ["subject_id"], :name => "index_work_has_subjects_on_subject_id"
|
1345
|
+
add_index "work_has_subjects", ["work_id"], :name => "index_work_has_subjects_on_work_id"
|
1346
|
+
|
299
1347
|
end
|