enju_bookmark 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/enju_bookmark/version.rb +1 -1
- data/spec/dummy/config/application.rb +1 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/032_create_checkins.rb +17 -0
- data/spec/dummy/db/migrate/033_create_checkouts.rb +25 -0
- data/spec/dummy/db/migrate/035_create_reserves.rb +27 -0
- data/spec/dummy/db/migrate/120_create_baskets.rb +12 -0
- data/spec/dummy/db/migrate/121_create_checked_items.rb +17 -0
- data/spec/dummy/db/migrate/20081030023518_create_user_group_has_checkout_types.rb +25 -0
- data/spec/dummy/db/migrate/20081030023615_create_carrier_type_has_checkout_types.rb +18 -0
- data/spec/dummy/db/migrate/20081212075554_create_checkout_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081212080038_create_manifestation_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094302_create_user_checkout_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081215094955_create_checkout_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20081216190517_create_reserve_stat_has_manifestations.rb +17 -0
- data/spec/dummy/db/migrate/20081216190724_create_manifestation_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220023628_create_user_reserve_stats.rb +16 -0
- data/spec/dummy/db/migrate/20081220034117_create_reserve_stat_has_users.rb +17 -0
- data/spec/dummy/db/migrate/20090321130448_add_completed_at_to_user_checkout_stat.rb +27 -0
- data/spec/dummy/db/migrate/20090831220301_create_lending_policies.rb +21 -0
- data/spec/dummy/db/migrate/20110301134521_add_expire_date_to_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110318183304_add_valid_period_for_new_user_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20110328130826_add_current_checkout_count_to_user_group_has_checkout_type.rb +9 -0
- data/spec/dummy/db/migrate/20110621093332_remove_expire_date_from_reserve.rb +9 -0
- data/spec/dummy/db/migrate/20110627122938_add_number_of_day_to_notify_overdue_to_user_group.rb +13 -0
- data/spec/dummy/db/migrate/20111217234412_add_save_checkout_history_to_user.rb +5 -0
- data/spec/dummy/db/migrate/20111218002349_add_checkout_icalendar_token_to_user.rb +6 -0
- data/spec/dummy/db/migrate/20120319173203_create_accepts.rb +14 -0
- data/spec/dummy/db/migrate/20120424103932_add_librarian_id_to_checked_item.rb +5 -0
- data/spec/dummy/db/schema.rb +288 -62
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/enju_leaf.rb +1 -0
- data/spec/dummy/lib/enju_leaf/import_file.rb +13 -0
- data/spec/dummy/solr/data/test/index/_0.fdt +0 -0
- data/spec/dummy/solr/data/test/index/_0.fdx +0 -0
- data/spec/dummy/solr/data/test/index/_0.fnm +3 -0
- data/spec/dummy/solr/data/test/index/_0.frq +0 -0
- data/spec/dummy/solr/data/test/index/_0.nrm +1 -0
- data/spec/dummy/solr/data/test/index/_0.prx +0 -0
- data/spec/dummy/solr/data/test/index/_0.tii +0 -0
- data/spec/dummy/solr/data/test/index/_0.tis +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_2 +0 -0
- data/spec/dummy/solr/data/test/spellchecker/segments_1 +0 -0
- metadata +92 -8
- data/spec/dummy/app/models/checkout_type.rb +0 -32
- data/spec/dummy/app/models/circulation_status.rb +0 -21
- data/spec/dummy/solr/data/test/index/segments_1 +0 -0
data/spec/dummy/db/schema.rb
CHANGED
@@ -11,14 +11,35 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended to check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(:version =>
|
14
|
+
ActiveRecord::Schema.define(:version => 20120424103932) do
|
15
|
+
|
16
|
+
create_table "accepts", :force => true do |t|
|
17
|
+
t.integer "basket_id"
|
18
|
+
t.integer "item_id"
|
19
|
+
t.integer "librarian_id"
|
20
|
+
t.datetime "created_at", :null => false
|
21
|
+
t.datetime "updated_at", :null => false
|
22
|
+
end
|
23
|
+
|
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
|
+
|
27
|
+
create_table "baskets", :force => true do |t|
|
28
|
+
t.integer "user_id"
|
29
|
+
t.text "note"
|
30
|
+
t.integer "lock_version", :default => 0, :null => false
|
31
|
+
t.datetime "created_at", :null => false
|
32
|
+
t.datetime "updated_at", :null => false
|
33
|
+
end
|
34
|
+
|
35
|
+
add_index "baskets", ["user_id"], :name => "index_baskets_on_user_id"
|
15
36
|
|
16
37
|
create_table "bookmark_stat_has_manifestations", :force => true do |t|
|
17
38
|
t.integer "bookmark_stat_id", :null => false
|
18
39
|
t.integer "manifestation_id", :null => false
|
19
40
|
t.integer "bookmarks_count"
|
20
|
-
t.datetime "created_at"
|
21
|
-
t.datetime "updated_at"
|
41
|
+
t.datetime "created_at"
|
42
|
+
t.datetime "updated_at"
|
22
43
|
end
|
23
44
|
|
24
45
|
add_index "bookmark_stat_has_manifestations", ["bookmark_stat_id"], :name => "index_bookmark_stat_has_manifestations_on_bookmark_stat_id"
|
@@ -27,12 +48,12 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
27
48
|
create_table "bookmark_stats", :force => true do |t|
|
28
49
|
t.datetime "start_date"
|
29
50
|
t.datetime "end_date"
|
30
|
-
t.datetime "started_at"
|
31
|
-
t.datetime "completed_at"
|
32
51
|
t.text "note"
|
33
52
|
t.string "state"
|
34
|
-
t.datetime "
|
35
|
-
t.datetime "
|
53
|
+
t.datetime "started_at"
|
54
|
+
t.datetime "completed_at"
|
55
|
+
t.datetime "created_at"
|
56
|
+
t.datetime "updated_at"
|
36
57
|
end
|
37
58
|
|
38
59
|
add_index "bookmark_stats", ["state"], :name => "index_bookmark_stats_on_state"
|
@@ -44,41 +65,119 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
44
65
|
t.string "url"
|
45
66
|
t.text "note"
|
46
67
|
t.boolean "shared"
|
47
|
-
t.datetime "created_at"
|
48
|
-
t.datetime "updated_at"
|
68
|
+
t.datetime "created_at"
|
69
|
+
t.datetime "updated_at"
|
49
70
|
end
|
50
71
|
|
51
72
|
add_index "bookmarks", ["manifestation_id"], :name => "index_bookmarks_on_manifestation_id"
|
52
73
|
add_index "bookmarks", ["url"], :name => "index_bookmarks_on_url"
|
53
74
|
add_index "bookmarks", ["user_id"], :name => "index_bookmarks_on_user_id"
|
54
75
|
|
76
|
+
create_table "carrier_type_has_checkout_types", :force => true do |t|
|
77
|
+
t.integer "carrier_type_id", :null => false
|
78
|
+
t.integer "checkout_type_id", :null => false
|
79
|
+
t.text "note"
|
80
|
+
t.integer "position"
|
81
|
+
t.datetime "created_at", :null => false
|
82
|
+
t.datetime "updated_at", :null => false
|
83
|
+
end
|
84
|
+
|
85
|
+
add_index "carrier_type_has_checkout_types", ["carrier_type_id"], :name => "index_carrier_type_has_checkout_types_on_m_form_id"
|
86
|
+
add_index "carrier_type_has_checkout_types", ["checkout_type_id"], :name => "index_carrier_type_has_checkout_types_on_checkout_type_id"
|
87
|
+
|
55
88
|
create_table "carrier_types", :force => true do |t|
|
56
89
|
t.string "name", :null => false
|
57
90
|
t.text "display_name"
|
58
91
|
t.text "note"
|
59
92
|
t.integer "position"
|
93
|
+
t.datetime "created_at"
|
94
|
+
t.datetime "updated_at"
|
95
|
+
end
|
96
|
+
|
97
|
+
create_table "checked_items", :force => true do |t|
|
98
|
+
t.integer "item_id", :null => false
|
99
|
+
t.integer "basket_id", :null => false
|
100
|
+
t.datetime "due_date", :null => false
|
101
|
+
t.datetime "created_at", :null => false
|
102
|
+
t.datetime "updated_at", :null => false
|
103
|
+
t.integer "librarian_id"
|
104
|
+
end
|
105
|
+
|
106
|
+
add_index "checked_items", ["basket_id"], :name => "index_checked_items_on_basket_id"
|
107
|
+
add_index "checked_items", ["item_id"], :name => "index_checked_items_on_item_id"
|
108
|
+
|
109
|
+
create_table "checkins", :force => true do |t|
|
110
|
+
t.integer "item_id", :null => false
|
111
|
+
t.integer "librarian_id"
|
112
|
+
t.integer "basket_id"
|
60
113
|
t.datetime "created_at", :null => false
|
61
114
|
t.datetime "updated_at", :null => false
|
62
115
|
end
|
63
116
|
|
117
|
+
add_index "checkins", ["basket_id"], :name => "index_checkins_on_basket_id"
|
118
|
+
add_index "checkins", ["item_id"], :name => "index_checkins_on_item_id"
|
119
|
+
add_index "checkins", ["librarian_id"], :name => "index_checkins_on_librarian_id"
|
120
|
+
|
121
|
+
create_table "checkout_stat_has_manifestations", :force => true do |t|
|
122
|
+
t.integer "manifestation_checkout_stat_id", :null => false
|
123
|
+
t.integer "manifestation_id", :null => false
|
124
|
+
t.integer "checkouts_count"
|
125
|
+
t.datetime "created_at", :null => false
|
126
|
+
t.datetime "updated_at", :null => false
|
127
|
+
end
|
128
|
+
|
129
|
+
add_index "checkout_stat_has_manifestations", ["manifestation_checkout_stat_id"], :name => "index_checkout_stat_has_manifestations_on_checkout_stat_id"
|
130
|
+
add_index "checkout_stat_has_manifestations", ["manifestation_id"], :name => "index_checkout_stat_has_manifestations_on_manifestation_id"
|
131
|
+
|
132
|
+
create_table "checkout_stat_has_users", :force => true do |t|
|
133
|
+
t.integer "user_checkout_stat_id", :null => false
|
134
|
+
t.integer "user_id", :null => false
|
135
|
+
t.integer "checkouts_count", :default => 0, :null => false
|
136
|
+
t.datetime "created_at", :null => false
|
137
|
+
t.datetime "updated_at", :null => false
|
138
|
+
end
|
139
|
+
|
140
|
+
add_index "checkout_stat_has_users", ["user_checkout_stat_id"], :name => "index_checkout_stat_has_users_on_user_checkout_stat_id"
|
141
|
+
add_index "checkout_stat_has_users", ["user_id"], :name => "index_checkout_stat_has_users_on_user_id"
|
142
|
+
|
64
143
|
create_table "checkout_types", :force => true do |t|
|
65
144
|
t.string "name", :null => false
|
66
145
|
t.text "display_name"
|
67
146
|
t.text "note"
|
68
147
|
t.integer "position"
|
69
|
-
t.datetime "created_at"
|
70
|
-
t.datetime "updated_at"
|
148
|
+
t.datetime "created_at"
|
149
|
+
t.datetime "updated_at"
|
71
150
|
end
|
72
151
|
|
73
152
|
add_index "checkout_types", ["name"], :name => "index_checkout_types_on_name"
|
74
153
|
|
154
|
+
create_table "checkouts", :force => true do |t|
|
155
|
+
t.integer "user_id"
|
156
|
+
t.integer "item_id", :null => false
|
157
|
+
t.integer "checkin_id"
|
158
|
+
t.integer "librarian_id"
|
159
|
+
t.integer "basket_id"
|
160
|
+
t.datetime "due_date"
|
161
|
+
t.integer "checkout_renewal_count", :default => 0, :null => false
|
162
|
+
t.integer "lock_version", :default => 0, :null => false
|
163
|
+
t.datetime "created_at", :null => false
|
164
|
+
t.datetime "updated_at", :null => false
|
165
|
+
end
|
166
|
+
|
167
|
+
add_index "checkouts", ["basket_id"], :name => "index_checkouts_on_basket_id"
|
168
|
+
add_index "checkouts", ["checkin_id"], :name => "index_checkouts_on_checkin_id"
|
169
|
+
add_index "checkouts", ["item_id", "basket_id"], :name => "index_checkouts_on_item_id_and_basket_id", :unique => true
|
170
|
+
add_index "checkouts", ["item_id"], :name => "index_checkouts_on_item_id"
|
171
|
+
add_index "checkouts", ["librarian_id"], :name => "index_checkouts_on_librarian_id"
|
172
|
+
add_index "checkouts", ["user_id"], :name => "index_checkouts_on_user_id"
|
173
|
+
|
75
174
|
create_table "circulation_statuses", :force => true do |t|
|
76
175
|
t.string "name", :null => false
|
77
176
|
t.text "display_name"
|
78
177
|
t.text "note"
|
79
178
|
t.integer "position"
|
80
|
-
t.datetime "created_at"
|
81
|
-
t.datetime "updated_at"
|
179
|
+
t.datetime "created_at"
|
180
|
+
t.datetime "updated_at"
|
82
181
|
end
|
83
182
|
|
84
183
|
create_table "content_types", :force => true do |t|
|
@@ -86,8 +185,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
86
185
|
t.text "display_name"
|
87
186
|
t.text "note"
|
88
187
|
t.integer "position"
|
89
|
-
t.datetime "created_at"
|
90
|
-
t.datetime "updated_at"
|
188
|
+
t.datetime "created_at"
|
189
|
+
t.datetime "updated_at"
|
91
190
|
end
|
92
191
|
|
93
192
|
create_table "exemplifies", :force => true do |t|
|
@@ -95,8 +194,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
95
194
|
t.integer "item_id", :null => false
|
96
195
|
t.string "type"
|
97
196
|
t.integer "position"
|
98
|
-
t.datetime "created_at"
|
99
|
-
t.datetime "updated_at"
|
197
|
+
t.datetime "created_at"
|
198
|
+
t.datetime "updated_at"
|
100
199
|
end
|
101
200
|
|
102
201
|
add_index "exemplifies", ["item_id"], :name => "index_exemplifies_on_item_id", :unique => true
|
@@ -106,8 +205,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
106
205
|
create_table "item_has_use_restrictions", :force => true do |t|
|
107
206
|
t.integer "item_id", :null => false
|
108
207
|
t.integer "use_restriction_id", :null => false
|
109
|
-
t.datetime "created_at"
|
110
|
-
t.datetime "updated_at"
|
208
|
+
t.datetime "created_at"
|
209
|
+
t.datetime "updated_at"
|
111
210
|
end
|
112
211
|
|
113
212
|
add_index "item_has_use_restrictions", ["item_id"], :name => "index_item_has_use_restrictions_on_item_id"
|
@@ -118,8 +217,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
118
217
|
t.string "item_identifier"
|
119
218
|
t.integer "circulation_status_id", :default => 5, :null => false
|
120
219
|
t.integer "checkout_type_id", :default => 1, :null => false
|
121
|
-
t.datetime "created_at"
|
122
|
-
t.datetime "updated_at"
|
220
|
+
t.datetime "created_at"
|
221
|
+
t.datetime "updated_at"
|
123
222
|
t.datetime "deleted_at"
|
124
223
|
t.integer "shelf_id", :default => 1, :null => false
|
125
224
|
t.integer "basket_id"
|
@@ -158,6 +257,21 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
158
257
|
add_index "languages", ["iso_639_3"], :name => "index_languages_on_iso_639_3"
|
159
258
|
add_index "languages", ["name"], :name => "index_languages_on_name", :unique => true
|
160
259
|
|
260
|
+
create_table "lending_policies", :force => true do |t|
|
261
|
+
t.integer "item_id", :null => false
|
262
|
+
t.integer "user_group_id", :null => false
|
263
|
+
t.integer "loan_period", :default => 0, :null => false
|
264
|
+
t.datetime "fixed_due_date"
|
265
|
+
t.integer "renewal", :default => 0, :null => false
|
266
|
+
t.decimal "fine", :default => 0.0, :null => false
|
267
|
+
t.text "note"
|
268
|
+
t.integer "position"
|
269
|
+
t.datetime "created_at", :null => false
|
270
|
+
t.datetime "updated_at", :null => false
|
271
|
+
end
|
272
|
+
|
273
|
+
add_index "lending_policies", ["item_id", "user_group_id"], :name => "index_lending_policies_on_item_id_and_user_group_id", :unique => true
|
274
|
+
|
161
275
|
create_table "libraries", :force => true do |t|
|
162
276
|
t.integer "patron_id"
|
163
277
|
t.string "patron_type"
|
@@ -178,8 +292,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
178
292
|
t.integer "users_count", :default => 0, :null => false
|
179
293
|
t.integer "position"
|
180
294
|
t.integer "country_id"
|
181
|
-
t.datetime "created_at"
|
182
|
-
t.datetime "updated_at"
|
295
|
+
t.datetime "created_at"
|
296
|
+
t.datetime "updated_at"
|
183
297
|
t.datetime "deleted_at"
|
184
298
|
end
|
185
299
|
|
@@ -195,11 +309,10 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
195
309
|
t.text "my_networks"
|
196
310
|
t.text "login_banner"
|
197
311
|
t.text "note"
|
198
|
-
t.integer "valid_period_for_new_user", :default => 365, :null => false
|
199
312
|
t.boolean "post_to_union_catalog", :default => false, :null => false
|
200
313
|
t.integer "country_id"
|
201
|
-
t.datetime "created_at"
|
202
|
-
t.datetime "updated_at"
|
314
|
+
t.datetime "created_at"
|
315
|
+
t.datetime "updated_at"
|
203
316
|
t.text "admin_networks"
|
204
317
|
t.boolean "allow_bookmark_external_url", :default => false, :null => false
|
205
318
|
t.integer "position"
|
@@ -208,6 +321,32 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
208
321
|
|
209
322
|
add_index "library_groups", ["short_name"], :name => "index_library_groups_on_short_name"
|
210
323
|
|
324
|
+
create_table "manifestation_checkout_stats", :force => true do |t|
|
325
|
+
t.datetime "start_date"
|
326
|
+
t.datetime "end_date"
|
327
|
+
t.text "note"
|
328
|
+
t.string "state"
|
329
|
+
t.datetime "created_at", :null => false
|
330
|
+
t.datetime "updated_at", :null => false
|
331
|
+
t.datetime "started_at"
|
332
|
+
t.datetime "completed_at"
|
333
|
+
end
|
334
|
+
|
335
|
+
add_index "manifestation_checkout_stats", ["state"], :name => "index_manifestation_checkout_stats_on_state"
|
336
|
+
|
337
|
+
create_table "manifestation_reserve_stats", :force => true do |t|
|
338
|
+
t.datetime "start_date"
|
339
|
+
t.datetime "end_date"
|
340
|
+
t.text "note"
|
341
|
+
t.string "state"
|
342
|
+
t.datetime "created_at", :null => false
|
343
|
+
t.datetime "updated_at", :null => false
|
344
|
+
t.datetime "started_at"
|
345
|
+
t.datetime "completed_at"
|
346
|
+
end
|
347
|
+
|
348
|
+
add_index "manifestation_reserve_stats", ["state"], :name => "index_manifestation_reserve_stats_on_state"
|
349
|
+
|
211
350
|
create_table "manifestations", :force => true do |t|
|
212
351
|
t.text "original_title", :null => false
|
213
352
|
t.text "title_alternative"
|
@@ -216,8 +355,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
216
355
|
t.string "manifestation_identifier"
|
217
356
|
t.datetime "date_of_publication"
|
218
357
|
t.datetime "copyright_date"
|
219
|
-
t.datetime "created_at"
|
220
|
-
t.datetime "updated_at"
|
358
|
+
t.datetime "created_at"
|
359
|
+
t.datetime "updated_at"
|
221
360
|
t.datetime "deleted_at"
|
222
361
|
t.string "access_address"
|
223
362
|
t.integer "language_id", :default => 1, :null => false
|
@@ -254,10 +393,10 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
254
393
|
t.integer "frequency_id", :default => 1, :null => false
|
255
394
|
t.boolean "subscription_master", :default => false, :null => false
|
256
395
|
t.string "pub_date"
|
257
|
-
t.string "edition_string"
|
258
396
|
t.integer "volume_number"
|
259
397
|
t.integer "issue_number"
|
260
398
|
t.integer "serial_number"
|
399
|
+
t.string "edition_string"
|
261
400
|
end
|
262
401
|
|
263
402
|
add_index "manifestations", ["access_address"], :name => "index_manifestations_on_access_address"
|
@@ -277,8 +416,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
277
416
|
t.text "display_name"
|
278
417
|
t.text "note"
|
279
418
|
t.integer "position"
|
280
|
-
t.datetime "created_at"
|
281
|
-
t.datetime "updated_at"
|
419
|
+
t.datetime "created_at"
|
420
|
+
t.datetime "updated_at"
|
282
421
|
end
|
283
422
|
|
284
423
|
create_table "patrons", :force => true do |t|
|
@@ -294,8 +433,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
294
433
|
t.string "full_name"
|
295
434
|
t.text "full_name_transcription"
|
296
435
|
t.text "full_name_alternative"
|
297
|
-
t.datetime "created_at"
|
298
|
-
t.datetime "updated_at"
|
436
|
+
t.datetime "created_at"
|
437
|
+
t.datetime "updated_at"
|
299
438
|
t.datetime "deleted_at"
|
300
439
|
t.string "zip_code_1"
|
301
440
|
t.string "zip_code_2"
|
@@ -337,21 +476,64 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
337
476
|
add_index "patrons", ["required_role_id"], :name => "index_patrons_on_required_role_id"
|
338
477
|
add_index "patrons", ["user_id"], :name => "index_patrons_on_user_id", :unique => true
|
339
478
|
|
479
|
+
create_table "reserve_stat_has_manifestations", :force => true do |t|
|
480
|
+
t.integer "manifestation_reserve_stat_id", :null => false
|
481
|
+
t.integer "manifestation_id", :null => false
|
482
|
+
t.integer "reserves_count"
|
483
|
+
t.datetime "created_at", :null => false
|
484
|
+
t.datetime "updated_at", :null => false
|
485
|
+
end
|
486
|
+
|
487
|
+
add_index "reserve_stat_has_manifestations", ["manifestation_id"], :name => "index_reserve_stat_has_manifestations_on_manifestation_id"
|
488
|
+
add_index "reserve_stat_has_manifestations", ["manifestation_reserve_stat_id"], :name => "index_reserve_stat_has_manifestations_on_m_reserve_stat_id"
|
489
|
+
|
490
|
+
create_table "reserve_stat_has_users", :force => true do |t|
|
491
|
+
t.integer "user_reserve_stat_id", :null => false
|
492
|
+
t.integer "user_id", :null => false
|
493
|
+
t.integer "reserves_count"
|
494
|
+
t.datetime "created_at", :null => false
|
495
|
+
t.datetime "updated_at", :null => false
|
496
|
+
end
|
497
|
+
|
498
|
+
add_index "reserve_stat_has_users", ["user_id"], :name => "index_reserve_stat_has_users_on_user_id"
|
499
|
+
add_index "reserve_stat_has_users", ["user_reserve_stat_id"], :name => "index_reserve_stat_has_users_on_user_reserve_stat_id"
|
500
|
+
|
501
|
+
create_table "reserves", :force => true do |t|
|
502
|
+
t.integer "user_id", :null => false
|
503
|
+
t.integer "manifestation_id", :null => false
|
504
|
+
t.integer "item_id"
|
505
|
+
t.integer "request_status_type_id", :null => false
|
506
|
+
t.datetime "checked_out_at"
|
507
|
+
t.datetime "created_at", :null => false
|
508
|
+
t.datetime "updated_at", :null => false
|
509
|
+
t.datetime "canceled_at"
|
510
|
+
t.datetime "expired_at"
|
511
|
+
t.datetime "deleted_at"
|
512
|
+
t.string "state"
|
513
|
+
t.boolean "expiration_notice_to_patron", :default => false
|
514
|
+
t.boolean "expiration_notice_to_library", :default => false
|
515
|
+
end
|
516
|
+
|
517
|
+
add_index "reserves", ["item_id"], :name => "index_reserves_on_item_id"
|
518
|
+
add_index "reserves", ["manifestation_id"], :name => "index_reserves_on_manifestation_id"
|
519
|
+
add_index "reserves", ["request_status_type_id"], :name => "index_reserves_on_request_status_type_id"
|
520
|
+
add_index "reserves", ["user_id"], :name => "index_reserves_on_user_id"
|
521
|
+
|
340
522
|
create_table "roles", :force => true do |t|
|
341
523
|
t.string "name"
|
342
524
|
t.text "display_name"
|
343
525
|
t.text "note"
|
344
526
|
t.integer "position"
|
345
|
-
t.datetime "created_at"
|
346
|
-
t.datetime "updated_at"
|
527
|
+
t.datetime "created_at"
|
528
|
+
t.datetime "updated_at"
|
347
529
|
end
|
348
530
|
|
349
531
|
create_table "series_has_manifestations", :force => true do |t|
|
350
532
|
t.integer "series_statement_id"
|
351
533
|
t.integer "manifestation_id"
|
352
534
|
t.integer "position"
|
353
|
-
t.datetime "created_at"
|
354
|
-
t.datetime "updated_at"
|
535
|
+
t.datetime "created_at"
|
536
|
+
t.datetime "updated_at"
|
355
537
|
end
|
356
538
|
|
357
539
|
add_index "series_has_manifestations", ["manifestation_id"], :name => "index_series_has_manifestations_on_manifestation_id"
|
@@ -365,8 +547,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
365
547
|
t.integer "position"
|
366
548
|
t.text "title_transcription"
|
367
549
|
t.text "title_alternative"
|
368
|
-
t.datetime "created_at"
|
369
|
-
t.datetime "updated_at"
|
550
|
+
t.datetime "created_at"
|
551
|
+
t.datetime "updated_at"
|
370
552
|
t.string "series_statement_identifier"
|
371
553
|
t.string "issn"
|
372
554
|
t.boolean "periodical"
|
@@ -384,8 +566,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
384
566
|
t.integer "library_id", :default => 1, :null => false
|
385
567
|
t.integer "items_count", :default => 0, :null => false
|
386
568
|
t.integer "position"
|
387
|
-
t.datetime "created_at"
|
388
|
-
t.datetime "updated_at"
|
569
|
+
t.datetime "created_at"
|
570
|
+
t.datetime "updated_at"
|
389
571
|
t.datetime "deleted_at"
|
390
572
|
end
|
391
573
|
|
@@ -407,8 +589,8 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
407
589
|
create_table "tags", :force => true do |t|
|
408
590
|
t.string "name"
|
409
591
|
t.string "name_transcription"
|
410
|
-
t.datetime "created_at"
|
411
|
-
t.datetime "updated_at"
|
592
|
+
t.datetime "created_at"
|
593
|
+
t.datetime "updated_at"
|
412
594
|
end
|
413
595
|
|
414
596
|
create_table "use_restrictions", :force => true do |t|
|
@@ -416,57 +598,101 @@ ActiveRecord::Schema.define(:version => 20111231145823) do
|
|
416
598
|
t.text "display_name"
|
417
599
|
t.text "note"
|
418
600
|
t.integer "position"
|
601
|
+
t.datetime "created_at"
|
602
|
+
t.datetime "updated_at"
|
603
|
+
end
|
604
|
+
|
605
|
+
create_table "user_checkout_stats", :force => true do |t|
|
606
|
+
t.datetime "start_date"
|
607
|
+
t.datetime "end_date"
|
608
|
+
t.text "note"
|
609
|
+
t.string "state"
|
419
610
|
t.datetime "created_at", :null => false
|
420
611
|
t.datetime "updated_at", :null => false
|
612
|
+
t.datetime "started_at"
|
613
|
+
t.datetime "completed_at"
|
421
614
|
end
|
422
615
|
|
616
|
+
add_index "user_checkout_stats", ["state"], :name => "index_user_checkout_stats_on_state"
|
617
|
+
|
618
|
+
create_table "user_group_has_checkout_types", :force => true do |t|
|
619
|
+
t.integer "user_group_id", :null => false
|
620
|
+
t.integer "checkout_type_id", :null => false
|
621
|
+
t.integer "checkout_limit", :default => 0, :null => false
|
622
|
+
t.integer "checkout_period", :default => 0, :null => false
|
623
|
+
t.integer "checkout_renewal_limit", :default => 0, :null => false
|
624
|
+
t.integer "reservation_limit", :default => 0, :null => false
|
625
|
+
t.integer "reservation_expired_period", :default => 7, :null => false
|
626
|
+
t.boolean "set_due_date_before_closing_day", :default => false, :null => false
|
627
|
+
t.datetime "fixed_due_date"
|
628
|
+
t.text "note"
|
629
|
+
t.integer "position"
|
630
|
+
t.datetime "created_at", :null => false
|
631
|
+
t.datetime "updated_at", :null => false
|
632
|
+
t.integer "current_checkout_count"
|
633
|
+
end
|
634
|
+
|
635
|
+
add_index "user_group_has_checkout_types", ["checkout_type_id"], :name => "index_user_group_has_checkout_types_on_checkout_type_id"
|
636
|
+
add_index "user_group_has_checkout_types", ["user_group_id"], :name => "index_user_group_has_checkout_types_on_user_group_id"
|
637
|
+
|
423
638
|
create_table "user_groups", :force => true do |t|
|
424
639
|
t.string "name"
|
425
640
|
t.text "display_name"
|
426
641
|
t.text "note"
|
427
642
|
t.integer "position"
|
428
|
-
t.datetime "created_at"
|
429
|
-
t.datetime "updated_at"
|
643
|
+
t.datetime "created_at"
|
644
|
+
t.datetime "updated_at"
|
645
|
+
t.integer "valid_period_for_new_user", :default => 0, :null => false
|
646
|
+
t.datetime "expired_at"
|
647
|
+
t.integer "number_of_day_to_notify_overdue", :default => 1, :null => false
|
648
|
+
t.integer "number_of_day_to_notify_due_date", :default => 7, :null => false
|
649
|
+
t.integer "number_of_time_to_notify_overdue", :default => 3, :null => false
|
430
650
|
end
|
431
651
|
|
432
652
|
create_table "user_has_roles", :force => true do |t|
|
433
653
|
t.integer "user_id"
|
434
654
|
t.integer "role_id"
|
435
|
-
t.datetime "created_at"
|
436
|
-
t.datetime "updated_at"
|
655
|
+
t.datetime "created_at"
|
656
|
+
t.datetime "updated_at"
|
437
657
|
end
|
438
658
|
|
659
|
+
create_table "user_reserve_stats", :force => true do |t|
|
660
|
+
t.datetime "start_date"
|
661
|
+
t.datetime "end_date"
|
662
|
+
t.text "note"
|
663
|
+
t.string "state"
|
664
|
+
t.datetime "created_at", :null => false
|
665
|
+
t.datetime "updated_at", :null => false
|
666
|
+
t.datetime "started_at"
|
667
|
+
t.datetime "completed_at"
|
668
|
+
end
|
669
|
+
|
670
|
+
add_index "user_reserve_stats", ["state"], :name => "index_user_reserve_stats_on_state"
|
671
|
+
|
439
672
|
create_table "users", :force => true do |t|
|
440
673
|
t.integer "user_group_id"
|
441
674
|
t.integer "required_role_id"
|
442
675
|
t.string "username"
|
443
676
|
t.text "note"
|
444
677
|
t.string "locale"
|
445
|
-
t.datetime "created_at"
|
446
|
-
t.datetime "updated_at"
|
447
|
-
t.string "email",
|
448
|
-
t.string "encrypted_password",
|
678
|
+
t.datetime "created_at"
|
679
|
+
t.datetime "updated_at"
|
680
|
+
t.string "email", :default => "", :null => false
|
681
|
+
t.string "encrypted_password", :limit => 128, :default => "", :null => false
|
449
682
|
t.string "reset_password_token"
|
450
683
|
t.datetime "reset_password_sent_at"
|
451
684
|
t.datetime "remember_created_at"
|
452
|
-
t.integer "sign_in_count",
|
685
|
+
t.integer "sign_in_count", :default => 0
|
453
686
|
t.datetime "current_sign_in_at"
|
454
687
|
t.datetime "last_sign_in_at"
|
455
688
|
t.string "current_sign_in_ip"
|
456
689
|
t.string "last_sign_in_ip"
|
457
|
-
t.string "password_salt"
|
458
|
-
t.string "confirmation_token"
|
459
|
-
t.datetime "confirmed_at"
|
460
|
-
t.datetime "confirmation_sent_at"
|
461
|
-
t.string "unconfirmed_email"
|
462
|
-
t.integer "failed_attempts", :default => 0
|
463
|
-
t.string "unlock_token"
|
464
|
-
t.datetime "locked_at"
|
465
|
-
t.string "authentication_token"
|
466
|
-
t.datetime "deleted_at"
|
467
690
|
t.boolean "share_bookmarks"
|
691
|
+
t.boolean "save_checkout_history", :default => false, :null => false
|
692
|
+
t.string "checkout_icalendar_token"
|
468
693
|
end
|
469
694
|
|
695
|
+
add_index "users", ["checkout_icalendar_token"], :name => "index_users_on_checkout_icalendar_token", :unique => true
|
470
696
|
add_index "users", ["email"], :name => "index_users_on_email"
|
471
697
|
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
472
698
|
|