enju_manifestation_viewer 0.2.4 → 0.3.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/app/assets/config/enju_manifestation_viewer_manifest.js +0 -0
- data/{lib/enju_manifestation_viewer/manifestation_viewer_helper.rb → app/helpers/enju_manifestation_viewer/application_helper.rb} +1 -1
- data/{lib → app/helpers}/enju_manifestation_viewer/book_jacket_helper.rb +0 -0
- data/app/views/manifestations/_youtube.html.erb +1 -1
- data/db/migrate/20160813191533_add_book_jacket_source_to_library_group.rb +1 -1
- data/db/migrate/20160813191820_add_screenshot_generator_to_library_group.rb +1 -1
- data/lib/enju_manifestation_viewer.rb +0 -4
- data/lib/enju_manifestation_viewer/version.rb +1 -1
- data/spec/dummy/bin/rails +1 -1
- data/spec/dummy/bin/setup +21 -12
- data/spec/dummy/bin/update +29 -0
- data/spec/dummy/bin/yarn +11 -0
- data/spec/dummy/config/application.rb +6 -16
- data/spec/dummy/config/environment.rb +4 -4
- data/spec/dummy/config/environments/development.rb +24 -11
- data/spec/dummy/config/environments/production.rb +28 -16
- data/spec/dummy/config/environments/test.rb +6 -8
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +6 -5
- data/spec/dummy/config/initializers/mime_types.rb +0 -1
- data/spec/dummy/config/initializers/wrap_parameters.rb +5 -5
- data/spec/dummy/db/migrate/001_create_agents.rb +1 -1
- data/spec/dummy/db/migrate/002_devise_create_users.rb +1 -1
- data/spec/dummy/db/migrate/005_create_manifestations.rb +1 -1
- data/spec/dummy/db/migrate/006_create_items.rb +1 -1
- data/spec/dummy/db/migrate/012_create_owns.rb +1 -1
- data/spec/dummy/db/migrate/015_create_creates.rb +1 -1
- data/spec/dummy/db/migrate/041_create_roles.rb +1 -1
- data/spec/dummy/db/migrate/047_create_produces.rb +1 -1
- data/spec/dummy/db/migrate/059_create_libraries.rb +1 -1
- data/spec/dummy/db/migrate/069_create_shelves.rb +1 -1
- data/spec/dummy/db/migrate/073_create_carrier_types.rb +1 -1
- data/spec/dummy/db/migrate/077_create_user_groups.rb +1 -1
- data/spec/dummy/db/migrate/080_create_library_groups.rb +1 -1
- data/spec/dummy/db/migrate/112_create_frequencies.rb +1 -1
- data/spec/dummy/db/migrate/117_create_form_of_works.rb +1 -1
- data/spec/dummy/db/migrate/120_create_baskets.rb +1 -1
- data/spec/dummy/db/migrate/124_create_bookstores.rb +1 -1
- data/spec/dummy/db/migrate/125_create_donates.rb +1 -1
- data/spec/dummy/db/migrate/130_create_request_status_types.rb +1 -1
- data/spec/dummy/db/migrate/131_create_request_types.rb +1 -1
- data/spec/dummy/db/migrate/133_create_agent_merges.rb +1 -1
- data/spec/dummy/db/migrate/134_create_agent_merge_lists.rb +1 -1
- data/spec/dummy/db/migrate/20080830154109_create_realizes.rb +1 -1
- data/spec/dummy/db/migrate/20080830172106_create_exemplifies.rb +1 -1
- data/spec/dummy/db/migrate/20080905191442_create_agent_types.rb +1 -1
- data/spec/dummy/db/migrate/20081006090811_create_subscriptions.rb +1 -1
- data/spec/dummy/db/migrate/20081006093246_create_subscribes.rb +1 -1
- data/spec/dummy/db/migrate/20081023092436_create_search_engines.rb +1 -1
- data/spec/dummy/db/migrate/20081025083323_create_countries.rb +1 -1
- data/spec/dummy/db/migrate/20081025083905_create_languages.rb +1 -1
- data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +1 -1
- data/spec/dummy/db/migrate/20081028083142_create_agent_import_files.rb +1 -1
- data/spec/dummy/db/migrate/20081028083208_create_resource_import_files.rb +1 -1
- data/spec/dummy/db/migrate/20090705133942_add_attachments_picture_to_picture_file.rb +1 -1
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20090720091106_create_medium_of_performances.rb +1 -1
- data/spec/dummy/db/migrate/20090720091429_create_content_types.rb +1 -1
- data/spec/dummy/db/migrate/20090812151902_create_agent_relationship_types.rb +1 -1
- data/spec/dummy/db/migrate/20091012101112_add_dcndl_schema.rb +1 -1
- data/spec/dummy/db/migrate/20091025080447_create_licenses.rb +1 -1
- data/spec/dummy/db/migrate/20091202124834_create_versions.rb +1 -1
- data/spec/dummy/db/migrate/20091214131723_create_series_statements.rb +1 -1
- data/spec/dummy/db/migrate/20100129142347_create_import_requests.rb +1 -1
- data/spec/dummy/db/migrate/20100211105551_add_admin_networks_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20100223121519_rename_series_statement_title_to_original_title.rb +1 -1
- data/spec/dummy/db/migrate/20100314190054_add_opening_hour_to_library.rb +1 -1
- data/spec/dummy/db/migrate/20100321235924_add_series_statement_identifier_to_series_statement.rb +1 -1
- data/spec/dummy/db/migrate/20100525124311_create_manifestation_relationships.rb +1 -1
- data/spec/dummy/db/migrate/20100606065209_create_user_has_roles.rb +1 -1
- data/spec/dummy/db/migrate/20100606073747_create_agent_relationships.rb +1 -1
- data/spec/dummy/db/migrate/20100607044753_create_manifestation_relationship_types.rb +1 -1
- data/spec/dummy/db/migrate/20100814091104_add_position_to_agent_relationship.rb +1 -1
- data/spec/dummy/db/migrate/20100925043847_create_resource_import_results.rb +1 -1
- data/spec/dummy/db/migrate/20100925074559_create_agent_import_results.rb +1 -1
- data/spec/dummy/db/migrate/20101212070145_add_acquired_at_to_item.rb +1 -1
- data/spec/dummy/db/migrate/20110222073537_add_url_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20110301035123_add_pub_date_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20110301121550_add_birth_date_and_death_date_to_agent.rb +1 -1
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +1 -1
- data/spec/dummy/db/migrate/20110603184217_add_edit_mode_to_resource_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20110619064807_add_edition_string_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20110620173525_add_bookstore_id_to_item.rb +1 -1
- data/spec/dummy/db/migrate/20110627034940_create_series_statement_merge_lists.rb +1 -1
- data/spec/dummy/db/migrate/20110627035057_create_series_statement_merges.rb +1 -1
- data/spec/dummy/db/migrate/20110916091020_add_volume_number_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20110916103953_add_manifestaiton_id_to_series_statement.rb +1 -1
- data/spec/dummy/db/migrate/20110918162329_add_note_to_series_statement.rb +1 -1
- data/spec/dummy/db/migrate/20111124110059_create_create_types.rb +1 -1
- data/spec/dummy/db/migrate/20111124110319_create_realize_types.rb +1 -1
- data/spec/dummy/db/migrate/20111124110355_create_produce_types.rb +1 -1
- data/spec/dummy/db/migrate/20111124112131_add_create_type_to_create.rb +1 -1
- data/spec/dummy/db/migrate/20120105074911_add_isil_to_library.rb +1 -1
- data/spec/dummy/db/migrate/20120125152919_add_title_subseries_transcription_to_series_statement.rb +1 -1
- data/spec/dummy/db/migrate/20120129014038_create_budget_types.rb +1 -1
- data/spec/dummy/db/migrate/20120129020544_add_budget_type_id_to_item.rb +1 -1
- data/spec/dummy/db/migrate/20120319120638_add_content_type_id_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +1 -1
- data/spec/dummy/db/migrate/20120410104851_add_year_of_publication_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20120413072700_add_picture_meta_to_picture_file.rb +1 -1
- data/spec/dummy/db/migrate/20120413100352_add_fingerprint_to_picture_file.rb +1 -1
- data/spec/dummy/db/migrate/20120413161340_add_fingerprint_to_resource_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20120413161403_add_fingerprint_to_agent_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20120413170705_add_error_message_to_resource_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20120413170720_add_error_message_to_agent_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20120418081407_add_month_of_publication_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20120510140958_add_closed_to_shelf.rb +1 -1
- data/spec/dummy/db/migrate/20120511072422_add_agent_identifier_to_agent.rb +1 -1
- data/spec/dummy/db/migrate/20120602141129_add_edit_mode_to_agent_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20121116031206_add_fulltext_content_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20130221154434_add_additional_attributes_to_user.rb +1 -1
- data/spec/dummy/db/migrate/20130412083556_add_latitude_and_longitude_to_library.rb +1 -1
- data/spec/dummy/db/migrate/20130421093852_add_periodical_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20130421155019_add_creator_string_to_series_statement.rb +1 -1
- data/spec/dummy/db/migrate/20130421164124_add_series_master_to_series_statement.rb +1 -1
- data/spec/dummy/db/migrate/20130429020822_add_root_manifestation_id_to_series_statement.rb +1 -1
- data/spec/dummy/db/migrate/20130506175303_create_identifier_types.rb +1 -1
- data/spec/dummy/db/migrate/20130506175834_create_identifiers.rb +1 -1
- data/spec/dummy/db/migrate/20130509185724_add_statement_of_responsibility_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20140110122216_create_user_import_files.rb +1 -1
- data/spec/dummy/db/migrate/20140110131010_create_user_import_results.rb +1 -1
- data/spec/dummy/db/migrate/20140122054321_create_profiles.rb +1 -1
- data/spec/dummy/db/migrate/20140519170214_create_resource_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140519171220_create_import_request_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140524020735_create_agent_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140524074813_create_user_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140610123439_drop_email_unique_constraint_enju_leaf_rc10.rb +1 -1
- data/spec/dummy/db/migrate/20140614065404_create_resource_export_files.rb +1 -1
- data/spec/dummy/db/migrate/20140614141500_create_resource_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140628072217_add_user_encoding_to_user_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140628073524_add_user_encoding_to_agent_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140628073535_add_user_encoding_to_resource_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140709113413_create_user_export_files.rb +1 -1
- data/spec/dummy/db/migrate/20140709113905_create_user_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20140720140916_add_binding_item_identifier_to_item.rb +1 -1
- data/spec/dummy/db/migrate/20140720170714_add_default_library_id_to_user_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140720170735_add_default_user_group_id_to_user_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140721151416_add_default_shelf_id_to_resource_import_file.rb +1 -1
- data/spec/dummy/db/migrate/20140802082007_add_manifestation_id_to_item.rb +1 -1
- data/spec/dummy/db/migrate/20140811031145_add_expired_at_to_profile.rb +1 -1
- data/spec/dummy/db/migrate/20140813182425_add_publication_place_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20140821151023_create_colors.rb +1 -1
- data/spec/dummy/db/migrate/20140822114527_add_error_message_to_resource_import_result.rb +1 -1
- data/spec/dummy/db/migrate/20140823083524_add_extent_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20140823094847_add_dimensions_to_manifestation.rb +1 -1
- data/spec/dummy/db/migrate/20140823095740_rename_manifestation_periodical_to_serial.rb +1 -1
- data/spec/dummy/db/migrate/20141003181336_add_full_name_transcription_to_profile.rb +1 -1
- data/spec/dummy/db/migrate/20141003182825_add_date_of_birth_to_profile.rb +1 -1
- data/spec/dummy/db/migrate/20150117111136_add_foreign_key_to_items_referencing_manifestations.rb +1 -1
- data/spec/dummy/db/migrate/20150221063719_add_settings_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20150506105356_add_error_message_to_user_import_result.rb +1 -1
- data/spec/dummy/db/migrate/20150924115059_create_withdraws.rb +1 -1
- data/spec/dummy/db/migrate/20151125004028_add_profile_id_to_agent.rb +1 -1
- data/spec/dummy/db/migrate/20151213070943_add_translation_table_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20151213072705_add_footer_banner_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160610093229_add_html_snippet_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160627232219_add_most_recent_to_user_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160627232316_add_most_recent_to_user_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160801080612_add_most_recent_to_import_request_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160801080619_add_most_recent_to_resource_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160801080637_add_most_recent_to_resource_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160801080643_add_most_recent_to_agent_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20160811102604_add_picture_width_to_picture_file.rb +1 -1
- data/spec/dummy/db/migrate/20160813191647_add_max_number_of_results_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160813191733_add_family_name_first_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160813192542_add_pub_year_facet_range_interval_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160813203039_add_user_id_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +1 -1
- data/spec/dummy/db/migrate/20170305064014_add_csv_charset_conversion_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20171119051258_set_not_null_to_manifestation_id_on_items.rb +1 -1
- data/spec/dummy/db/migrate/20171126133835_rename_login_banner_to_old_login_banner.rb +1 -1
- data/spec/dummy/db/migrate/20171126135238_add_foreign_key_to_library_group_id_on_library.rb +1 -1
- data/spec/dummy/db/migrate/20180102162311_add_header_logo_meta_to_library_group.rb +1 -1
- data/spec/dummy/db/migrate/20180107160726_add_constraints_to_most_recent_for_user_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20180107160740_add_constraints_to_most_recent_for_user_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20180107161311_add_constraints_to_most_recent_for_agent_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20180107161331_add_constraints_to_most_recent_for_resource_import_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20180107161347_add_constraints_to_most_recent_for_resource_export_file_transitions.rb +1 -1
- data/spec/dummy/db/migrate/20180107161410_add_constraints_to_most_recent_for_import_request_transitions.rb +1 -1
- data/spec/dummy/db/schema.rb +581 -641
- data/spec/helpers/{manifestation_viewer_helper_spec.rb → application_helper_spec.rb} +2 -2
- metadata +32 -21
- data/spec/dummy/app/models/user.rb +0 -8
@@ -1,5 +1,5 @@
|
|
1
1
|
# This migration comes from enju_library_engine (originally 20151213070943)
|
2
|
-
class AddTranslationTableToLibraryGroup < ActiveRecord::Migration
|
2
|
+
class AddTranslationTableToLibraryGroup < ActiveRecord::Migration[4.2]
|
3
3
|
def up
|
4
4
|
if defined?(Globalize)
|
5
5
|
LibraryGroup.create_translation_table!({
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# This migration comes from enju_library_engine (originally 20151213072705)
|
2
|
-
class AddFooterBannerToLibraryGroup < ActiveRecord::Migration
|
2
|
+
class AddFooterBannerToLibraryGroup < ActiveRecord::Migration[4.2]
|
3
3
|
def up
|
4
4
|
if defined?(Globalize)
|
5
5
|
LibraryGroup.add_translation_fields! footer_banner: :text
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# This file is auto-generated from the current state of the database. Instead
|
3
2
|
# of editing this file, please use the migrations feature of Active Record to
|
4
3
|
# incrementally modify your database, and then regenerate this schema definition.
|
@@ -14,1015 +13,956 @@
|
|
14
13
|
ActiveRecord::Schema.define(version: 20180107161410) do
|
15
14
|
|
16
15
|
create_table "accepts", force: :cascade do |t|
|
17
|
-
t.integer
|
18
|
-
t.integer
|
19
|
-
t.integer
|
16
|
+
t.integer "basket_id"
|
17
|
+
t.integer "item_id"
|
18
|
+
t.integer "librarian_id"
|
20
19
|
t.datetime "created_at"
|
21
20
|
t.datetime "updated_at"
|
21
|
+
t.index ["basket_id"], name: "index_accepts_on_basket_id"
|
22
|
+
t.index ["item_id"], name: "index_accepts_on_item_id"
|
22
23
|
end
|
23
24
|
|
24
|
-
add_index "accepts", ["basket_id"], name: "index_accepts_on_basket_id"
|
25
|
-
add_index "accepts", ["item_id"], name: "index_accepts_on_item_id"
|
26
|
-
add_index "accepts", ["librarian_id"], name: "index_accepts_on_librarian_id"
|
27
|
-
|
28
25
|
create_table "agent_import_file_transitions", force: :cascade do |t|
|
29
|
-
t.string
|
30
|
-
t.text
|
31
|
-
t.integer
|
32
|
-
t.integer
|
26
|
+
t.string "to_state"
|
27
|
+
t.text "metadata", default: "{}"
|
28
|
+
t.integer "sort_key"
|
29
|
+
t.integer "agent_import_file_id"
|
33
30
|
t.datetime "created_at"
|
34
31
|
t.datetime "updated_at"
|
35
|
-
t.boolean
|
32
|
+
t.boolean "most_recent", null: false
|
33
|
+
t.index ["agent_import_file_id", "most_recent"], name: "index_agent_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
34
|
+
t.index ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
|
35
|
+
t.index ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
|
36
36
|
end
|
37
37
|
|
38
|
-
add_index "agent_import_file_transitions", ["agent_import_file_id", "most_recent"], name: "index_agent_import_file_transitions_parent_most_recent", unique: true
|
39
|
-
add_index "agent_import_file_transitions", ["agent_import_file_id"], name: "index_agent_import_file_transitions_on_agent_import_file_id"
|
40
|
-
add_index "agent_import_file_transitions", ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
|
41
|
-
|
42
38
|
create_table "agent_import_files", force: :cascade do |t|
|
43
|
-
t.integer
|
44
|
-
t.string
|
45
|
-
t.integer
|
46
|
-
t.integer
|
47
|
-
t.text
|
39
|
+
t.integer "parent_id"
|
40
|
+
t.string "content_type"
|
41
|
+
t.integer "size"
|
42
|
+
t.integer "user_id"
|
43
|
+
t.text "note"
|
48
44
|
t.datetime "executed_at"
|
49
|
-
t.string
|
50
|
-
t.string
|
51
|
-
t.integer
|
45
|
+
t.string "agent_import_file_name"
|
46
|
+
t.string "agent_import_content_type"
|
47
|
+
t.integer "agent_import_file_size"
|
52
48
|
t.datetime "agent_import_updated_at"
|
53
49
|
t.datetime "created_at"
|
54
50
|
t.datetime "updated_at"
|
55
|
-
t.string
|
56
|
-
t.text
|
57
|
-
t.string
|
58
|
-
t.string
|
51
|
+
t.string "agent_import_fingerprint"
|
52
|
+
t.text "error_message"
|
53
|
+
t.string "edit_mode"
|
54
|
+
t.string "user_encoding"
|
55
|
+
t.index ["parent_id"], name: "index_agent_import_files_on_parent_id"
|
56
|
+
t.index ["user_id"], name: "index_agent_import_files_on_user_id"
|
59
57
|
end
|
60
58
|
|
61
|
-
add_index "agent_import_files", ["parent_id"], name: "index_agent_import_files_on_parent_id"
|
62
|
-
add_index "agent_import_files", ["user_id"], name: "index_agent_import_files_on_user_id"
|
63
|
-
|
64
59
|
create_table "agent_import_results", force: :cascade do |t|
|
65
|
-
t.integer
|
66
|
-
t.integer
|
67
|
-
t.text
|
60
|
+
t.integer "agent_import_file_id"
|
61
|
+
t.integer "agent_id"
|
62
|
+
t.text "body"
|
68
63
|
t.datetime "created_at"
|
69
64
|
t.datetime "updated_at"
|
70
65
|
end
|
71
66
|
|
72
67
|
create_table "agent_merge_lists", force: :cascade do |t|
|
73
|
-
t.string
|
68
|
+
t.string "title"
|
74
69
|
t.datetime "created_at"
|
75
70
|
t.datetime "updated_at"
|
76
71
|
end
|
77
72
|
|
78
73
|
create_table "agent_merges", force: :cascade do |t|
|
79
|
-
t.integer
|
80
|
-
t.integer
|
74
|
+
t.integer "agent_id", null: false
|
75
|
+
t.integer "agent_merge_list_id", null: false
|
81
76
|
t.datetime "created_at"
|
82
77
|
t.datetime "updated_at"
|
78
|
+
t.index ["agent_id"], name: "index_agent_merges_on_agent_id"
|
79
|
+
t.index ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
|
83
80
|
end
|
84
81
|
|
85
|
-
add_index "agent_merges", ["agent_id"], name: "index_agent_merges_on_agent_id"
|
86
|
-
add_index "agent_merges", ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
|
87
|
-
|
88
82
|
create_table "agent_relationship_types", force: :cascade do |t|
|
89
|
-
t.string
|
90
|
-
t.text
|
91
|
-
t.text
|
92
|
-
t.integer
|
83
|
+
t.string "name", null: false
|
84
|
+
t.text "display_name"
|
85
|
+
t.text "note"
|
86
|
+
t.integer "position"
|
93
87
|
t.datetime "created_at"
|
94
88
|
t.datetime "updated_at"
|
95
89
|
end
|
96
90
|
|
97
91
|
create_table "agent_relationships", force: :cascade do |t|
|
98
|
-
t.integer
|
99
|
-
t.integer
|
100
|
-
t.integer
|
92
|
+
t.integer "parent_id"
|
93
|
+
t.integer "child_id"
|
94
|
+
t.integer "agent_relationship_type_id"
|
101
95
|
t.datetime "created_at"
|
102
96
|
t.datetime "updated_at"
|
103
|
-
t.integer
|
97
|
+
t.integer "position"
|
98
|
+
t.index ["child_id"], name: "index_agent_relationships_on_child_id"
|
99
|
+
t.index ["parent_id"], name: "index_agent_relationships_on_parent_id"
|
104
100
|
end
|
105
101
|
|
106
|
-
add_index "agent_relationships", ["child_id"], name: "index_agent_relationships_on_child_id"
|
107
|
-
add_index "agent_relationships", ["parent_id"], name: "index_agent_relationships_on_parent_id"
|
108
|
-
|
109
102
|
create_table "agent_types", force: :cascade do |t|
|
110
|
-
t.string
|
111
|
-
t.text
|
112
|
-
t.text
|
113
|
-
t.integer
|
103
|
+
t.string "name", null: false
|
104
|
+
t.text "display_name"
|
105
|
+
t.text "note"
|
106
|
+
t.integer "position"
|
114
107
|
t.datetime "created_at"
|
115
108
|
t.datetime "updated_at"
|
116
109
|
end
|
117
110
|
|
118
111
|
create_table "agents", force: :cascade do |t|
|
119
|
-
t.string
|
120
|
-
t.string
|
121
|
-
t.string
|
122
|
-
t.string
|
123
|
-
t.string
|
124
|
-
t.string
|
125
|
-
t.string
|
126
|
-
t.string
|
127
|
-
t.string
|
128
|
-
t.text
|
129
|
-
t.text
|
112
|
+
t.string "last_name"
|
113
|
+
t.string "middle_name"
|
114
|
+
t.string "first_name"
|
115
|
+
t.string "last_name_transcription"
|
116
|
+
t.string "middle_name_transcription"
|
117
|
+
t.string "first_name_transcription"
|
118
|
+
t.string "corporate_name"
|
119
|
+
t.string "corporate_name_transcription"
|
120
|
+
t.string "full_name"
|
121
|
+
t.text "full_name_transcription"
|
122
|
+
t.text "full_name_alternative"
|
130
123
|
t.datetime "created_at"
|
131
124
|
t.datetime "updated_at"
|
132
125
|
t.datetime "deleted_at"
|
133
|
-
t.string
|
134
|
-
t.string
|
135
|
-
t.text
|
136
|
-
t.text
|
137
|
-
t.text
|
138
|
-
t.text
|
139
|
-
t.string
|
140
|
-
t.string
|
141
|
-
t.string
|
142
|
-
t.string
|
143
|
-
t.text
|
144
|
-
t.text
|
145
|
-
t.string
|
146
|
-
t.text
|
147
|
-
t.text
|
148
|
-
t.text
|
126
|
+
t.string "zip_code_1"
|
127
|
+
t.string "zip_code_2"
|
128
|
+
t.text "address_1"
|
129
|
+
t.text "address_2"
|
130
|
+
t.text "address_1_note"
|
131
|
+
t.text "address_2_note"
|
132
|
+
t.string "telephone_number_1"
|
133
|
+
t.string "telephone_number_2"
|
134
|
+
t.string "fax_number_1"
|
135
|
+
t.string "fax_number_2"
|
136
|
+
t.text "other_designation"
|
137
|
+
t.text "place"
|
138
|
+
t.string "postal_code"
|
139
|
+
t.text "street"
|
140
|
+
t.text "locality"
|
141
|
+
t.text "region"
|
149
142
|
t.datetime "date_of_birth"
|
150
143
|
t.datetime "date_of_death"
|
151
|
-
t.integer
|
152
|
-
t.integer
|
153
|
-
t.integer
|
154
|
-
t.integer
|
155
|
-
t.text
|
156
|
-
t.integer
|
157
|
-
t.integer
|
158
|
-
t.text
|
159
|
-
t.text
|
160
|
-
t.text
|
161
|
-
t.string
|
162
|
-
t.string
|
163
|
-
t.string
|
164
|
-
t.integer
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
add_index "agents", ["required_role_id"], name: "index_agents_on_required_role_id"
|
144
|
+
t.integer "language_id", default: 1, null: false
|
145
|
+
t.integer "country_id", default: 1, null: false
|
146
|
+
t.integer "agent_type_id", default: 1, null: false
|
147
|
+
t.integer "lock_version", default: 0, null: false
|
148
|
+
t.text "note"
|
149
|
+
t.integer "required_role_id", default: 1, null: false
|
150
|
+
t.integer "required_score", default: 0, null: false
|
151
|
+
t.text "email"
|
152
|
+
t.text "url"
|
153
|
+
t.text "full_name_alternative_transcription"
|
154
|
+
t.string "birth_date"
|
155
|
+
t.string "death_date"
|
156
|
+
t.string "agent_identifier"
|
157
|
+
t.integer "profile_id"
|
158
|
+
t.index ["agent_identifier"], name: "index_agents_on_agent_identifier"
|
159
|
+
t.index ["country_id"], name: "index_agents_on_country_id"
|
160
|
+
t.index ["full_name"], name: "index_agents_on_full_name"
|
161
|
+
t.index ["language_id"], name: "index_agents_on_language_id"
|
162
|
+
t.index ["profile_id"], name: "index_agents_on_profile_id"
|
163
|
+
t.index ["required_role_id"], name: "index_agents_on_required_role_id"
|
164
|
+
end
|
173
165
|
|
174
166
|
create_table "baskets", force: :cascade do |t|
|
175
|
-
t.integer
|
176
|
-
t.text
|
177
|
-
t.integer
|
167
|
+
t.integer "user_id"
|
168
|
+
t.text "note"
|
169
|
+
t.integer "lock_version", default: 0, null: false
|
178
170
|
t.datetime "created_at"
|
179
171
|
t.datetime "updated_at"
|
172
|
+
t.index ["user_id"], name: "index_baskets_on_user_id"
|
180
173
|
end
|
181
174
|
|
182
|
-
add_index "baskets", ["user_id"], name: "index_baskets_on_user_id"
|
183
|
-
|
184
175
|
create_table "bookstores", force: :cascade do |t|
|
185
|
-
t.text
|
186
|
-
t.string
|
187
|
-
t.text
|
188
|
-
t.text
|
189
|
-
t.string
|
190
|
-
t.string
|
191
|
-
t.string
|
192
|
-
t.integer
|
176
|
+
t.text "name", null: false
|
177
|
+
t.string "zip_code"
|
178
|
+
t.text "address"
|
179
|
+
t.text "note"
|
180
|
+
t.string "telephone_number"
|
181
|
+
t.string "fax_number"
|
182
|
+
t.string "url"
|
183
|
+
t.integer "position"
|
193
184
|
t.datetime "deleted_at"
|
194
185
|
t.datetime "created_at"
|
195
186
|
t.datetime "updated_at"
|
196
187
|
end
|
197
188
|
|
198
189
|
create_table "budget_types", force: :cascade do |t|
|
199
|
-
t.string
|
200
|
-
t.text
|
201
|
-
t.text
|
202
|
-
t.integer
|
190
|
+
t.string "name"
|
191
|
+
t.text "display_name"
|
192
|
+
t.text "note"
|
193
|
+
t.integer "position"
|
203
194
|
t.datetime "created_at"
|
204
195
|
t.datetime "updated_at"
|
205
196
|
end
|
206
197
|
|
207
198
|
create_table "carrier_types", force: :cascade do |t|
|
208
|
-
t.string
|
209
|
-
t.text
|
210
|
-
t.text
|
211
|
-
t.integer
|
199
|
+
t.string "name", null: false
|
200
|
+
t.text "display_name"
|
201
|
+
t.text "note"
|
202
|
+
t.integer "position"
|
212
203
|
t.datetime "created_at"
|
213
204
|
t.datetime "updated_at"
|
214
|
-
t.string
|
215
|
-
t.string
|
216
|
-
t.integer
|
205
|
+
t.string "attachment_file_name"
|
206
|
+
t.string "attachment_content_type"
|
207
|
+
t.integer "attachment_file_size"
|
217
208
|
t.datetime "attachment_updated_at"
|
218
209
|
end
|
219
210
|
|
220
211
|
create_table "colors", force: :cascade do |t|
|
221
|
-
t.integer
|
222
|
-
t.string
|
223
|
-
t.string
|
224
|
-
t.integer
|
212
|
+
t.integer "library_group_id"
|
213
|
+
t.string "property"
|
214
|
+
t.string "code"
|
215
|
+
t.integer "position"
|
225
216
|
t.datetime "created_at"
|
226
217
|
t.datetime "updated_at"
|
218
|
+
t.index ["library_group_id"], name: "index_colors_on_library_group_id"
|
227
219
|
end
|
228
220
|
|
229
|
-
add_index "colors", ["library_group_id"], name: "index_colors_on_library_group_id"
|
230
|
-
|
231
221
|
create_table "content_types", force: :cascade do |t|
|
232
|
-
t.string
|
233
|
-
t.text
|
234
|
-
t.text
|
235
|
-
t.integer
|
222
|
+
t.string "name", null: false
|
223
|
+
t.text "display_name"
|
224
|
+
t.text "note"
|
225
|
+
t.integer "position"
|
236
226
|
t.datetime "created_at"
|
237
227
|
t.datetime "updated_at"
|
238
228
|
end
|
239
229
|
|
240
230
|
create_table "countries", force: :cascade do |t|
|
241
|
-
t.string
|
242
|
-
t.text
|
243
|
-
t.string
|
244
|
-
t.string
|
245
|
-
t.string
|
246
|
-
t.text
|
231
|
+
t.string "name", null: false
|
232
|
+
t.text "display_name"
|
233
|
+
t.string "alpha_2"
|
234
|
+
t.string "alpha_3"
|
235
|
+
t.string "numeric_3"
|
236
|
+
t.text "note"
|
247
237
|
t.integer "position"
|
238
|
+
t.index ["alpha_2"], name: "index_countries_on_alpha_2"
|
239
|
+
t.index ["alpha_3"], name: "index_countries_on_alpha_3"
|
240
|
+
t.index ["name"], name: "index_countries_on_name"
|
241
|
+
t.index ["numeric_3"], name: "index_countries_on_numeric_3"
|
248
242
|
end
|
249
243
|
|
250
|
-
add_index "countries", ["alpha_2"], name: "index_countries_on_alpha_2"
|
251
|
-
add_index "countries", ["alpha_3"], name: "index_countries_on_alpha_3"
|
252
|
-
add_index "countries", ["name"], name: "index_countries_on_name"
|
253
|
-
add_index "countries", ["numeric_3"], name: "index_countries_on_numeric_3"
|
254
|
-
|
255
244
|
create_table "create_types", force: :cascade do |t|
|
256
|
-
t.string
|
257
|
-
t.text
|
258
|
-
t.text
|
259
|
-
t.integer
|
245
|
+
t.string "name"
|
246
|
+
t.text "display_name"
|
247
|
+
t.text "note"
|
248
|
+
t.integer "position"
|
260
249
|
t.datetime "created_at"
|
261
250
|
t.datetime "updated_at"
|
262
251
|
end
|
263
252
|
|
264
253
|
create_table "creates", force: :cascade do |t|
|
265
|
-
t.integer
|
266
|
-
t.integer
|
267
|
-
t.integer
|
254
|
+
t.integer "agent_id", null: false
|
255
|
+
t.integer "work_id", null: false
|
256
|
+
t.integer "position"
|
268
257
|
t.datetime "created_at"
|
269
258
|
t.datetime "updated_at"
|
270
|
-
t.integer
|
259
|
+
t.integer "create_type_id"
|
260
|
+
t.index ["agent_id"], name: "index_creates_on_agent_id"
|
261
|
+
t.index ["work_id"], name: "index_creates_on_work_id"
|
271
262
|
end
|
272
263
|
|
273
|
-
add_index "creates", ["agent_id"], name: "index_creates_on_agent_id"
|
274
|
-
add_index "creates", ["work_id"], name: "index_creates_on_work_id"
|
275
|
-
|
276
264
|
create_table "donates", force: :cascade do |t|
|
277
|
-
t.integer
|
278
|
-
t.integer
|
265
|
+
t.integer "agent_id", null: false
|
266
|
+
t.integer "item_id", null: false
|
279
267
|
t.datetime "created_at"
|
280
268
|
t.datetime "updated_at"
|
269
|
+
t.index ["agent_id"], name: "index_donates_on_agent_id"
|
270
|
+
t.index ["item_id"], name: "index_donates_on_item_id"
|
281
271
|
end
|
282
272
|
|
283
|
-
add_index "donates", ["agent_id"], name: "index_donates_on_agent_id"
|
284
|
-
add_index "donates", ["item_id"], name: "index_donates_on_item_id"
|
285
|
-
|
286
273
|
create_table "exemplifies", force: :cascade do |t|
|
287
|
-
t.integer
|
288
|
-
t.integer
|
289
|
-
t.integer
|
274
|
+
t.integer "manifestation_id", null: false
|
275
|
+
t.integer "item_id", null: false
|
276
|
+
t.integer "position"
|
290
277
|
t.datetime "created_at"
|
291
278
|
t.datetime "updated_at"
|
279
|
+
t.index ["item_id"], name: "index_exemplifies_on_item_id", unique: true
|
280
|
+
t.index ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
|
292
281
|
end
|
293
282
|
|
294
|
-
add_index "exemplifies", ["item_id"], name: "index_exemplifies_on_item_id", unique: true
|
295
|
-
add_index "exemplifies", ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
|
296
|
-
|
297
283
|
create_table "form_of_works", force: :cascade do |t|
|
298
|
-
t.string
|
299
|
-
t.text
|
300
|
-
t.text
|
301
|
-
t.integer
|
284
|
+
t.string "name", null: false
|
285
|
+
t.text "display_name"
|
286
|
+
t.text "note"
|
287
|
+
t.integer "position"
|
302
288
|
t.datetime "created_at"
|
303
289
|
t.datetime "updated_at"
|
304
290
|
end
|
305
291
|
|
306
292
|
create_table "frequencies", force: :cascade do |t|
|
307
|
-
t.string
|
308
|
-
t.text
|
309
|
-
t.text
|
310
|
-
t.integer
|
293
|
+
t.string "name", null: false
|
294
|
+
t.text "display_name"
|
295
|
+
t.text "note"
|
296
|
+
t.integer "position"
|
311
297
|
t.datetime "created_at"
|
312
298
|
t.datetime "updated_at"
|
313
299
|
end
|
314
300
|
|
315
301
|
create_table "identifier_types", force: :cascade do |t|
|
316
|
-
t.string
|
317
|
-
t.text
|
318
|
-
t.text
|
319
|
-
t.integer
|
302
|
+
t.string "name"
|
303
|
+
t.text "display_name"
|
304
|
+
t.text "note"
|
305
|
+
t.integer "position"
|
320
306
|
t.datetime "created_at"
|
321
307
|
t.datetime "updated_at"
|
322
308
|
end
|
323
309
|
|
324
310
|
create_table "identifiers", force: :cascade do |t|
|
325
|
-
t.string
|
326
|
-
t.integer
|
327
|
-
t.integer
|
328
|
-
t.boolean
|
329
|
-
t.integer
|
311
|
+
t.string "body", null: false
|
312
|
+
t.integer "identifier_type_id", null: false
|
313
|
+
t.integer "manifestation_id"
|
314
|
+
t.boolean "primary"
|
315
|
+
t.integer "position"
|
330
316
|
t.datetime "created_at"
|
331
317
|
t.datetime "updated_at"
|
318
|
+
t.index ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
|
319
|
+
t.index ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
|
332
320
|
end
|
333
321
|
|
334
|
-
add_index "identifiers", ["body", "identifier_type_id"], name: "index_identifiers_on_body_and_identifier_type_id"
|
335
|
-
add_index "identifiers", ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
|
336
|
-
|
337
322
|
create_table "import_request_transitions", force: :cascade do |t|
|
338
|
-
t.string
|
339
|
-
t.text
|
340
|
-
t.integer
|
341
|
-
t.integer
|
323
|
+
t.string "to_state"
|
324
|
+
t.text "metadata", default: "{}"
|
325
|
+
t.integer "sort_key"
|
326
|
+
t.integer "import_request_id"
|
342
327
|
t.datetime "created_at"
|
343
328
|
t.datetime "updated_at"
|
344
|
-
t.boolean
|
329
|
+
t.boolean "most_recent", null: false
|
330
|
+
t.index ["import_request_id", "most_recent"], name: "index_import_request_transitions_parent_most_recent", unique: true, where: "most_recent"
|
331
|
+
t.index ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
|
332
|
+
t.index ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
|
345
333
|
end
|
346
334
|
|
347
|
-
add_index "import_request_transitions", ["import_request_id", "most_recent"], name: "index_import_request_transitions_parent_most_recent", unique: true
|
348
|
-
add_index "import_request_transitions", ["import_request_id"], name: "index_import_request_transitions_on_import_request_id"
|
349
|
-
add_index "import_request_transitions", ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
|
350
|
-
|
351
335
|
create_table "import_requests", force: :cascade do |t|
|
352
|
-
t.string
|
353
|
-
t.integer
|
354
|
-
t.integer
|
336
|
+
t.string "isbn"
|
337
|
+
t.integer "manifestation_id"
|
338
|
+
t.integer "user_id"
|
355
339
|
t.datetime "created_at"
|
356
340
|
t.datetime "updated_at"
|
341
|
+
t.index ["isbn"], name: "index_import_requests_on_isbn"
|
342
|
+
t.index ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
|
343
|
+
t.index ["user_id"], name: "index_import_requests_on_user_id"
|
357
344
|
end
|
358
345
|
|
359
|
-
add_index "import_requests", ["isbn"], name: "index_import_requests_on_isbn"
|
360
|
-
add_index "import_requests", ["manifestation_id"], name: "index_import_requests_on_manifestation_id"
|
361
|
-
add_index "import_requests", ["user_id"], name: "index_import_requests_on_user_id"
|
362
|
-
|
363
346
|
create_table "items", force: :cascade do |t|
|
364
|
-
t.string
|
365
|
-
t.string
|
347
|
+
t.string "call_number"
|
348
|
+
t.string "item_identifier"
|
366
349
|
t.datetime "created_at"
|
367
350
|
t.datetime "updated_at"
|
368
351
|
t.datetime "deleted_at"
|
369
|
-
t.integer
|
370
|
-
t.boolean
|
371
|
-
t.text
|
372
|
-
t.string
|
373
|
-
t.integer
|
374
|
-
t.integer
|
375
|
-
t.integer
|
376
|
-
t.integer
|
352
|
+
t.integer "shelf_id", default: 1, null: false
|
353
|
+
t.boolean "include_supplements", default: false, null: false
|
354
|
+
t.text "note"
|
355
|
+
t.string "url"
|
356
|
+
t.integer "price"
|
357
|
+
t.integer "lock_version", default: 0, null: false
|
358
|
+
t.integer "required_role_id", default: 1, null: false
|
359
|
+
t.integer "required_score", default: 0, null: false
|
377
360
|
t.datetime "acquired_at"
|
378
|
-
t.integer
|
379
|
-
t.integer
|
380
|
-
t.string
|
381
|
-
t.string
|
361
|
+
t.integer "bookstore_id"
|
362
|
+
t.integer "budget_type_id"
|
363
|
+
t.string "binding_item_identifier"
|
364
|
+
t.string "binding_call_number"
|
382
365
|
t.datetime "binded_at"
|
383
|
-
t.integer
|
366
|
+
t.integer "manifestation_id", null: false
|
367
|
+
t.index ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
|
368
|
+
t.index ["bookstore_id"], name: "index_items_on_bookstore_id"
|
369
|
+
t.index ["item_identifier"], name: "index_items_on_item_identifier"
|
370
|
+
t.index ["manifestation_id"], name: "index_items_on_manifestation_id"
|
371
|
+
t.index ["required_role_id"], name: "index_items_on_required_role_id"
|
372
|
+
t.index ["shelf_id"], name: "index_items_on_shelf_id"
|
384
373
|
end
|
385
374
|
|
386
|
-
add_index "items", ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
|
387
|
-
add_index "items", ["bookstore_id"], name: "index_items_on_bookstore_id"
|
388
|
-
add_index "items", ["item_identifier"], name: "index_items_on_item_identifier"
|
389
|
-
add_index "items", ["manifestation_id"], name: "index_items_on_manifestation_id"
|
390
|
-
add_index "items", ["required_role_id"], name: "index_items_on_required_role_id"
|
391
|
-
add_index "items", ["shelf_id"], name: "index_items_on_shelf_id"
|
392
|
-
|
393
375
|
create_table "languages", force: :cascade do |t|
|
394
|
-
t.string
|
395
|
-
t.string
|
396
|
-
t.text
|
397
|
-
t.string
|
398
|
-
t.string
|
399
|
-
t.string
|
400
|
-
t.text
|
376
|
+
t.string "name", null: false
|
377
|
+
t.string "native_name"
|
378
|
+
t.text "display_name"
|
379
|
+
t.string "iso_639_1"
|
380
|
+
t.string "iso_639_2"
|
381
|
+
t.string "iso_639_3"
|
382
|
+
t.text "note"
|
401
383
|
t.integer "position"
|
384
|
+
t.index ["iso_639_1"], name: "index_languages_on_iso_639_1"
|
385
|
+
t.index ["iso_639_2"], name: "index_languages_on_iso_639_2"
|
386
|
+
t.index ["iso_639_3"], name: "index_languages_on_iso_639_3"
|
387
|
+
t.index ["name"], name: "index_languages_on_name", unique: true
|
402
388
|
end
|
403
389
|
|
404
|
-
add_index "languages", ["iso_639_1"], name: "index_languages_on_iso_639_1"
|
405
|
-
add_index "languages", ["iso_639_2"], name: "index_languages_on_iso_639_2"
|
406
|
-
add_index "languages", ["iso_639_3"], name: "index_languages_on_iso_639_3"
|
407
|
-
add_index "languages", ["name"], name: "index_languages_on_name", unique: true
|
408
|
-
|
409
390
|
create_table "libraries", force: :cascade do |t|
|
410
|
-
t.string
|
411
|
-
t.text
|
412
|
-
t.string
|
413
|
-
t.string
|
414
|
-
t.text
|
415
|
-
t.text
|
416
|
-
t.text
|
417
|
-
t.string
|
418
|
-
t.string
|
419
|
-
t.string
|
420
|
-
t.text
|
421
|
-
t.integer
|
422
|
-
t.string
|
423
|
-
t.integer
|
424
|
-
t.integer
|
425
|
-
t.integer
|
426
|
-
t.integer
|
391
|
+
t.string "name", null: false
|
392
|
+
t.text "display_name"
|
393
|
+
t.string "short_display_name", null: false
|
394
|
+
t.string "zip_code"
|
395
|
+
t.text "street"
|
396
|
+
t.text "locality"
|
397
|
+
t.text "region"
|
398
|
+
t.string "telephone_number_1"
|
399
|
+
t.string "telephone_number_2"
|
400
|
+
t.string "fax_number"
|
401
|
+
t.text "note"
|
402
|
+
t.integer "call_number_rows", default: 1, null: false
|
403
|
+
t.string "call_number_delimiter", default: "|", null: false
|
404
|
+
t.integer "library_group_id", default: 1, null: false
|
405
|
+
t.integer "users_count", default: 0, null: false
|
406
|
+
t.integer "position"
|
407
|
+
t.integer "country_id"
|
427
408
|
t.datetime "created_at"
|
428
409
|
t.datetime "updated_at"
|
429
410
|
t.datetime "deleted_at"
|
430
|
-
t.text
|
431
|
-
t.string
|
432
|
-
t.float
|
433
|
-
t.float
|
411
|
+
t.text "opening_hour"
|
412
|
+
t.string "isil"
|
413
|
+
t.float "latitude"
|
414
|
+
t.float "longitude"
|
415
|
+
t.index ["library_group_id"], name: "index_libraries_on_library_group_id"
|
416
|
+
t.index ["name"], name: "index_libraries_on_name", unique: true
|
434
417
|
end
|
435
418
|
|
436
|
-
add_index "libraries", ["library_group_id"], name: "index_libraries_on_library_group_id"
|
437
|
-
add_index "libraries", ["name"], name: "index_libraries_on_name"
|
438
|
-
|
439
419
|
create_table "library_group_translations", force: :cascade do |t|
|
440
|
-
t.integer
|
441
|
-
t.string
|
442
|
-
t.datetime "created_at",
|
443
|
-
t.datetime "updated_at",
|
444
|
-
t.text
|
445
|
-
t.text
|
420
|
+
t.integer "library_group_id", null: false
|
421
|
+
t.string "locale", null: false
|
422
|
+
t.datetime "created_at", null: false
|
423
|
+
t.datetime "updated_at", null: false
|
424
|
+
t.text "login_banner"
|
425
|
+
t.text "footer_banner"
|
426
|
+
t.index ["library_group_id"], name: "index_library_group_translations_on_library_group_id"
|
427
|
+
t.index ["locale"], name: "index_library_group_translations_on_locale"
|
446
428
|
end
|
447
429
|
|
448
|
-
add_index "library_group_translations", ["library_group_id"], name: "index_library_group_translations_on_library_group_id"
|
449
|
-
add_index "library_group_translations", ["locale"], name: "index_library_group_translations_on_locale"
|
450
|
-
|
451
430
|
create_table "library_groups", force: :cascade do |t|
|
452
|
-
t.string
|
453
|
-
t.text
|
454
|
-
t.string
|
455
|
-
t.text
|
456
|
-
t.text
|
457
|
-
t.text
|
458
|
-
t.integer
|
459
|
-
t.integer
|
460
|
-
t.datetime "created_at"
|
461
|
-
t.datetime "updated_at"
|
462
|
-
t.text
|
463
|
-
t.string
|
464
|
-
t.text
|
465
|
-
t.text
|
466
|
-
t.string
|
467
|
-
t.integer
|
468
|
-
t.boolean
|
469
|
-
t.string
|
470
|
-
t.integer
|
471
|
-
t.integer
|
472
|
-
t.boolean
|
473
|
-
t.string
|
474
|
-
t.string
|
475
|
-
t.integer
|
431
|
+
t.string "name", null: false
|
432
|
+
t.text "display_name"
|
433
|
+
t.string "short_name", null: false
|
434
|
+
t.text "my_networks"
|
435
|
+
t.text "old_login_banner"
|
436
|
+
t.text "note"
|
437
|
+
t.integer "country_id"
|
438
|
+
t.integer "position"
|
439
|
+
t.datetime "created_at"
|
440
|
+
t.datetime "updated_at"
|
441
|
+
t.text "admin_networks"
|
442
|
+
t.string "url", default: "http://localhost:3000/"
|
443
|
+
t.text "settings"
|
444
|
+
t.text "html_snippet"
|
445
|
+
t.string "book_jacket_source"
|
446
|
+
t.integer "max_number_of_results", default: 500
|
447
|
+
t.boolean "family_name_first", default: true
|
448
|
+
t.string "screenshot_generator"
|
449
|
+
t.integer "pub_year_facet_range_interval", default: 10
|
450
|
+
t.integer "user_id"
|
451
|
+
t.boolean "csv_charset_conversion", default: false, null: false
|
452
|
+
t.string "header_logo_file_name"
|
453
|
+
t.string "header_logo_content_type"
|
454
|
+
t.integer "header_logo_file_size"
|
476
455
|
t.datetime "header_logo_updated_at"
|
477
|
-
t.text
|
456
|
+
t.text "header_logo_meta"
|
457
|
+
t.index ["short_name"], name: "index_library_groups_on_short_name"
|
458
|
+
t.index ["user_id"], name: "index_library_groups_on_user_id"
|
478
459
|
end
|
479
460
|
|
480
|
-
add_index "library_groups", ["short_name"], name: "index_library_groups_on_short_name"
|
481
|
-
add_index "library_groups", ["user_id"], name: "index_library_groups_on_user_id"
|
482
|
-
|
483
461
|
create_table "licenses", force: :cascade do |t|
|
484
|
-
t.string
|
485
|
-
t.string
|
486
|
-
t.text
|
487
|
-
t.integer
|
462
|
+
t.string "name", null: false
|
463
|
+
t.string "display_name"
|
464
|
+
t.text "note"
|
465
|
+
t.integer "position"
|
488
466
|
t.datetime "created_at"
|
489
467
|
t.datetime "updated_at"
|
490
468
|
end
|
491
469
|
|
492
470
|
create_table "manifestation_relationship_types", force: :cascade do |t|
|
493
|
-
t.string
|
494
|
-
t.text
|
495
|
-
t.text
|
496
|
-
t.integer
|
471
|
+
t.string "name", null: false
|
472
|
+
t.text "display_name"
|
473
|
+
t.text "note"
|
474
|
+
t.integer "position"
|
497
475
|
t.datetime "created_at"
|
498
476
|
t.datetime "updated_at"
|
499
477
|
end
|
500
478
|
|
501
479
|
create_table "manifestation_relationships", force: :cascade do |t|
|
502
|
-
t.integer
|
503
|
-
t.integer
|
504
|
-
t.integer
|
480
|
+
t.integer "parent_id"
|
481
|
+
t.integer "child_id"
|
482
|
+
t.integer "manifestation_relationship_type_id"
|
505
483
|
t.datetime "created_at"
|
506
484
|
t.datetime "updated_at"
|
507
|
-
t.integer
|
485
|
+
t.integer "position"
|
486
|
+
t.index ["child_id"], name: "index_manifestation_relationships_on_child_id"
|
487
|
+
t.index ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
|
508
488
|
end
|
509
489
|
|
510
|
-
add_index "manifestation_relationships", ["child_id"], name: "index_manifestation_relationships_on_child_id"
|
511
|
-
add_index "manifestation_relationships", ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
|
512
|
-
|
513
490
|
create_table "manifestations", force: :cascade do |t|
|
514
|
-
t.text
|
515
|
-
t.text
|
516
|
-
t.text
|
517
|
-
t.string
|
518
|
-
t.string
|
491
|
+
t.text "original_title", null: false
|
492
|
+
t.text "title_alternative"
|
493
|
+
t.text "title_transcription"
|
494
|
+
t.string "classification_number"
|
495
|
+
t.string "manifestation_identifier"
|
519
496
|
t.datetime "date_of_publication"
|
520
497
|
t.datetime "date_copyrighted"
|
521
498
|
t.datetime "created_at"
|
522
499
|
t.datetime "updated_at"
|
523
500
|
t.datetime "deleted_at"
|
524
|
-
t.string
|
525
|
-
t.integer
|
526
|
-
t.integer
|
527
|
-
t.integer
|
528
|
-
t.integer
|
529
|
-
t.integer
|
530
|
-
t.integer
|
531
|
-
t.integer
|
532
|
-
t.integer
|
533
|
-
t.text
|
534
|
-
t.string
|
535
|
-
t.string
|
536
|
-
t.string
|
537
|
-
t.integer
|
538
|
-
t.text
|
539
|
-
t.boolean
|
540
|
-
t.integer
|
541
|
-
t.integer
|
542
|
-
t.integer
|
543
|
-
t.integer
|
544
|
-
t.boolean
|
545
|
-
t.string
|
546
|
-
t.string
|
547
|
-
t.integer
|
501
|
+
t.string "access_address"
|
502
|
+
t.integer "language_id", default: 1, null: false
|
503
|
+
t.integer "carrier_type_id", default: 1, null: false
|
504
|
+
t.integer "start_page"
|
505
|
+
t.integer "end_page"
|
506
|
+
t.integer "height"
|
507
|
+
t.integer "width"
|
508
|
+
t.integer "depth"
|
509
|
+
t.integer "price"
|
510
|
+
t.text "fulltext"
|
511
|
+
t.string "volume_number_string"
|
512
|
+
t.string "issue_number_string"
|
513
|
+
t.string "serial_number_string"
|
514
|
+
t.integer "edition"
|
515
|
+
t.text "note"
|
516
|
+
t.boolean "repository_content", default: false, null: false
|
517
|
+
t.integer "lock_version", default: 0, null: false
|
518
|
+
t.integer "required_role_id", default: 1, null: false
|
519
|
+
t.integer "required_score", default: 0, null: false
|
520
|
+
t.integer "frequency_id", default: 1, null: false
|
521
|
+
t.boolean "subscription_master", default: false, null: false
|
522
|
+
t.string "attachment_file_name"
|
523
|
+
t.string "attachment_content_type"
|
524
|
+
t.integer "attachment_file_size"
|
548
525
|
t.datetime "attachment_updated_at"
|
549
|
-
t.text
|
550
|
-
t.text
|
551
|
-
t.text
|
526
|
+
t.text "title_alternative_transcription"
|
527
|
+
t.text "description"
|
528
|
+
t.text "abstract"
|
552
529
|
t.datetime "available_at"
|
553
530
|
t.datetime "valid_until"
|
554
531
|
t.datetime "date_submitted"
|
555
532
|
t.datetime "date_accepted"
|
556
|
-
t.datetime "
|
557
|
-
t.string
|
558
|
-
t.string
|
559
|
-
t.integer
|
560
|
-
t.integer
|
561
|
-
t.integer
|
562
|
-
t.integer
|
563
|
-
t.integer
|
564
|
-
t.text
|
565
|
-
t.integer
|
566
|
-
t.boolean
|
567
|
-
t.boolean
|
568
|
-
t.text
|
569
|
-
t.text
|
570
|
-
t.text
|
571
|
-
t.text
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
add_index "manifestations", ["updated_at"], name: "index_manifestations_on_updated_at"
|
533
|
+
t.datetime "date_caputured"
|
534
|
+
t.string "pub_date"
|
535
|
+
t.string "edition_string"
|
536
|
+
t.integer "volume_number"
|
537
|
+
t.integer "issue_number"
|
538
|
+
t.integer "serial_number"
|
539
|
+
t.integer "content_type_id", default: 1
|
540
|
+
t.integer "year_of_publication"
|
541
|
+
t.text "attachment_meta"
|
542
|
+
t.integer "month_of_publication"
|
543
|
+
t.boolean "fulltext_content"
|
544
|
+
t.boolean "serial"
|
545
|
+
t.text "statement_of_responsibility"
|
546
|
+
t.text "publication_place"
|
547
|
+
t.text "extent"
|
548
|
+
t.text "dimensions"
|
549
|
+
t.index ["access_address"], name: "index_manifestations_on_access_address"
|
550
|
+
t.index ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
|
551
|
+
t.index ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
|
552
|
+
t.index ["updated_at"], name: "index_manifestations_on_updated_at"
|
553
|
+
end
|
578
554
|
|
579
555
|
create_table "medium_of_performances", force: :cascade do |t|
|
580
|
-
t.string
|
581
|
-
t.text
|
582
|
-
t.text
|
583
|
-
t.integer
|
556
|
+
t.string "name", null: false
|
557
|
+
t.text "display_name"
|
558
|
+
t.text "note"
|
559
|
+
t.integer "position"
|
584
560
|
t.datetime "created_at"
|
585
561
|
t.datetime "updated_at"
|
586
562
|
end
|
587
563
|
|
588
564
|
create_table "owns", force: :cascade do |t|
|
589
|
-
t.integer
|
590
|
-
t.integer
|
591
|
-
t.integer
|
565
|
+
t.integer "agent_id", null: false
|
566
|
+
t.integer "item_id", null: false
|
567
|
+
t.integer "position"
|
592
568
|
t.datetime "created_at"
|
593
569
|
t.datetime "updated_at"
|
570
|
+
t.index ["agent_id"], name: "index_owns_on_agent_id"
|
571
|
+
t.index ["item_id"], name: "index_owns_on_item_id"
|
594
572
|
end
|
595
573
|
|
596
|
-
add_index "owns", ["agent_id"], name: "index_owns_on_agent_id"
|
597
|
-
add_index "owns", ["item_id"], name: "index_owns_on_item_id"
|
598
|
-
|
599
574
|
create_table "picture_files", force: :cascade do |t|
|
600
|
-
t.integer
|
601
|
-
t.string
|
602
|
-
t.string
|
603
|
-
t.text
|
604
|
-
t.string
|
605
|
-
t.integer
|
575
|
+
t.integer "picture_attachable_id"
|
576
|
+
t.string "picture_attachable_type"
|
577
|
+
t.string "content_type"
|
578
|
+
t.text "title"
|
579
|
+
t.string "thumbnail"
|
580
|
+
t.integer "position"
|
606
581
|
t.datetime "created_at"
|
607
582
|
t.datetime "updated_at"
|
608
|
-
t.string
|
609
|
-
t.string
|
610
|
-
t.integer
|
583
|
+
t.string "picture_file_name"
|
584
|
+
t.string "picture_content_type"
|
585
|
+
t.integer "picture_file_size"
|
611
586
|
t.datetime "picture_updated_at"
|
612
|
-
t.text
|
613
|
-
t.string
|
614
|
-
t.integer
|
615
|
-
t.integer
|
587
|
+
t.text "picture_meta"
|
588
|
+
t.string "picture_fingerprint"
|
589
|
+
t.integer "picture_width"
|
590
|
+
t.integer "picture_height"
|
591
|
+
t.index ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
|
616
592
|
end
|
617
593
|
|
618
|
-
add_index "picture_files", ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
|
619
|
-
|
620
594
|
create_table "produce_types", force: :cascade do |t|
|
621
|
-
t.string
|
622
|
-
t.text
|
623
|
-
t.text
|
624
|
-
t.integer
|
595
|
+
t.string "name"
|
596
|
+
t.text "display_name"
|
597
|
+
t.text "note"
|
598
|
+
t.integer "position"
|
625
599
|
t.datetime "created_at"
|
626
600
|
t.datetime "updated_at"
|
627
601
|
end
|
628
602
|
|
629
603
|
create_table "produces", force: :cascade do |t|
|
630
|
-
t.integer
|
631
|
-
t.integer
|
632
|
-
t.integer
|
604
|
+
t.integer "agent_id", null: false
|
605
|
+
t.integer "manifestation_id", null: false
|
606
|
+
t.integer "position"
|
633
607
|
t.datetime "created_at"
|
634
608
|
t.datetime "updated_at"
|
635
|
-
t.integer
|
609
|
+
t.integer "produce_type_id"
|
610
|
+
t.index ["agent_id"], name: "index_produces_on_agent_id"
|
611
|
+
t.index ["manifestation_id"], name: "index_produces_on_manifestation_id"
|
636
612
|
end
|
637
613
|
|
638
|
-
add_index "produces", ["agent_id"], name: "index_produces_on_agent_id"
|
639
|
-
add_index "produces", ["manifestation_id"], name: "index_produces_on_manifestation_id"
|
640
|
-
|
641
614
|
create_table "profiles", force: :cascade do |t|
|
642
|
-
t.integer
|
643
|
-
t.integer
|
644
|
-
t.integer
|
645
|
-
t.string
|
646
|
-
t.string
|
647
|
-
t.text
|
648
|
-
t.text
|
649
|
-
t.text
|
650
|
-
t.integer
|
615
|
+
t.integer "user_id"
|
616
|
+
t.integer "user_group_id"
|
617
|
+
t.integer "library_id"
|
618
|
+
t.string "locale"
|
619
|
+
t.string "user_number"
|
620
|
+
t.text "full_name"
|
621
|
+
t.text "note"
|
622
|
+
t.text "keyword_list"
|
623
|
+
t.integer "required_role_id"
|
651
624
|
t.datetime "created_at"
|
652
625
|
t.datetime "updated_at"
|
653
626
|
t.datetime "expired_at"
|
654
|
-
t.text
|
627
|
+
t.text "full_name_transcription"
|
655
628
|
t.datetime "date_of_birth"
|
629
|
+
t.index ["user_id"], name: "index_profiles_on_user_id"
|
630
|
+
t.index ["user_number"], name: "index_profiles_on_user_number", unique: true
|
656
631
|
end
|
657
632
|
|
658
|
-
add_index "profiles", ["user_id"], name: "index_profiles_on_user_id"
|
659
|
-
add_index "profiles", ["user_number"], name: "index_profiles_on_user_number", unique: true
|
660
|
-
|
661
633
|
create_table "realize_types", force: :cascade do |t|
|
662
|
-
t.string
|
663
|
-
t.text
|
664
|
-
t.text
|
665
|
-
t.integer
|
634
|
+
t.string "name"
|
635
|
+
t.text "display_name"
|
636
|
+
t.text "note"
|
637
|
+
t.integer "position"
|
666
638
|
t.datetime "created_at"
|
667
639
|
t.datetime "updated_at"
|
668
640
|
end
|
669
641
|
|
670
642
|
create_table "realizes", force: :cascade do |t|
|
671
|
-
t.integer
|
672
|
-
t.integer
|
673
|
-
t.integer
|
643
|
+
t.integer "agent_id", null: false
|
644
|
+
t.integer "expression_id", null: false
|
645
|
+
t.integer "position"
|
674
646
|
t.datetime "created_at"
|
675
647
|
t.datetime "updated_at"
|
676
|
-
t.integer
|
648
|
+
t.integer "realize_type_id"
|
649
|
+
t.index ["agent_id"], name: "index_realizes_on_agent_id"
|
650
|
+
t.index ["expression_id"], name: "index_realizes_on_expression_id"
|
677
651
|
end
|
678
652
|
|
679
|
-
add_index "realizes", ["agent_id"], name: "index_realizes_on_agent_id"
|
680
|
-
add_index "realizes", ["expression_id"], name: "index_realizes_on_expression_id"
|
681
|
-
|
682
653
|
create_table "request_status_types", force: :cascade do |t|
|
683
|
-
t.string
|
684
|
-
t.text
|
685
|
-
t.text
|
686
|
-
t.integer
|
654
|
+
t.string "name", null: false
|
655
|
+
t.text "display_name"
|
656
|
+
t.text "note"
|
657
|
+
t.integer "position"
|
687
658
|
t.datetime "created_at"
|
688
659
|
t.datetime "updated_at"
|
689
660
|
end
|
690
661
|
|
691
662
|
create_table "request_types", force: :cascade do |t|
|
692
|
-
t.string
|
693
|
-
t.text
|
694
|
-
t.text
|
695
|
-
t.integer
|
663
|
+
t.string "name", null: false
|
664
|
+
t.text "display_name"
|
665
|
+
t.text "note"
|
666
|
+
t.integer "position"
|
696
667
|
t.datetime "created_at"
|
697
668
|
t.datetime "updated_at"
|
698
669
|
end
|
699
670
|
|
700
671
|
create_table "resource_export_file_transitions", force: :cascade do |t|
|
701
|
-
t.string
|
702
|
-
t.text
|
703
|
-
t.integer
|
704
|
-
t.integer
|
672
|
+
t.string "to_state"
|
673
|
+
t.text "metadata", default: "{}"
|
674
|
+
t.integer "sort_key"
|
675
|
+
t.integer "resource_export_file_id"
|
705
676
|
t.datetime "created_at"
|
706
677
|
t.datetime "updated_at"
|
707
|
-
t.boolean
|
678
|
+
t.boolean "most_recent", null: false
|
679
|
+
t.index ["resource_export_file_id", "most_recent"], name: "index_resource_export_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
680
|
+
t.index ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
|
681
|
+
t.index ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
|
708
682
|
end
|
709
683
|
|
710
|
-
add_index "resource_export_file_transitions", ["resource_export_file_id", "most_recent"], name: "index_resource_export_file_transitions_parent_most_recent", unique: true
|
711
|
-
add_index "resource_export_file_transitions", ["resource_export_file_id"], name: "index_resource_export_file_transitions_on_file_id"
|
712
|
-
add_index "resource_export_file_transitions", ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
|
713
|
-
|
714
684
|
create_table "resource_export_files", force: :cascade do |t|
|
715
|
-
t.integer
|
716
|
-
t.string "resource_export_file_name"
|
717
|
-
t.string "resource_export_content_type"
|
718
|
-
t.integer "resource_export_file_size"
|
719
|
-
t.datetime "resource_export_updated_at"
|
685
|
+
t.integer "user_id"
|
720
686
|
t.datetime "executed_at"
|
721
687
|
t.datetime "created_at"
|
722
688
|
t.datetime "updated_at"
|
723
689
|
end
|
724
690
|
|
725
691
|
create_table "resource_import_file_transitions", force: :cascade do |t|
|
726
|
-
t.string
|
727
|
-
t.text
|
728
|
-
t.integer
|
729
|
-
t.integer
|
692
|
+
t.string "to_state"
|
693
|
+
t.text "metadata", default: "{}"
|
694
|
+
t.integer "sort_key"
|
695
|
+
t.integer "resource_import_file_id"
|
730
696
|
t.datetime "created_at"
|
731
697
|
t.datetime "updated_at"
|
732
|
-
t.boolean
|
698
|
+
t.boolean "most_recent", null: false
|
699
|
+
t.index ["resource_import_file_id", "most_recent"], name: "index_resource_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
700
|
+
t.index ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
|
701
|
+
t.index ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
|
733
702
|
end
|
734
703
|
|
735
|
-
add_index "resource_import_file_transitions", ["resource_import_file_id", "most_recent"], name: "index_resource_import_file_transitions_parent_most_recent", unique: true
|
736
|
-
add_index "resource_import_file_transitions", ["resource_import_file_id"], name: "index_resource_import_file_transitions_on_file_id"
|
737
|
-
add_index "resource_import_file_transitions", ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
|
738
|
-
|
739
704
|
create_table "resource_import_files", force: :cascade do |t|
|
740
|
-
t.integer
|
741
|
-
t.string
|
742
|
-
t.integer
|
743
|
-
t.integer
|
744
|
-
t.text
|
705
|
+
t.integer "parent_id"
|
706
|
+
t.string "content_type"
|
707
|
+
t.integer "size"
|
708
|
+
t.integer "user_id"
|
709
|
+
t.text "note"
|
745
710
|
t.datetime "executed_at"
|
746
|
-
t.string
|
747
|
-
t.string
|
748
|
-
t.integer
|
711
|
+
t.string "resource_import_file_name"
|
712
|
+
t.string "resource_import_content_type"
|
713
|
+
t.integer "resource_import_file_size"
|
749
714
|
t.datetime "resource_import_updated_at"
|
750
715
|
t.datetime "created_at"
|
751
716
|
t.datetime "updated_at"
|
752
|
-
t.string
|
753
|
-
t.string
|
754
|
-
t.text
|
755
|
-
t.string
|
756
|
-
t.integer
|
717
|
+
t.string "edit_mode"
|
718
|
+
t.string "resource_import_fingerprint"
|
719
|
+
t.text "error_message"
|
720
|
+
t.string "user_encoding"
|
721
|
+
t.integer "default_shelf_id"
|
722
|
+
t.index ["parent_id"], name: "index_resource_import_files_on_parent_id"
|
723
|
+
t.index ["user_id"], name: "index_resource_import_files_on_user_id"
|
757
724
|
end
|
758
725
|
|
759
|
-
add_index "resource_import_files", ["parent_id"], name: "index_resource_import_files_on_parent_id"
|
760
|
-
add_index "resource_import_files", ["user_id"], name: "index_resource_import_files_on_user_id"
|
761
|
-
|
762
726
|
create_table "resource_import_results", force: :cascade do |t|
|
763
|
-
t.integer
|
764
|
-
t.integer
|
765
|
-
t.integer
|
766
|
-
t.text
|
727
|
+
t.integer "resource_import_file_id"
|
728
|
+
t.integer "manifestation_id"
|
729
|
+
t.integer "item_id"
|
730
|
+
t.text "body"
|
767
731
|
t.datetime "created_at"
|
768
732
|
t.datetime "updated_at"
|
769
|
-
t.text
|
733
|
+
t.text "error_message"
|
734
|
+
t.index ["item_id"], name: "index_resource_import_results_on_item_id"
|
735
|
+
t.index ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
|
736
|
+
t.index ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
|
770
737
|
end
|
771
738
|
|
772
|
-
add_index "resource_import_results", ["item_id"], name: "index_resource_import_results_on_item_id"
|
773
|
-
add_index "resource_import_results", ["manifestation_id"], name: "index_resource_import_results_on_manifestation_id"
|
774
|
-
add_index "resource_import_results", ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
|
775
|
-
|
776
739
|
create_table "roles", force: :cascade do |t|
|
777
|
-
t.string
|
778
|
-
t.string
|
779
|
-
t.text
|
740
|
+
t.string "name", null: false
|
741
|
+
t.string "display_name"
|
742
|
+
t.text "note"
|
780
743
|
t.datetime "created_at"
|
781
744
|
t.datetime "updated_at"
|
782
|
-
t.integer
|
783
|
-
t.integer
|
745
|
+
t.integer "score", default: 0, null: false
|
746
|
+
t.integer "position"
|
784
747
|
end
|
785
748
|
|
786
749
|
create_table "search_engines", force: :cascade do |t|
|
787
|
-
t.string
|
788
|
-
t.text
|
789
|
-
t.string
|
790
|
-
t.text
|
791
|
-
t.text
|
792
|
-
t.text
|
793
|
-
t.text
|
794
|
-
t.text
|
795
|
-
t.integer
|
750
|
+
t.string "name", null: false
|
751
|
+
t.text "display_name"
|
752
|
+
t.string "url", null: false
|
753
|
+
t.text "base_url", null: false
|
754
|
+
t.text "http_method", null: false
|
755
|
+
t.text "query_param", null: false
|
756
|
+
t.text "additional_param"
|
757
|
+
t.text "note"
|
758
|
+
t.integer "position"
|
796
759
|
t.datetime "created_at"
|
797
760
|
t.datetime "updated_at"
|
798
761
|
end
|
799
762
|
|
800
763
|
create_table "series_statement_merge_lists", force: :cascade do |t|
|
801
|
-
t.string
|
764
|
+
t.string "title"
|
802
765
|
t.datetime "created_at"
|
803
766
|
t.datetime "updated_at"
|
804
767
|
end
|
805
768
|
|
806
769
|
create_table "series_statement_merges", force: :cascade do |t|
|
807
|
-
t.integer
|
808
|
-
t.integer
|
770
|
+
t.integer "series_statement_id", null: false
|
771
|
+
t.integer "series_statement_merge_list_id", null: false
|
809
772
|
t.datetime "created_at"
|
810
773
|
t.datetime "updated_at"
|
774
|
+
t.index ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
|
775
|
+
t.index ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
|
811
776
|
end
|
812
777
|
|
813
|
-
add_index "series_statement_merges", ["series_statement_id"], name: "index_series_statement_merges_on_series_statement_id"
|
814
|
-
add_index "series_statement_merges", ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
|
815
|
-
|
816
778
|
create_table "series_statements", force: :cascade do |t|
|
817
|
-
t.text
|
818
|
-
t.text
|
819
|
-
t.text
|
820
|
-
t.text
|
821
|
-
t.integer
|
822
|
-
t.datetime "created_at"
|
823
|
-
t.datetime "updated_at"
|
824
|
-
t.text
|
825
|
-
t.text
|
826
|
-
t.string
|
827
|
-
t.integer
|
828
|
-
t.text
|
829
|
-
t.text
|
830
|
-
t.text
|
831
|
-
t.text
|
832
|
-
t.text
|
833
|
-
t.boolean
|
834
|
-
t.integer
|
835
|
-
|
836
|
-
|
837
|
-
|
838
|
-
|
839
|
-
add_index "series_statements", ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
|
779
|
+
t.text "original_title"
|
780
|
+
t.text "numbering"
|
781
|
+
t.text "title_subseries"
|
782
|
+
t.text "numbering_subseries"
|
783
|
+
t.integer "position"
|
784
|
+
t.datetime "created_at"
|
785
|
+
t.datetime "updated_at"
|
786
|
+
t.text "title_transcription"
|
787
|
+
t.text "title_alternative"
|
788
|
+
t.string "series_statement_identifier"
|
789
|
+
t.integer "manifestation_id"
|
790
|
+
t.text "note"
|
791
|
+
t.text "title_subseries_transcription"
|
792
|
+
t.text "creator_string"
|
793
|
+
t.text "volume_number_string"
|
794
|
+
t.text "volume_number_transcription_string"
|
795
|
+
t.boolean "series_master"
|
796
|
+
t.integer "root_manifestation_id"
|
797
|
+
t.index ["manifestation_id"], name: "index_series_statements_on_manifestation_id"
|
798
|
+
t.index ["root_manifestation_id"], name: "index_series_statements_on_root_manifestation_id"
|
799
|
+
t.index ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
|
800
|
+
end
|
840
801
|
|
841
802
|
create_table "shelves", force: :cascade do |t|
|
842
|
-
t.string
|
843
|
-
t.text
|
844
|
-
t.text
|
845
|
-
t.integer
|
846
|
-
t.integer
|
847
|
-
t.integer
|
803
|
+
t.string "name", null: false
|
804
|
+
t.text "display_name"
|
805
|
+
t.text "note"
|
806
|
+
t.integer "library_id", default: 1, null: false
|
807
|
+
t.integer "items_count", default: 0, null: false
|
808
|
+
t.integer "position"
|
848
809
|
t.datetime "created_at"
|
849
810
|
t.datetime "updated_at"
|
850
811
|
t.datetime "deleted_at"
|
851
|
-
t.boolean
|
812
|
+
t.boolean "closed", default: false, null: false
|
813
|
+
t.index ["library_id"], name: "index_shelves_on_library_id"
|
852
814
|
end
|
853
815
|
|
854
|
-
add_index "shelves", ["library_id"], name: "index_shelves_on_library_id"
|
855
|
-
|
856
816
|
create_table "subscribes", force: :cascade do |t|
|
857
|
-
t.integer
|
858
|
-
t.integer
|
859
|
-
t.datetime "start_at",
|
860
|
-
t.datetime "end_at",
|
817
|
+
t.integer "subscription_id", null: false
|
818
|
+
t.integer "work_id", null: false
|
819
|
+
t.datetime "start_at", null: false
|
820
|
+
t.datetime "end_at", null: false
|
861
821
|
t.datetime "created_at"
|
862
822
|
t.datetime "updated_at"
|
823
|
+
t.index ["subscription_id"], name: "index_subscribes_on_subscription_id"
|
824
|
+
t.index ["work_id"], name: "index_subscribes_on_work_id"
|
863
825
|
end
|
864
826
|
|
865
|
-
add_index "subscribes", ["subscription_id"], name: "index_subscribes_on_subscription_id"
|
866
|
-
add_index "subscribes", ["work_id"], name: "index_subscribes_on_work_id"
|
867
|
-
|
868
827
|
create_table "subscriptions", force: :cascade do |t|
|
869
|
-
t.text
|
870
|
-
t.text
|
871
|
-
t.integer
|
872
|
-
t.integer
|
828
|
+
t.text "title", null: false
|
829
|
+
t.text "note"
|
830
|
+
t.integer "user_id"
|
831
|
+
t.integer "order_list_id"
|
873
832
|
t.datetime "deleted_at"
|
874
|
-
t.integer
|
833
|
+
t.integer "subscribes_count", default: 0, null: false
|
875
834
|
t.datetime "created_at"
|
876
835
|
t.datetime "updated_at"
|
836
|
+
t.index ["order_list_id"], name: "index_subscriptions_on_order_list_id"
|
837
|
+
t.index ["user_id"], name: "index_subscriptions_on_user_id"
|
877
838
|
end
|
878
839
|
|
879
|
-
add_index "subscriptions", ["order_list_id"], name: "index_subscriptions_on_order_list_id"
|
880
|
-
add_index "subscriptions", ["user_id"], name: "index_subscriptions_on_user_id"
|
881
|
-
|
882
840
|
create_table "user_export_file_transitions", force: :cascade do |t|
|
883
|
-
t.string
|
884
|
-
t.text
|
885
|
-
t.integer
|
886
|
-
t.integer
|
841
|
+
t.string "to_state"
|
842
|
+
t.text "metadata", default: "{}"
|
843
|
+
t.integer "sort_key"
|
844
|
+
t.integer "user_export_file_id"
|
887
845
|
t.datetime "created_at"
|
888
846
|
t.datetime "updated_at"
|
889
|
-
t.boolean
|
847
|
+
t.boolean "most_recent", null: false
|
848
|
+
t.index ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
|
849
|
+
t.index ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
850
|
+
t.index ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
|
890
851
|
end
|
891
852
|
|
892
|
-
add_index "user_export_file_transitions", ["sort_key", "user_export_file_id"], name: "index_user_export_file_transitions_on_sort_key_and_file_id", unique: true
|
893
|
-
add_index "user_export_file_transitions", ["user_export_file_id", "most_recent"], name: "index_user_export_file_transitions_parent_most_recent", unique: true
|
894
|
-
add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_file_id"
|
895
|
-
add_index "user_export_file_transitions", ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
|
896
|
-
|
897
853
|
create_table "user_export_files", force: :cascade do |t|
|
898
|
-
t.integer
|
899
|
-
t.string "user_export_file_name"
|
900
|
-
t.string "user_export_content_type"
|
901
|
-
t.integer "user_export_file_size"
|
902
|
-
t.datetime "user_export_updated_at"
|
854
|
+
t.integer "user_id"
|
903
855
|
t.datetime "executed_at"
|
904
856
|
t.datetime "created_at"
|
905
857
|
t.datetime "updated_at"
|
906
858
|
end
|
907
859
|
|
908
|
-
add_index "user_export_files", ["user_id"], name: "index_user_export_files_on_user_id"
|
909
|
-
|
910
860
|
create_table "user_groups", force: :cascade do |t|
|
911
|
-
t.string
|
912
|
-
t.text
|
913
|
-
t.text
|
914
|
-
t.integer
|
861
|
+
t.string "name"
|
862
|
+
t.text "display_name"
|
863
|
+
t.text "note"
|
864
|
+
t.integer "position"
|
915
865
|
t.datetime "created_at"
|
916
866
|
t.datetime "updated_at"
|
917
867
|
t.datetime "deleted_at"
|
918
|
-
t.integer
|
868
|
+
t.integer "valid_period_for_new_user", default: 0, null: false
|
919
869
|
t.datetime "expired_at"
|
920
870
|
end
|
921
871
|
|
922
872
|
create_table "user_has_roles", force: :cascade do |t|
|
923
|
-
t.integer
|
924
|
-
t.integer
|
873
|
+
t.integer "user_id"
|
874
|
+
t.integer "role_id"
|
925
875
|
t.datetime "created_at"
|
926
876
|
t.datetime "updated_at"
|
877
|
+
t.index ["role_id"], name: "index_user_has_roles_on_role_id"
|
878
|
+
t.index ["user_id"], name: "index_user_has_roles_on_user_id"
|
927
879
|
end
|
928
880
|
|
929
|
-
add_index "user_has_roles", ["role_id"], name: "index_user_has_roles_on_role_id"
|
930
|
-
add_index "user_has_roles", ["user_id"], name: "index_user_has_roles_on_user_id"
|
931
|
-
|
932
881
|
create_table "user_import_file_transitions", force: :cascade do |t|
|
933
|
-
t.string
|
934
|
-
t.text
|
935
|
-
t.integer
|
936
|
-
t.integer
|
882
|
+
t.string "to_state"
|
883
|
+
t.text "metadata", default: "{}"
|
884
|
+
t.integer "sort_key"
|
885
|
+
t.integer "user_import_file_id"
|
937
886
|
t.datetime "created_at"
|
938
887
|
t.datetime "updated_at"
|
939
|
-
t.boolean
|
888
|
+
t.boolean "most_recent", null: false
|
889
|
+
t.index ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
|
890
|
+
t.index ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true, where: "most_recent"
|
891
|
+
t.index ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
|
940
892
|
end
|
941
893
|
|
942
|
-
add_index "user_import_file_transitions", ["sort_key", "user_import_file_id"], name: "index_user_import_file_transitions_on_sort_key_and_file_id", unique: true
|
943
|
-
add_index "user_import_file_transitions", ["user_import_file_id", "most_recent"], name: "index_user_import_file_transitions_parent_most_recent", unique: true
|
944
|
-
add_index "user_import_file_transitions", ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
|
945
|
-
|
946
894
|
create_table "user_import_files", force: :cascade do |t|
|
947
|
-
t.integer
|
948
|
-
t.text
|
895
|
+
t.integer "user_id"
|
896
|
+
t.text "note"
|
949
897
|
t.datetime "executed_at"
|
950
|
-
t.string
|
951
|
-
t.string
|
952
|
-
t.
|
898
|
+
t.string "user_import_file_name"
|
899
|
+
t.string "user_import_content_type"
|
900
|
+
t.string "user_import_file_size"
|
953
901
|
t.datetime "user_import_updated_at"
|
954
|
-
t.string
|
955
|
-
t.string
|
956
|
-
t.text
|
902
|
+
t.string "user_import_fingerprint"
|
903
|
+
t.string "edit_mode"
|
904
|
+
t.text "error_message"
|
957
905
|
t.datetime "created_at"
|
958
906
|
t.datetime "updated_at"
|
959
|
-
t.string
|
960
|
-
t.integer
|
961
|
-
t.integer
|
907
|
+
t.string "user_encoding"
|
908
|
+
t.integer "default_library_id"
|
909
|
+
t.integer "default_user_group_id"
|
962
910
|
end
|
963
911
|
|
964
|
-
add_index "user_import_files", ["user_id"], name: "index_user_import_files_on_user_id"
|
965
|
-
|
966
912
|
create_table "user_import_results", force: :cascade do |t|
|
967
|
-
t.integer
|
968
|
-
t.integer
|
969
|
-
t.text
|
913
|
+
t.integer "user_import_file_id"
|
914
|
+
t.integer "user_id"
|
915
|
+
t.text "body"
|
970
916
|
t.datetime "created_at"
|
971
917
|
t.datetime "updated_at"
|
972
|
-
t.text
|
918
|
+
t.text "error_message"
|
973
919
|
end
|
974
920
|
|
975
|
-
add_index "user_import_results", ["user_id"], name: "index_user_import_results_on_user_id"
|
976
|
-
add_index "user_import_results", ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
|
977
|
-
|
978
921
|
create_table "users", force: :cascade do |t|
|
979
|
-
t.string
|
980
|
-
t.string
|
981
|
-
t.string
|
922
|
+
t.string "email", default: "", null: false
|
923
|
+
t.string "encrypted_password", default: "", null: false
|
924
|
+
t.string "reset_password_token"
|
982
925
|
t.datetime "reset_password_sent_at"
|
983
926
|
t.datetime "remember_created_at"
|
984
|
-
t.integer
|
927
|
+
t.integer "sign_in_count", default: 0
|
985
928
|
t.datetime "current_sign_in_at"
|
986
929
|
t.datetime "last_sign_in_at"
|
987
|
-
t.string
|
988
|
-
t.string
|
930
|
+
t.string "current_sign_in_ip"
|
931
|
+
t.string "last_sign_in_ip"
|
989
932
|
t.datetime "created_at"
|
990
933
|
t.datetime "updated_at"
|
991
|
-
t.string
|
934
|
+
t.string "username"
|
992
935
|
t.datetime "deleted_at"
|
993
936
|
t.datetime "expired_at"
|
994
|
-
t.integer
|
995
|
-
t.string
|
937
|
+
t.integer "failed_attempts", default: 0
|
938
|
+
t.string "unlock_token"
|
996
939
|
t.datetime "locked_at"
|
997
940
|
t.datetime "confirmed_at"
|
941
|
+
t.index ["email"], name: "index_users_on_email"
|
942
|
+
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
943
|
+
t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
|
944
|
+
t.index ["username"], name: "index_users_on_username", unique: true
|
998
945
|
end
|
999
946
|
|
1000
|
-
add_index "users", ["email"], name: "index_users_on_email"
|
1001
|
-
add_index "users", ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
1002
|
-
add_index "users", ["unlock_token"], name: "index_users_on_unlock_token", unique: true
|
1003
|
-
add_index "users", ["username"], name: "index_users_on_username", unique: true
|
1004
|
-
|
1005
947
|
create_table "versions", force: :cascade do |t|
|
1006
|
-
t.string
|
1007
|
-
t.integer
|
1008
|
-
t.string
|
1009
|
-
t.string
|
1010
|
-
t.text
|
948
|
+
t.string "item_type", null: false
|
949
|
+
t.integer "item_id", null: false
|
950
|
+
t.string "event", null: false
|
951
|
+
t.string "whodunnit"
|
952
|
+
t.text "object"
|
1011
953
|
t.datetime "created_at"
|
954
|
+
t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
|
1012
955
|
end
|
1013
956
|
|
1014
|
-
add_index "versions", ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
|
1015
|
-
|
1016
957
|
create_table "withdraws", force: :cascade do |t|
|
1017
|
-
t.integer
|
1018
|
-
t.integer
|
1019
|
-
t.integer
|
1020
|
-
t.datetime "created_at",
|
1021
|
-
t.datetime "updated_at",
|
958
|
+
t.integer "basket_id"
|
959
|
+
t.integer "item_id"
|
960
|
+
t.integer "librarian_id"
|
961
|
+
t.datetime "created_at", null: false
|
962
|
+
t.datetime "updated_at", null: false
|
963
|
+
t.index ["basket_id"], name: "index_withdraws_on_basket_id"
|
964
|
+
t.index ["item_id"], name: "index_withdraws_on_item_id"
|
965
|
+
t.index ["librarian_id"], name: "index_withdraws_on_librarian_id"
|
1022
966
|
end
|
1023
967
|
|
1024
|
-
add_index "withdraws", ["basket_id"], name: "index_withdraws_on_basket_id"
|
1025
|
-
add_index "withdraws", ["item_id"], name: "index_withdraws_on_item_id"
|
1026
|
-
add_index "withdraws", ["librarian_id"], name: "index_withdraws_on_librarian_id"
|
1027
|
-
|
1028
968
|
end
|