enju_leaf 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +38 -0
- data/Rakefile +9 -1
- data/app/assets/javascripts/enju_leaf.js +1 -1
- data/app/assets/javascripts/{enju.menu.js → menu.js} +0 -0
- data/app/assets/javascripts/mobile.js +2 -2
- data/app/assets/stylesheets/enju.css +2 -0
- data/app/views/page/opensearch.xml.builder +1 -0
- data/app/views/page/system_information.html.erb +7 -1
- data/lib/enju_leaf.rb +0 -1
- data/lib/enju_leaf/version.rb +1 -1
- data/lib/generators/enju_leaf/quick_install/quick_install_generator.rb +2 -19
- data/lib/generators/enju_leaf/seed/seed_generator.rb +29 -0
- data/lib/generators/enju_leaf/setup/setup_generator.rb +0 -1
- data/lib/generators/enju_leaf/setup/templates/db/seeds.rb +9 -12
- data/lib/tasks/enju_leaf_tasks.rake +2 -1
- data/spec/dummy/app/models/application_record.rb +3 -0
- data/spec/dummy/app/models/user.rb +1 -1
- data/spec/dummy/config/application.rb +1 -1
- data/spec/dummy/db/schema.rb +0 -390
- metadata +323 -516
- data/README.rdoc +0 -30
- data/config/locales/en.yml +0 -214
- data/config/locales/ja.yml +0 -204
- data/lib/generators/enju_leaf/setup/templates/db/fixtures/roles.yml +0 -29
- data/lib/generators/enju_leaf/setup/templates/db/fixtures/user_groups.yml +0 -7
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/db/migrate/032_create_checkins.rb +0 -17
- data/spec/dummy/db/migrate/033_create_checkouts.rb +0 -25
- data/spec/dummy/db/migrate/035_create_reserves.rb +0 -26
- data/spec/dummy/db/migrate/055_create_bookmarks.rb +0 -22
- data/spec/dummy/db/migrate/121_create_checked_items.rb +0 -17
- data/spec/dummy/db/migrate/129_create_item_has_use_restrictions.rb +0 -16
- data/spec/dummy/db/migrate/20081030023412_create_checkout_types.rb +0 -17
- data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +0 -25
- data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +0 -18
- data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +0 -17
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +0 -15
- data/spec/dummy/db/migrate/20081212151614_create_bookmark_stats.rb +0 -13
- data/spec/dummy/db/migrate/20081212151820_create_bookmark_stat_has_manifestations.rb +0 -13
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +0 -15
- data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +0 -17
- data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +0 -17
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +0 -15
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +0 -15
- data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +0 -17
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +0 -23
- data/spec/dummy/db/migrate/20090705212043_add_attachments_attachment_to_manifestation.rb +0 -15
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +0 -21
- data/spec/dummy/db/migrate/20100222124420_add_allow_bookmark_external_url_to_library_group.rb +0 -9
- data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +0 -9
- data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +0 -9
- data/spec/dummy/db/migrate/20110425133109_add_issn_to_series_statement.rb +0 -9
- data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +0 -9
- data/spec/dummy/db/migrate/20111129044509_add_pickup_location_to_reserve.rb +0 -6
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +0 -5
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +0 -6
- data/spec/dummy/db/migrate/20111231145823_add_share_bookmarks_to_user.rb +0 -5
- data/spec/dummy/db/migrate/20120415164821_add_attachment_meta_to_manifestation.rb +0 -5
- data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +0 -5
- data/spec/dummy/db/migrate/20121116033446_add_doi_to_manifestation.rb +0 -6
- data/spec/dummy/db/migrate/20130303124821_add_retained_at_to_reserve.rb +0 -5
- data/spec/dummy/db/migrate/20130304015019_add_postponed_at_to_reserve.rb +0 -5
- data/spec/dummy/db/migrate/20130416054135_add_circulation_status_id_to_item.rb +0 -8
- data/spec/dummy/db/migrate/20130519065638_add_lock_version_to_reserve.rb +0 -5
- data/spec/dummy/db/migrate/20130519065837_add_lock_version_to_checkin.rb +0 -5
- data/spec/dummy/db/migrate/20140518050147_create_reserve_transitions.rb +0 -18
- data/spec/dummy/db/migrate/20140524135607_create_bookmark_stat_transitions.rb +0 -18
- data/spec/dummy/db/migrate/20140528045518_create_user_checkout_stat_transitions.rb +0 -18
- data/spec/dummy/db/migrate/20140528045539_create_user_reserve_stat_transitions.rb +0 -18
- data/spec/dummy/db/migrate/20140528045600_create_manifestation_checkout_stat_transitions.rb +0 -18
- data/spec/dummy/db/migrate/20140528045617_create_manifestation_reserve_stat_transitions.rb +0 -18
- data/spec/dummy/db/migrate/20140529014410_create_item_transitions.rb +0 -18
- data/spec/dummy/db/migrate/20140810061942_add_user_id_to_user_checkout_stat.rb +0 -12
- data/spec/dummy/db/migrate/20140810091231_add_checkout_icalendar_token_to_profile.rb +0 -6
- data/spec/dummy/db/migrate/20140810091417_add_save_checkout_history_to_profile.rb +0 -5
- data/spec/dummy/db/migrate/20140812093836_add_share_bookmarks_to_profile.rb +0 -5
- data/spec/dummy/db/migrate/20141014065831_add_shelf_id_to_checkout.rb +0 -6
- data/spec/dummy/db/migrate/20141020120523_add_library_id_to_checkout.rb +0 -6
- data/spec/dummy/db/migrate/20150106001709_create_demands.rb +0 -14
- data/spec/dummy/db/migrate/20150421023923_create_identities.rb +0 -15
- data/spec/dummy/db/migrate/20151126005552_add_provider_to_identity.rb +0 -5
- data/spec/dummy/db/migrate/20160703184619_add_most_recent_to_reserve_transitions.rb +0 -9
- data/spec/dummy/db/migrate/20160703184650_add_most_recent_to_manifestation_checkout_stat_transitions.rb +0 -9
- data/spec/dummy/db/migrate/20160703184723_add_most_recent_to_manifestation_reserve_stat_transitions.rb +0 -9
- data/spec/dummy/db/migrate/20160703184747_add_most_recent_to_user_checkout_stat_transitions.rb +0 -9
- data/spec/dummy/db/migrate/20160703184805_add_most_recent_to_user_reserve_stat_transitions.rb +0 -9
- data/spec/dummy/db/migrate/20160703190209_add_foreign_key_on_manifestation_id_to_reserve.rb +0 -5
- data/spec/dummy/db/migrate/20160820004638_add_attachment_attachment_to_carrier_types.rb +0 -11
- data/spec/dummy/db/migrate/20171014084528_add_header_logo_to_library_group.rb +0 -5
- data/spec/fixtures/agent_import_files.yml +0 -44
- data/spec/fixtures/agent_import_results.yml +0 -26
- data/spec/fixtures/agent_relationship_types.yml +0 -34
- data/spec/fixtures/agent_relationships.yml +0 -25
- data/spec/fixtures/agent_types.yml +0 -35
- data/spec/fixtures/agents.yml +0 -326
- data/spec/fixtures/baskets.yml +0 -80
- data/spec/fixtures/carrier_type_has_checkout_types.yml +0 -30
- data/spec/fixtures/checked_items.yml +0 -34
- data/spec/fixtures/checkins.yml +0 -54
- data/spec/fixtures/checkout_stat_has_manifestations.yml +0 -23
- data/spec/fixtures/checkout_stat_has_users.yml +0 -23
- data/spec/fixtures/checkout_types.yml +0 -33
- data/spec/fixtures/checkouts.yml +0 -162
- data/spec/fixtures/circulation_statuses.yml +0 -119
- data/spec/fixtures/create_types.yml +0 -47
- data/spec/fixtures/creates.yml +0 -66
- data/spec/fixtures/donates.yml +0 -31
- data/spec/fixtures/event_categories.yml +0 -55
- data/spec/fixtures/events.yml +0 -116
- data/spec/fixtures/exemplifies.yml +0 -168
- data/spec/fixtures/import_requests.yml +0 -25
- data/spec/fixtures/item_has_use_restrictions.yml +0 -60
- data/spec/fixtures/items.yml +0 -303
- data/spec/fixtures/lending_policies.yml +0 -98
- data/spec/fixtures/licenses.yml +0 -29
- data/spec/fixtures/manifestation_checkout_stats.yml +0 -27
- data/spec/fixtures/manifestation_relationship_types.yml +0 -29
- data/spec/fixtures/manifestation_relationships.yml +0 -30
- data/spec/fixtures/manifestation_reserve_stats.yml +0 -27
- data/spec/fixtures/medium_of_performances.yml +0 -29
- data/spec/fixtures/message_requests.yml +0 -27
- data/spec/fixtures/message_templates.yml +0 -105
- data/spec/fixtures/owns.yml +0 -27
- data/spec/fixtures/picture_files.yml +0 -64
- data/spec/fixtures/produce_types.yml +0 -31
- data/spec/fixtures/produces.yml +0 -150
- data/spec/fixtures/realize_types.yml +0 -39
- data/spec/fixtures/realizes.yml +0 -87
- data/spec/fixtures/request_status_types.yml +0 -63
- data/spec/fixtures/request_types.yml +0 -55
- data/spec/fixtures/reserve_stat_has_manifestations.yml +0 -23
- data/spec/fixtures/reserve_stat_has_users.yml +0 -23
- data/spec/fixtures/reserve_transitions.yml +0 -88
- data/spec/fixtures/reserves.yml +0 -162
- data/spec/fixtures/resource_import_files.yml +0 -44
- data/spec/fixtures/resource_import_results.yml +0 -29
- data/spec/fixtures/series_statements.yml +0 -45
- data/spec/fixtures/subscribes.yml +0 -45
- data/spec/fixtures/subscriptions.yml +0 -27
- data/spec/fixtures/use_restrictions.yml +0 -92
- data/spec/fixtures/user_checkout_stats.yml +0 -27
- data/spec/fixtures/user_group_has_checkout_types.yml +0 -110
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 905b40bba2a333543fd6e7611ca62788cb6a2658b4353225046ee7cdea5b9b01
|
4
|
+
data.tar.gz: 55e95496e9cc35bc1df4842f2b70a7a2ade937ec04d4dfe03658b4a80e901219
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231d372a0992879b8bf6270c4d0ff95ac9333e65a704f383d0f71ef5f0753c3d3d7e3741d2973fac38b37d5e520469470a48d3fbb7ce6e6e7e9b82c41914eae9
|
7
|
+
data.tar.gz: 813edf77b466a76be042554ad71245e44d9bf83d155332cdde214421640c8b609b6de44d17e3bd73edb29d14e5631f5eb6a66e1c2e4543d7da23a9fe9c941351
|
data/README.md
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
# Next-L Enju Leaf
|
2
|
+
[![Travis CI](https://travis-ci.com/next-l/enju_leaf.svg?branch=1.3)](https://travis-ci.com/next-l/enju_leaf)
|
3
|
+
[![Coverage Status](https://coveralls.io/repos/github/next-l/enju_biblio/badge.svg?branch=1.3)](https://coveralls.io/github/next-l/enju_biblio?branch=1.3)
|
4
|
+
[![security](https://hakiri.io/github/next-l/enju_biblio/1.3.svg)](https://hakiri.io/github/next-l/enju_biblio/1.3)
|
5
|
+
|
6
|
+
Next-L Enju Leaf は、[Project Next-L](https://www.next-l.jp) で開発している図書館管理システムです。
|
7
|
+
|
8
|
+
Next-L Enju Leaf is an integrated library system developed by [Project
|
9
|
+
Next-L](https://www.next-l.jp).
|
10
|
+
|
11
|
+
## Project Next-L とは (What is Project Next-L?)
|
12
|
+
[Project Next-L](https://www.next-l.jp)
|
13
|
+
とは、日本の図書館関係者有志の手で新しい図書館管理システムを作り上げるプロジェクトです。
|
14
|
+
|
15
|
+
[Project Next-L](https://www.next-l.jp) is a project to build a new integrated
|
16
|
+
library system maintained by Japanese volunteers interested in libraries.
|
17
|
+
|
18
|
+
## 動作デモ (Demonstration)
|
19
|
+
* https://enju.next-l.jp
|
20
|
+
|
21
|
+
|
22
|
+
## マニュアル (Manual)
|
23
|
+
* https://next-l.github.io/manual/
|
24
|
+
|
25
|
+
|
26
|
+
## インストール (Install)
|
27
|
+
* https://github.com/next-l/enju_leaf/wiki/Install
|
28
|
+
|
29
|
+
|
30
|
+
## 関連するプロジェクト (Related projects)
|
31
|
+
* [Next-L Enju Root](https://github.com/next-l/enju_root)
|
32
|
+
* [Next-L Enju Flower](https://github.com/next-l/enju_flower)
|
33
|
+
|
34
|
+
|
35
|
+
## 製作者・貢献者 (Authors and contributors)
|
36
|
+
* [TANABE, Kosuke](https://github.com/nabeta) ([@nabeta](https://twitter.com/nabeta))
|
37
|
+
* [Project Next-L](https://www.next-l.jp) ([@ProjectNextL](https://twitter.com/ProjectNextL))
|
38
|
+
|
data/Rakefile
CHANGED
@@ -16,7 +16,7 @@ RDoc::Task.new(:rdoc) do |rdoc|
|
|
16
16
|
rdoc.rdoc_dir = 'rdoc'
|
17
17
|
rdoc.title = 'EnjuLeaf'
|
18
18
|
rdoc.options << '--line-numbers'
|
19
|
-
rdoc.rdoc_files.include('README.
|
19
|
+
rdoc.rdoc_files.include('README.md')
|
20
20
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
21
21
|
end
|
22
22
|
|
@@ -33,3 +33,11 @@ RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
33
33
|
end
|
34
34
|
|
35
35
|
task :default => :spec
|
36
|
+
|
37
|
+
require 'rake/testtask'
|
38
|
+
|
39
|
+
Rake::TestTask.new(:test) do |t|
|
40
|
+
t.libs << 'test'
|
41
|
+
t.pattern = 'test/**/*_test.rb'
|
42
|
+
t.verbose = false
|
43
|
+
end
|
File without changes
|
@@ -8,7 +8,13 @@
|
|
8
8
|
<li>Gems:
|
9
9
|
<ul>
|
10
10
|
<% @specs.sort_by{|e| e.name }.each do |spec| %>
|
11
|
-
<li
|
11
|
+
<li>
|
12
|
+
<%= spec.name %>: <%= spec.version.to_s %>
|
13
|
+
<% if spec.source.is_a? Bundler::Source::Git %>
|
14
|
+
from <%= spec.source.uri %>
|
15
|
+
(at <%= spec.source.options['revision'].slice(0..7) %>)
|
16
|
+
<% end %>
|
17
|
+
</li>
|
12
18
|
<% end %>
|
13
19
|
</ul>
|
14
20
|
</li>
|
data/lib/enju_leaf.rb
CHANGED
data/lib/enju_leaf/version.rb
CHANGED
@@ -9,30 +9,13 @@ class EnjuLeaf::QuickInstallGenerator < Rails::Generators::Base
|
|
9
9
|
rake("enju_library_engine:install:migrations")
|
10
10
|
rake("enju_biblio_engine:install:migrations")
|
11
11
|
rake("enju_manifestation_viewer_engine:install:migrations")
|
12
|
+
rake("enju_subject_engine:install:migrations")
|
12
13
|
if !ENV['ENJU_SKIP_CONFIG']
|
14
|
+
generate("enju_seed:setup")
|
13
15
|
generate("enju_library:setup")
|
14
16
|
generate("enju_biblio:setup")
|
15
17
|
generate("enju_circulation:setup")
|
16
18
|
generate("enju_subject:setup")
|
17
19
|
end
|
18
|
-
rake("db:migrate", env: environment)
|
19
|
-
rake("enju_leaf:setup", env: environment)
|
20
|
-
rake("enju_circulation:setup", env: environment)
|
21
|
-
rake("enju_subject:setup", env: environment)
|
22
|
-
rake("assets:precompile", env: environment) if environment == 'production'
|
23
|
-
rake("db:seed", env: environment)
|
24
|
-
if !ENV['ENJU_SKIP_SOLR']
|
25
|
-
if ENV['OS'] == 'Windows_NT'
|
26
|
-
rake("sunspot:solr:run", env: environment)
|
27
|
-
else
|
28
|
-
rake("sunspot:solr:start", env: environment)
|
29
|
-
sleep 5
|
30
|
-
rake("environment sunspot:reindex", env: environment)
|
31
|
-
rake("sunspot:solr:stop", env: environment)
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
rake("enju_library:upgrade")
|
36
|
-
rake("enju_leaf:load_asset_files")
|
37
20
|
end
|
38
21
|
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
class EnjuLeaf::SeedGenerator < Rails::Generators::Base
|
2
|
+
source_root File.expand_path('../templates', __FILE__)
|
3
|
+
|
4
|
+
def seed
|
5
|
+
environment = ENV['RAILS_ENV'] || 'development'
|
6
|
+
if !ENV['ENJU_SKIP_SOLR']
|
7
|
+
if ENV['OS'] == 'Windows_NT'
|
8
|
+
rake("sunspot:solr:run", env: environment)
|
9
|
+
else
|
10
|
+
rake("sunspot:solr:start", env: environment)
|
11
|
+
sleep 5
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
rake("db:migrate", env: environment)
|
16
|
+
rake("enju_leaf:setup", env: environment)
|
17
|
+
rake("enju_circulation:setup", env: environment)
|
18
|
+
rake("enju_subject:setup", env: environment)
|
19
|
+
rake("assets:precompile", env: environment) if environment == 'production'
|
20
|
+
rake("db:seed", env: environment)
|
21
|
+
|
22
|
+
if !ENV['ENJU_SKIP_SOLR']
|
23
|
+
rake("environment sunspot:reindex", env: environment)
|
24
|
+
rake("sunspot:solr:stop", env: environment)
|
25
|
+
end
|
26
|
+
|
27
|
+
rake("enju_leaf:load_asset_files")
|
28
|
+
end
|
29
|
+
end
|
@@ -3,7 +3,6 @@ class EnjuLeaf::SetupGenerator < Rails::Generators::Base
|
|
3
3
|
desc "Create a setup file for Next-L Enju"
|
4
4
|
|
5
5
|
def copy_setup_files
|
6
|
-
directory("db/fixtures", "db/fixtures/enju_leaf")
|
7
6
|
directory("solr", "example/solr")
|
8
7
|
copy_file("Procfile", "Procfile")
|
9
8
|
copy_file("config/schedule.rb", "config/schedule.rb")
|
@@ -1,8 +1,4 @@
|
|
1
|
-
|
2
|
-
username = 'enjuadmin'
|
3
|
-
else
|
4
|
-
username = 'admin'
|
5
|
-
end
|
1
|
+
username = 'enjuadmin'
|
6
2
|
email = 'admin@example.jp'
|
7
3
|
password = 'adminpassword'
|
8
4
|
|
@@ -29,11 +25,12 @@ system_user = User.new
|
|
29
25
|
system_user.username = 'system'
|
30
26
|
system_user.password = SecureRandom.urlsafe_base64(32)
|
31
27
|
system_user.email = 'root@library.example.jp'
|
32
|
-
system_user.role = Role.
|
28
|
+
system_user.role = Role.find_by(name: 'Administrator')
|
29
|
+
profile = new_profile
|
30
|
+
profile.save!
|
31
|
+
system_user.profile = profile
|
33
32
|
system_user.save!
|
34
|
-
|
35
|
-
system_profile.user = system_user
|
36
|
-
system_profile.save!
|
33
|
+
LibraryGroup.first.update!(user: system_user)
|
37
34
|
|
38
35
|
user = User.new
|
39
36
|
user.username = username
|
@@ -41,10 +38,10 @@ user.email = email
|
|
41
38
|
user.password = password
|
42
39
|
user.password_confirmation = password
|
43
40
|
#user.confirm!
|
44
|
-
user.role = Role.
|
45
|
-
user.save!
|
41
|
+
user.role = Role.find_by(name: 'Administrator')
|
46
42
|
profile = new_profile
|
47
43
|
profile.user_number = '0'
|
48
|
-
profile.user = user
|
49
44
|
profile.save!
|
45
|
+
user.profile = profile
|
46
|
+
user.save!
|
50
47
|
puts 'Administrator account created.'
|
@@ -8,6 +8,7 @@ namespace :enju_leaf do
|
|
8
8
|
ActiveRecord::FixtureSet.create_fixtures('db/fixtures/enju_leaf', File.basename(file, '.*'))
|
9
9
|
end
|
10
10
|
|
11
|
+
Rake::Task['enju_seed:setup'].invoke
|
11
12
|
Rake::Task['enju_biblio:setup'].invoke
|
12
13
|
Rake::Task['enju_library:setup'].invoke
|
13
14
|
|
@@ -43,7 +44,7 @@ namespace :enju_leaf do
|
|
43
44
|
desc 'Load default asset files'
|
44
45
|
task :load_asset_files => :environment do
|
45
46
|
library_group = LibraryGroup.order(created_at: :desc).first
|
46
|
-
|
47
|
+
if library_group.header_logo.blank?
|
47
48
|
library_group.header_logo = File.open("#{File.dirname(__FILE__)}/../../app/assets/images/enju_leaf/enju-logo-yoko-without-white.png")
|
48
49
|
library_group.save!
|
49
50
|
end
|
@@ -9,7 +9,7 @@ require "enju_manifestation_viewer"
|
|
9
9
|
module Dummy
|
10
10
|
class Application < Rails::Application
|
11
11
|
# Initialize configuration defaults for originally generated Rails version.
|
12
|
-
config.load_defaults 5.
|
12
|
+
config.load_defaults 5.2
|
13
13
|
|
14
14
|
# Settings in config/environments/* take precedence over those specified here.
|
15
15
|
# Application configuration should go into files in config/initializers
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -172,51 +172,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
172
172
|
t.index ["user_id"], name: "index_baskets_on_user_id"
|
173
173
|
end
|
174
174
|
|
175
|
-
create_table "bookmark_stat_has_manifestations", force: :cascade do |t|
|
176
|
-
t.integer "bookmark_stat_id", null: false
|
177
|
-
t.integer "manifestation_id", null: false
|
178
|
-
t.integer "bookmarks_count"
|
179
|
-
t.datetime "created_at"
|
180
|
-
t.datetime "updated_at"
|
181
|
-
t.index ["bookmark_stat_id"], name: "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
|
182
|
-
t.index ["manifestation_id"], name: "index_bookmark_stat_has_manifestations_on_manifestation_id"
|
183
|
-
end
|
184
|
-
|
185
|
-
create_table "bookmark_stat_transitions", force: :cascade do |t|
|
186
|
-
t.string "to_state"
|
187
|
-
t.text "metadata", default: "{}"
|
188
|
-
t.integer "sort_key"
|
189
|
-
t.integer "bookmark_stat_id"
|
190
|
-
t.datetime "created_at"
|
191
|
-
t.datetime "updated_at"
|
192
|
-
t.index ["bookmark_stat_id"], name: "index_bookmark_stat_transitions_on_bookmark_stat_id"
|
193
|
-
t.index ["sort_key", "bookmark_stat_id"], name: "index_bookmark_stat_transitions_on_sort_key_and_stat_id", unique: true
|
194
|
-
end
|
195
|
-
|
196
|
-
create_table "bookmark_stats", force: :cascade do |t|
|
197
|
-
t.datetime "start_date"
|
198
|
-
t.datetime "end_date"
|
199
|
-
t.datetime "started_at"
|
200
|
-
t.datetime "completed_at"
|
201
|
-
t.text "note"
|
202
|
-
t.datetime "created_at"
|
203
|
-
t.datetime "updated_at"
|
204
|
-
end
|
205
|
-
|
206
|
-
create_table "bookmarks", force: :cascade do |t|
|
207
|
-
t.integer "user_id", null: false
|
208
|
-
t.integer "manifestation_id"
|
209
|
-
t.text "title"
|
210
|
-
t.string "url"
|
211
|
-
t.text "note"
|
212
|
-
t.boolean "shared"
|
213
|
-
t.datetime "created_at"
|
214
|
-
t.datetime "updated_at"
|
215
|
-
t.index ["manifestation_id"], name: "index_bookmarks_on_manifestation_id"
|
216
|
-
t.index ["url"], name: "index_bookmarks_on_url"
|
217
|
-
t.index ["user_id"], name: "index_bookmarks_on_user_id"
|
218
|
-
end
|
219
|
-
|
220
175
|
create_table "bookstores", force: :cascade do |t|
|
221
176
|
t.text "name", null: false
|
222
177
|
t.string "zip_code"
|
@@ -240,17 +195,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
240
195
|
t.datetime "updated_at"
|
241
196
|
end
|
242
197
|
|
243
|
-
create_table "carrier_type_has_checkout_types", force: :cascade do |t|
|
244
|
-
t.integer "carrier_type_id", null: false
|
245
|
-
t.integer "checkout_type_id", null: false
|
246
|
-
t.text "note"
|
247
|
-
t.integer "position"
|
248
|
-
t.datetime "created_at"
|
249
|
-
t.datetime "updated_at"
|
250
|
-
t.index ["carrier_type_id"], name: "index_carrier_type_has_checkout_types_on_m_form_id"
|
251
|
-
t.index ["checkout_type_id"], name: "index_carrier_type_has_checkout_types_on_checkout_type_id"
|
252
|
-
end
|
253
|
-
|
254
198
|
create_table "carrier_types", force: :cascade do |t|
|
255
199
|
t.string "name", null: false
|
256
200
|
t.text "display_name"
|
@@ -258,86 +202,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
258
202
|
t.integer "position"
|
259
203
|
t.datetime "created_at"
|
260
204
|
t.datetime "updated_at"
|
261
|
-
t.string "attachment_file_name"
|
262
|
-
t.string "attachment_content_type"
|
263
|
-
t.integer "attachment_file_size"
|
264
|
-
t.datetime "attachment_updated_at"
|
265
|
-
end
|
266
|
-
|
267
|
-
create_table "checked_items", force: :cascade do |t|
|
268
|
-
t.integer "item_id", null: false
|
269
|
-
t.integer "basket_id", null: false
|
270
|
-
t.datetime "due_date", null: false
|
271
|
-
t.datetime "created_at"
|
272
|
-
t.datetime "updated_at"
|
273
|
-
t.integer "librarian_id"
|
274
|
-
t.index ["basket_id"], name: "index_checked_items_on_basket_id"
|
275
|
-
t.index ["item_id"], name: "index_checked_items_on_item_id"
|
276
|
-
end
|
277
|
-
|
278
|
-
create_table "checkins", force: :cascade do |t|
|
279
|
-
t.integer "item_id", null: false
|
280
|
-
t.integer "librarian_id"
|
281
|
-
t.integer "basket_id"
|
282
|
-
t.datetime "created_at"
|
283
|
-
t.datetime "updated_at"
|
284
|
-
t.integer "lock_version", default: 0, null: false
|
285
|
-
t.index ["basket_id"], name: "index_checkins_on_basket_id"
|
286
|
-
t.index ["item_id"], name: "index_checkins_on_item_id"
|
287
|
-
t.index ["librarian_id"], name: "index_checkins_on_librarian_id"
|
288
|
-
end
|
289
|
-
|
290
|
-
create_table "checkout_stat_has_manifestations", force: :cascade do |t|
|
291
|
-
t.integer "manifestation_checkout_stat_id", null: false
|
292
|
-
t.integer "manifestation_id", null: false
|
293
|
-
t.integer "checkouts_count"
|
294
|
-
t.datetime "created_at"
|
295
|
-
t.datetime "updated_at"
|
296
|
-
t.index ["manifestation_checkout_stat_id"], name: "index_checkout_stat_has_manifestations_on_checkout_stat_id"
|
297
|
-
t.index ["manifestation_id"], name: "index_checkout_stat_has_manifestations_on_manifestation_id"
|
298
|
-
end
|
299
|
-
|
300
|
-
create_table "checkout_stat_has_users", force: :cascade do |t|
|
301
|
-
t.integer "user_checkout_stat_id", null: false
|
302
|
-
t.integer "user_id", null: false
|
303
|
-
t.integer "checkouts_count", default: 0, null: false
|
304
|
-
t.datetime "created_at"
|
305
|
-
t.datetime "updated_at"
|
306
|
-
t.index ["user_checkout_stat_id"], name: "index_checkout_stat_has_users_on_user_checkout_stat_id"
|
307
|
-
t.index ["user_id"], name: "index_checkout_stat_has_users_on_user_id"
|
308
|
-
end
|
309
|
-
|
310
|
-
create_table "checkout_types", force: :cascade do |t|
|
311
|
-
t.string "name", null: false
|
312
|
-
t.text "display_name"
|
313
|
-
t.text "note"
|
314
|
-
t.integer "position"
|
315
|
-
t.datetime "created_at"
|
316
|
-
t.datetime "updated_at"
|
317
|
-
t.index ["name"], name: "index_checkout_types_on_name"
|
318
|
-
end
|
319
|
-
|
320
|
-
create_table "checkouts", force: :cascade do |t|
|
321
|
-
t.integer "user_id"
|
322
|
-
t.integer "item_id", null: false
|
323
|
-
t.integer "checkin_id"
|
324
|
-
t.integer "librarian_id"
|
325
|
-
t.integer "basket_id"
|
326
|
-
t.datetime "due_date"
|
327
|
-
t.integer "checkout_renewal_count", default: 0, null: false
|
328
|
-
t.integer "lock_version", default: 0, null: false
|
329
|
-
t.datetime "created_at"
|
330
|
-
t.datetime "updated_at"
|
331
|
-
t.integer "shelf_id"
|
332
|
-
t.integer "library_id"
|
333
|
-
t.index ["basket_id"], name: "index_checkouts_on_basket_id"
|
334
|
-
t.index ["checkin_id"], name: "index_checkouts_on_checkin_id"
|
335
|
-
t.index ["item_id", "basket_id"], name: "index_checkouts_on_item_id_and_basket_id", unique: true
|
336
|
-
t.index ["item_id"], name: "index_checkouts_on_item_id"
|
337
|
-
t.index ["librarian_id"], name: "index_checkouts_on_librarian_id"
|
338
|
-
t.index ["library_id"], name: "index_checkouts_on_library_id"
|
339
|
-
t.index ["shelf_id"], name: "index_checkouts_on_shelf_id"
|
340
|
-
t.index ["user_id"], name: "index_checkouts_on_user_id"
|
341
205
|
end
|
342
206
|
|
343
207
|
create_table "circulation_statuses", force: :cascade do |t|
|
@@ -402,17 +266,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
402
266
|
t.index ["work_id"], name: "index_creates_on_work_id"
|
403
267
|
end
|
404
268
|
|
405
|
-
create_table "demands", force: :cascade do |t|
|
406
|
-
t.integer "user_id"
|
407
|
-
t.integer "item_id"
|
408
|
-
t.integer "message_id"
|
409
|
-
t.datetime "created_at", null: false
|
410
|
-
t.datetime "updated_at", null: false
|
411
|
-
t.index ["item_id"], name: "index_demands_on_item_id"
|
412
|
-
t.index ["message_id"], name: "index_demands_on_message_id"
|
413
|
-
t.index ["user_id"], name: "index_demands_on_user_id"
|
414
|
-
end
|
415
|
-
|
416
269
|
create_table "donates", force: :cascade do |t|
|
417
270
|
t.integer "agent_id", null: false
|
418
271
|
t.integer "item_id", null: false
|
@@ -505,19 +358,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
505
358
|
t.index ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
|
506
359
|
end
|
507
360
|
|
508
|
-
create_table "identities", force: :cascade do |t|
|
509
|
-
t.string "name"
|
510
|
-
t.string "email"
|
511
|
-
t.string "password_digest"
|
512
|
-
t.integer "profile_id"
|
513
|
-
t.datetime "created_at", null: false
|
514
|
-
t.datetime "updated_at", null: false
|
515
|
-
t.string "provider"
|
516
|
-
t.index ["email"], name: "index_identities_on_email"
|
517
|
-
t.index ["name"], name: "index_identities_on_name"
|
518
|
-
t.index ["profile_id"], name: "index_identities_on_profile_id"
|
519
|
-
end
|
520
|
-
|
521
361
|
create_table "import_request_transitions", force: :cascade do |t|
|
522
362
|
t.string "to_state"
|
523
363
|
t.text "metadata", default: "{}"
|
@@ -541,26 +381,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
541
381
|
t.index ["user_id"], name: "index_import_requests_on_user_id"
|
542
382
|
end
|
543
383
|
|
544
|
-
create_table "item_has_use_restrictions", force: :cascade do |t|
|
545
|
-
t.integer "item_id", null: false
|
546
|
-
t.integer "use_restriction_id", null: false
|
547
|
-
t.datetime "created_at"
|
548
|
-
t.datetime "updated_at"
|
549
|
-
t.index ["item_id"], name: "index_item_has_use_restrictions_on_item_id"
|
550
|
-
t.index ["use_restriction_id"], name: "index_item_has_use_restrictions_on_use_restriction_id"
|
551
|
-
end
|
552
|
-
|
553
|
-
create_table "item_transitions", force: :cascade do |t|
|
554
|
-
t.string "to_state"
|
555
|
-
t.text "metadata", default: "{}"
|
556
|
-
t.integer "sort_key"
|
557
|
-
t.integer "item_id"
|
558
|
-
t.datetime "created_at"
|
559
|
-
t.datetime "updated_at"
|
560
|
-
t.index ["item_id"], name: "index_item_transitions_on_item_id"
|
561
|
-
t.index ["sort_key", "item_id"], name: "index_item_transitions_on_sort_key_and_item_id", unique: true
|
562
|
-
end
|
563
|
-
|
564
384
|
create_table "items", force: :cascade do |t|
|
565
385
|
t.string "call_number"
|
566
386
|
t.string "item_identifier"
|
@@ -578,16 +398,12 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
578
398
|
t.datetime "acquired_at"
|
579
399
|
t.integer "bookstore_id"
|
580
400
|
t.integer "budget_type_id"
|
581
|
-
t.integer "circulation_status_id", default: 5, null: false
|
582
|
-
t.integer "checkout_type_id", default: 1, null: false
|
583
401
|
t.string "binding_item_identifier"
|
584
402
|
t.string "binding_call_number"
|
585
403
|
t.datetime "binded_at"
|
586
404
|
t.integer "manifestation_id", null: false
|
587
405
|
t.index ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
|
588
406
|
t.index ["bookstore_id"], name: "index_items_on_bookstore_id"
|
589
|
-
t.index ["checkout_type_id"], name: "index_items_on_checkout_type_id"
|
590
|
-
t.index ["circulation_status_id"], name: "index_items_on_circulation_status_id"
|
591
407
|
t.index ["item_identifier"], name: "index_items_on_item_identifier"
|
592
408
|
t.index ["manifestation_id"], name: "index_items_on_manifestation_id"
|
593
409
|
t.index ["required_role_id"], name: "index_items_on_required_role_id"
|
@@ -609,20 +425,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
609
425
|
t.index ["name"], name: "index_languages_on_name", unique: true
|
610
426
|
end
|
611
427
|
|
612
|
-
create_table "lending_policies", force: :cascade do |t|
|
613
|
-
t.integer "item_id", null: false
|
614
|
-
t.integer "user_group_id", null: false
|
615
|
-
t.integer "loan_period", default: 0, null: false
|
616
|
-
t.datetime "fixed_due_date"
|
617
|
-
t.integer "renewal", default: 0, null: false
|
618
|
-
t.integer "fine", default: 0, null: false
|
619
|
-
t.text "note"
|
620
|
-
t.integer "position"
|
621
|
-
t.datetime "created_at"
|
622
|
-
t.datetime "updated_at"
|
623
|
-
t.index ["item_id", "user_group_id"], name: "index_lending_policies_on_item_id_and_user_group_id", unique: true
|
624
|
-
end
|
625
|
-
|
626
428
|
create_table "libraries", force: :cascade do |t|
|
627
429
|
t.string "name", null: false
|
628
430
|
t.text "display_name"
|
@@ -675,7 +477,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
675
477
|
t.datetime "created_at"
|
676
478
|
t.datetime "updated_at"
|
677
479
|
t.text "admin_networks"
|
678
|
-
t.boolean "allow_bookmark_external_url", default: false, null: false
|
679
480
|
t.string "url", default: "http://localhost:3000/"
|
680
481
|
t.text "settings"
|
681
482
|
t.text "html_snippet"
|
@@ -686,10 +487,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
686
487
|
t.integer "pub_year_facet_range_interval", default: 10
|
687
488
|
t.integer "user_id"
|
688
489
|
t.boolean "csv_charset_conversion", default: false, null: false
|
689
|
-
t.string "header_logo_file_name"
|
690
|
-
t.string "header_logo_content_type"
|
691
|
-
t.integer "header_logo_file_size"
|
692
|
-
t.datetime "header_logo_updated_at"
|
693
490
|
t.text "header_logo_meta"
|
694
491
|
t.index ["short_name"], name: "index_library_groups_on_short_name"
|
695
492
|
t.index ["user_id"], name: "index_library_groups_on_user_id"
|
@@ -704,30 +501,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
704
501
|
t.datetime "updated_at"
|
705
502
|
end
|
706
503
|
|
707
|
-
create_table "manifestation_checkout_stat_transitions", force: :cascade do |t|
|
708
|
-
t.string "to_state"
|
709
|
-
t.text "metadata", default: "{}"
|
710
|
-
t.integer "sort_key"
|
711
|
-
t.integer "manifestation_checkout_stat_id"
|
712
|
-
t.datetime "created_at"
|
713
|
-
t.datetime "updated_at"
|
714
|
-
t.boolean "most_recent"
|
715
|
-
t.index ["manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_stat_id"
|
716
|
-
t.index ["sort_key", "manifestation_checkout_stat_id"], name: "index_manifestation_checkout_stat_transitions_on_transition", unique: true
|
717
|
-
end
|
718
|
-
|
719
|
-
create_table "manifestation_checkout_stats", force: :cascade do |t|
|
720
|
-
t.datetime "start_date"
|
721
|
-
t.datetime "end_date"
|
722
|
-
t.text "note"
|
723
|
-
t.datetime "created_at"
|
724
|
-
t.datetime "updated_at"
|
725
|
-
t.datetime "started_at"
|
726
|
-
t.datetime "completed_at"
|
727
|
-
t.integer "user_id"
|
728
|
-
t.index ["user_id"], name: "index_manifestation_checkout_stats_on_user_id"
|
729
|
-
end
|
730
|
-
|
731
504
|
create_table "manifestation_relationship_types", force: :cascade do |t|
|
732
505
|
t.string "name", null: false
|
733
506
|
t.text "display_name"
|
@@ -748,30 +521,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
748
521
|
t.index ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
|
749
522
|
end
|
750
523
|
|
751
|
-
create_table "manifestation_reserve_stat_transitions", force: :cascade do |t|
|
752
|
-
t.string "to_state"
|
753
|
-
t.text "metadata", default: "{}"
|
754
|
-
t.integer "sort_key"
|
755
|
-
t.integer "manifestation_reserve_stat_id"
|
756
|
-
t.datetime "created_at"
|
757
|
-
t.datetime "updated_at"
|
758
|
-
t.boolean "most_recent"
|
759
|
-
t.index ["manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_stat_id"
|
760
|
-
t.index ["sort_key", "manifestation_reserve_stat_id"], name: "index_manifestation_reserve_stat_transitions_on_transition", unique: true
|
761
|
-
end
|
762
|
-
|
763
|
-
create_table "manifestation_reserve_stats", force: :cascade do |t|
|
764
|
-
t.datetime "start_date"
|
765
|
-
t.datetime "end_date"
|
766
|
-
t.text "note"
|
767
|
-
t.datetime "created_at"
|
768
|
-
t.datetime "updated_at"
|
769
|
-
t.datetime "started_at"
|
770
|
-
t.datetime "completed_at"
|
771
|
-
t.integer "user_id"
|
772
|
-
t.index ["user_id"], name: "index_manifestation_reserve_stats_on_user_id"
|
773
|
-
end
|
774
|
-
|
775
524
|
create_table "manifestations", force: :cascade do |t|
|
776
525
|
t.text "original_title", null: false
|
777
526
|
t.text "title_alternative"
|
@@ -804,10 +553,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
804
553
|
t.integer "required_score", default: 0, null: false
|
805
554
|
t.integer "frequency_id", default: 1, null: false
|
806
555
|
t.boolean "subscription_master", default: false, null: false
|
807
|
-
t.string "attachment_file_name"
|
808
|
-
t.string "attachment_content_type"
|
809
|
-
t.integer "attachment_file_size"
|
810
|
-
t.datetime "attachment_updated_at"
|
811
556
|
t.text "title_alternative_transcription"
|
812
557
|
t.text "description"
|
813
558
|
t.text "abstract"
|
@@ -824,10 +569,8 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
824
569
|
t.string "ndc"
|
825
570
|
t.integer "content_type_id", default: 1
|
826
571
|
t.integer "year_of_publication"
|
827
|
-
t.text "attachment_meta"
|
828
572
|
t.integer "month_of_publication"
|
829
573
|
t.boolean "fulltext_content"
|
830
|
-
t.string "doi"
|
831
574
|
t.boolean "serial"
|
832
575
|
t.text "statement_of_responsibility"
|
833
576
|
t.text "publication_place"
|
@@ -835,7 +578,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
835
578
|
t.text "dimensions"
|
836
579
|
t.index ["access_address"], name: "index_manifestations_on_access_address"
|
837
580
|
t.index ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
|
838
|
-
t.index ["doi"], name: "index_manifestations_on_doi"
|
839
581
|
t.index ["manifestation_identifier"], name: "index_manifestations_on_manifestation_identifier"
|
840
582
|
t.index ["updated_at"], name: "index_manifestations_on_updated_at"
|
841
583
|
end
|
@@ -975,14 +717,10 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
975
717
|
t.integer "required_role_id"
|
976
718
|
t.datetime "created_at"
|
977
719
|
t.datetime "updated_at"
|
978
|
-
t.string "checkout_icalendar_token"
|
979
|
-
t.boolean "save_checkout_history", default: false, null: false
|
980
720
|
t.datetime "expired_at"
|
981
721
|
t.boolean "save_search_history"
|
982
|
-
t.boolean "share_bookmarks"
|
983
722
|
t.text "full_name_transcription"
|
984
723
|
t.datetime "date_of_birth"
|
985
|
-
t.index ["checkout_icalendar_token"], name: "index_profiles_on_checkout_icalendar_token", unique: true
|
986
724
|
t.index ["user_id"], name: "index_profiles_on_user_id"
|
987
725
|
t.index ["user_number"], name: "index_profiles_on_user_number", unique: true
|
988
726
|
end
|
@@ -1025,62 +763,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1025
763
|
t.datetime "updated_at"
|
1026
764
|
end
|
1027
765
|
|
1028
|
-
create_table "reserve_stat_has_manifestations", force: :cascade do |t|
|
1029
|
-
t.integer "manifestation_reserve_stat_id", null: false
|
1030
|
-
t.integer "manifestation_id", null: false
|
1031
|
-
t.integer "reserves_count"
|
1032
|
-
t.datetime "created_at"
|
1033
|
-
t.datetime "updated_at"
|
1034
|
-
t.index ["manifestation_id"], name: "index_reserve_stat_has_manifestations_on_manifestation_id"
|
1035
|
-
t.index ["manifestation_reserve_stat_id"], name: "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
|
1036
|
-
end
|
1037
|
-
|
1038
|
-
create_table "reserve_stat_has_users", force: :cascade do |t|
|
1039
|
-
t.integer "user_reserve_stat_id", null: false
|
1040
|
-
t.integer "user_id", null: false
|
1041
|
-
t.integer "reserves_count"
|
1042
|
-
t.datetime "created_at"
|
1043
|
-
t.datetime "updated_at"
|
1044
|
-
t.index ["user_id"], name: "index_reserve_stat_has_users_on_user_id"
|
1045
|
-
t.index ["user_reserve_stat_id"], name: "index_reserve_stat_has_users_on_user_reserve_stat_id"
|
1046
|
-
end
|
1047
|
-
|
1048
|
-
create_table "reserve_transitions", force: :cascade do |t|
|
1049
|
-
t.string "to_state"
|
1050
|
-
t.text "metadata", default: "{}"
|
1051
|
-
t.integer "sort_key"
|
1052
|
-
t.integer "reserve_id"
|
1053
|
-
t.datetime "created_at"
|
1054
|
-
t.datetime "updated_at"
|
1055
|
-
t.boolean "most_recent"
|
1056
|
-
t.index ["reserve_id"], name: "index_reserve_transitions_on_reserve_id"
|
1057
|
-
t.index ["sort_key", "reserve_id"], name: "index_reserve_transitions_on_sort_key_and_reserve_id", unique: true
|
1058
|
-
end
|
1059
|
-
|
1060
|
-
create_table "reserves", force: :cascade do |t|
|
1061
|
-
t.integer "user_id", null: false
|
1062
|
-
t.integer "manifestation_id", null: false
|
1063
|
-
t.integer "item_id"
|
1064
|
-
t.integer "request_status_type_id", null: false
|
1065
|
-
t.datetime "checked_out_at"
|
1066
|
-
t.datetime "created_at"
|
1067
|
-
t.datetime "updated_at"
|
1068
|
-
t.datetime "canceled_at"
|
1069
|
-
t.datetime "expired_at"
|
1070
|
-
t.datetime "deleted_at"
|
1071
|
-
t.boolean "expiration_notice_to_patron", default: false
|
1072
|
-
t.boolean "expiration_notice_to_library", default: false
|
1073
|
-
t.integer "pickup_location_id"
|
1074
|
-
t.datetime "retained_at"
|
1075
|
-
t.datetime "postponed_at"
|
1076
|
-
t.integer "lock_version", default: 0, null: false
|
1077
|
-
t.index ["item_id"], name: "index_reserves_on_item_id"
|
1078
|
-
t.index ["manifestation_id"], name: "index_reserves_on_manifestation_id"
|
1079
|
-
t.index ["pickup_location_id"], name: "index_reserves_on_pickup_location_id"
|
1080
|
-
t.index ["request_status_type_id"], name: "index_reserves_on_request_status_type_id"
|
1081
|
-
t.index ["user_id"], name: "index_reserves_on_user_id"
|
1082
|
-
end
|
1083
|
-
|
1084
766
|
create_table "resource_export_file_transitions", force: :cascade do |t|
|
1085
767
|
t.string "to_state"
|
1086
768
|
t.text "metadata", default: "{}"
|
@@ -1244,7 +926,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1244
926
|
t.text "title_transcription"
|
1245
927
|
t.text "title_alternative"
|
1246
928
|
t.string "series_statement_identifier"
|
1247
|
-
t.string "issn"
|
1248
929
|
t.boolean "periodical"
|
1249
930
|
t.integer "manifestation_id"
|
1250
931
|
t.text "note"
|
@@ -1326,30 +1007,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1326
1007
|
t.datetime "updated_at"
|
1327
1008
|
end
|
1328
1009
|
|
1329
|
-
create_table "user_checkout_stat_transitions", force: :cascade do |t|
|
1330
|
-
t.string "to_state"
|
1331
|
-
t.text "metadata", default: "{}"
|
1332
|
-
t.integer "sort_key"
|
1333
|
-
t.integer "user_checkout_stat_id"
|
1334
|
-
t.datetime "created_at"
|
1335
|
-
t.datetime "updated_at"
|
1336
|
-
t.boolean "most_recent"
|
1337
|
-
t.index ["sort_key", "user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_sort_key_and_stat_id", unique: true
|
1338
|
-
t.index ["user_checkout_stat_id"], name: "index_user_checkout_stat_transitions_on_user_checkout_stat_id"
|
1339
|
-
end
|
1340
|
-
|
1341
|
-
create_table "user_checkout_stats", force: :cascade do |t|
|
1342
|
-
t.datetime "start_date"
|
1343
|
-
t.datetime "end_date"
|
1344
|
-
t.text "note"
|
1345
|
-
t.datetime "created_at"
|
1346
|
-
t.datetime "updated_at"
|
1347
|
-
t.datetime "started_at"
|
1348
|
-
t.datetime "completed_at"
|
1349
|
-
t.integer "user_id"
|
1350
|
-
t.index ["user_id"], name: "index_user_checkout_stats_on_user_id"
|
1351
|
-
end
|
1352
|
-
|
1353
1010
|
create_table "user_export_file_transitions", force: :cascade do |t|
|
1354
1011
|
t.string "to_state"
|
1355
1012
|
t.text "metadata", default: "{}"
|
@@ -1375,25 +1032,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1375
1032
|
t.index ["user_id"], name: "index_user_export_files_on_user_id"
|
1376
1033
|
end
|
1377
1034
|
|
1378
|
-
create_table "user_group_has_checkout_types", force: :cascade do |t|
|
1379
|
-
t.integer "user_group_id", null: false
|
1380
|
-
t.integer "checkout_type_id", null: false
|
1381
|
-
t.integer "checkout_limit", default: 0, null: false
|
1382
|
-
t.integer "checkout_period", default: 0, null: false
|
1383
|
-
t.integer "checkout_renewal_limit", default: 0, null: false
|
1384
|
-
t.integer "reservation_limit", default: 0, null: false
|
1385
|
-
t.integer "reservation_expired_period", default: 7, null: false
|
1386
|
-
t.boolean "set_due_date_before_closing_day", default: false, null: false
|
1387
|
-
t.datetime "fixed_due_date"
|
1388
|
-
t.text "note"
|
1389
|
-
t.integer "position"
|
1390
|
-
t.datetime "created_at"
|
1391
|
-
t.datetime "updated_at"
|
1392
|
-
t.integer "current_checkout_count"
|
1393
|
-
t.index ["checkout_type_id"], name: "index_user_group_has_checkout_types_on_checkout_type_id"
|
1394
|
-
t.index ["user_group_id"], name: "index_user_group_has_checkout_types_on_user_group_id"
|
1395
|
-
end
|
1396
|
-
|
1397
1035
|
create_table "user_groups", force: :cascade do |t|
|
1398
1036
|
t.string "name"
|
1399
1037
|
t.text "display_name"
|
@@ -1460,30 +1098,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1460
1098
|
t.index ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
|
1461
1099
|
end
|
1462
1100
|
|
1463
|
-
create_table "user_reserve_stat_transitions", force: :cascade do |t|
|
1464
|
-
t.string "to_state"
|
1465
|
-
t.text "metadata", default: "{}"
|
1466
|
-
t.integer "sort_key"
|
1467
|
-
t.integer "user_reserve_stat_id"
|
1468
|
-
t.datetime "created_at"
|
1469
|
-
t.datetime "updated_at"
|
1470
|
-
t.boolean "most_recent"
|
1471
|
-
t.index ["sort_key", "user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_sort_key_and_stat_id", unique: true
|
1472
|
-
t.index ["user_reserve_stat_id"], name: "index_user_reserve_stat_transitions_on_user_reserve_stat_id"
|
1473
|
-
end
|
1474
|
-
|
1475
|
-
create_table "user_reserve_stats", force: :cascade do |t|
|
1476
|
-
t.datetime "start_date"
|
1477
|
-
t.datetime "end_date"
|
1478
|
-
t.text "note"
|
1479
|
-
t.datetime "created_at"
|
1480
|
-
t.datetime "updated_at"
|
1481
|
-
t.datetime "started_at"
|
1482
|
-
t.datetime "completed_at"
|
1483
|
-
t.integer "user_id"
|
1484
|
-
t.index ["user_id"], name: "index_user_reserve_stats_on_user_id"
|
1485
|
-
end
|
1486
|
-
|
1487
1101
|
create_table "users", force: :cascade do |t|
|
1488
1102
|
t.string "email", default: "", null: false
|
1489
1103
|
t.string "encrypted_password", default: "", null: false
|
@@ -1497,9 +1111,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1497
1111
|
t.string "last_sign_in_ip"
|
1498
1112
|
t.datetime "created_at"
|
1499
1113
|
t.datetime "updated_at"
|
1500
|
-
t.boolean "save_checkout_history", default: false, null: false
|
1501
|
-
t.string "checkout_icalendar_token"
|
1502
|
-
t.boolean "share_bookmarks"
|
1503
1114
|
t.boolean "save_search_history", default: false, null: false
|
1504
1115
|
t.string "username"
|
1505
1116
|
t.datetime "deleted_at"
|
@@ -1508,7 +1119,6 @@ ActiveRecord::Schema.define(version: 2018_01_02_162311) do
|
|
1508
1119
|
t.string "unlock_token"
|
1509
1120
|
t.datetime "locked_at"
|
1510
1121
|
t.datetime "confirmed_at"
|
1511
|
-
t.index ["checkout_icalendar_token"], name: "index_users_on_checkout_icalendar_token", unique: true
|
1512
1122
|
t.index ["email"], name: "index_users_on_email"
|
1513
1123
|
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
1514
1124
|
t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
|