enju_subject 0.3.4 → 0.4.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -3
  3. data/app/controllers/classifications_controller.rb +1 -0
  4. data/app/controllers/subjects_controller.rb +2 -1
  5. data/app/views/classification_types/index.html.erb +1 -1
  6. data/app/views/classification_types/show.html.erb +1 -1
  7. data/app/views/classifications/index.html.erb +1 -1
  8. data/app/views/classifications/show.html.erb +1 -1
  9. data/app/views/manifestations/_classification_detail.html.erb +1 -1
  10. data/app/views/manifestations/_classification_fields.html.erb +1 -1
  11. data/app/views/manifestations/_subject_detail.html.erb +1 -1
  12. data/app/views/manifestations/_subject_facet.html.erb +1 -1
  13. data/app/views/manifestations/_subject_fields.html.erb +2 -2
  14. data/app/views/subject_heading_types/index.html.erb +1 -1
  15. data/app/views/subject_heading_types/show.html.erb +1 -1
  16. data/app/views/subject_types/index.html.erb +1 -1
  17. data/app/views/subject_types/show.html.erb +2 -2
  18. data/app/views/subjects/_form.html.erb +2 -2
  19. data/app/views/subjects/index.atom.builder +1 -1
  20. data/app/views/subjects/index.rss.builder +1 -1
  21. data/app/views/subjects/show.html.erb +2 -2
  22. data/lib/enju_subject/version.rb +1 -1
  23. data/lib/generators/enju_subject/setup/templates/db/fixtures/classification_types.yml +20 -8
  24. data/lib/generators/enju_subject/setup/templates/db/fixtures/subject_heading_types.yml +0 -20
  25. data/lib/generators/enju_subject/setup/templates/db/fixtures/subject_types.yml +13 -0
  26. data/spec/dummy/app/models/user.rb +1 -1
  27. data/spec/dummy/bin/bundle +1 -1
  28. data/spec/dummy/bin/setup +1 -3
  29. data/spec/dummy/bin/update +4 -2
  30. data/spec/dummy/bin/yarn +3 -3
  31. data/spec/dummy/config/database.yml +70 -9
  32. data/spec/dummy/config/initializers/assets.rb +1 -1
  33. data/spec/dummy/db/development.sqlite3 +0 -0
  34. data/spec/dummy/db/migrate/20081027150907_create_picture_files.rb +2 -0
  35. data/spec/dummy/db/migrate/20190630113817_add_display_name_translations_to_library_group.rb +12 -0
  36. data/spec/dummy/db/migrate/20190630115523_add_login_banner_translations_to_library_group.rb +6 -0
  37. data/spec/dummy/db/migrate/20190630151446_add_display_name_translations_to_role.rb +5 -0
  38. data/spec/dummy/db/migrate/20190712163038_add_display_name_translations_to_carrier_type.rb +21 -0
  39. data/spec/dummy/db/migrate/20190713114940_add_profile_id_to_user.rb +5 -0
  40. data/spec/dummy/db/migrate/20190713115451_add_full_name_translations_to_profile.rb +5 -0
  41. data/spec/dummy/db/schema.rb +125 -149
  42. data/spec/dummy/db/test.sqlite3 +0 -0
  43. data/spec/factories/profile.rb +7 -1
  44. data/spec/factories/user.rb +25 -31
  45. data/spec/fixtures/agent_types.yml +11 -11
  46. data/spec/fixtures/carrier_types.yml +28 -24
  47. data/spec/fixtures/libraries.yml +102 -0
  48. data/spec/fixtures/library_groups.yml +12 -6
  49. data/spec/fixtures/profiles.yml +10 -13
  50. data/spec/fixtures/roles.yml +22 -5
  51. data/spec/fixtures/shelves.yml +47 -0
  52. data/spec/fixtures/subject_types.yml +4 -4
  53. data/spec/fixtures/user_groups.yml +26 -6
  54. data/spec/fixtures/users.yml +8 -1
  55. data/spec/rails_helper.rb +5 -1
  56. metadata +250 -330
  57. data/spec/dummy/db/migrate/20190818075603_add_memo_to_manifestation.rb +0 -5
  58. data/spec/dummy/db/migrate/20190818075628_add_memo_to_item.rb +0 -5
  59. data/spec/dummy/db/migrate/20191219122214_create_custom_properties.rb +0 -12
  60. data/spec/dummy/db/migrate/20200425072340_create_manifestation_custom_properties.rb +0 -12
  61. data/spec/dummy/db/migrate/20200425072349_create_item_custom_properties.rb +0 -12
  62. data/spec/dummy/db/migrate/20200425074758_create_manifestation_custom_values.rb +0 -12
  63. data/spec/dummy/db/migrate/20200425074822_create_item_custom_values.rb +0 -12
  64. data/spec/lib/generators/enju_subject/setup/setup_generator_spec.rb +0 -33
@@ -10,9 +10,13 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2020_04_25_074822) do
13
+ ActiveRecord::Schema.define(version: 2019_07_13_115451) do
14
14
 
15
- create_table "accepts", force: :cascade do |t|
15
+ # These are extensions that must be enabled in order to support this database
16
+ enable_extension "pgcrypto"
17
+ enable_extension "plpgsql"
18
+
19
+ create_table "accepts", id: :serial, force: :cascade do |t|
16
20
  t.integer "basket_id"
17
21
  t.integer "item_id"
18
22
  t.integer "librarian_id"
@@ -23,7 +27,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
23
27
  t.index ["librarian_id"], name: "index_accepts_on_librarian_id"
24
28
  end
25
29
 
26
- create_table "agent_import_file_transitions", force: :cascade do |t|
30
+ create_table "agent_import_file_transitions", id: :serial, force: :cascade do |t|
27
31
  t.string "to_state"
28
32
  t.text "metadata", default: "{}"
29
33
  t.integer "sort_key"
@@ -36,7 +40,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
36
40
  t.index ["sort_key", "agent_import_file_id"], name: "index_agent_import_file_transitions_on_sort_key_and_file_id", unique: true
37
41
  end
38
42
 
39
- create_table "agent_import_files", force: :cascade do |t|
43
+ create_table "agent_import_files", id: :serial, force: :cascade do |t|
40
44
  t.integer "parent_id"
41
45
  t.string "content_type"
42
46
  t.integer "size"
@@ -57,7 +61,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
57
61
  t.index ["user_id"], name: "index_agent_import_files_on_user_id"
58
62
  end
59
63
 
60
- create_table "agent_import_results", force: :cascade do |t|
64
+ create_table "agent_import_results", id: :serial, force: :cascade do |t|
61
65
  t.integer "agent_import_file_id"
62
66
  t.integer "agent_id"
63
67
  t.text "body"
@@ -65,13 +69,13 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
65
69
  t.datetime "updated_at"
66
70
  end
67
71
 
68
- create_table "agent_merge_lists", force: :cascade do |t|
72
+ create_table "agent_merge_lists", id: :serial, force: :cascade do |t|
69
73
  t.string "title"
70
74
  t.datetime "created_at"
71
75
  t.datetime "updated_at"
72
76
  end
73
77
 
74
- create_table "agent_merges", force: :cascade do |t|
78
+ create_table "agent_merges", id: :serial, force: :cascade do |t|
75
79
  t.integer "agent_id", null: false
76
80
  t.integer "agent_merge_list_id", null: false
77
81
  t.datetime "created_at"
@@ -80,16 +84,17 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
80
84
  t.index ["agent_merge_list_id"], name: "index_agent_merges_on_agent_merge_list_id"
81
85
  end
82
86
 
83
- create_table "agent_relationship_types", force: :cascade do |t|
87
+ create_table "agent_relationship_types", id: :serial, force: :cascade do |t|
84
88
  t.string "name", null: false
85
89
  t.text "display_name"
86
90
  t.text "note"
87
91
  t.integer "position"
88
92
  t.datetime "created_at"
89
93
  t.datetime "updated_at"
94
+ t.jsonb "display_name_translations", default: {}, null: false
90
95
  end
91
96
 
92
- create_table "agent_relationships", force: :cascade do |t|
97
+ create_table "agent_relationships", id: :serial, force: :cascade do |t|
93
98
  t.integer "parent_id"
94
99
  t.integer "child_id"
95
100
  t.integer "agent_relationship_type_id"
@@ -100,16 +105,17 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
100
105
  t.index ["parent_id"], name: "index_agent_relationships_on_parent_id"
101
106
  end
102
107
 
103
- create_table "agent_types", force: :cascade do |t|
108
+ create_table "agent_types", id: :serial, force: :cascade do |t|
104
109
  t.string "name", null: false
105
110
  t.text "display_name"
106
111
  t.text "note"
107
112
  t.integer "position"
108
113
  t.datetime "created_at"
109
114
  t.datetime "updated_at"
115
+ t.jsonb "display_name_translations", default: {}, null: false
110
116
  end
111
117
 
112
- create_table "agents", force: :cascade do |t|
118
+ create_table "agents", id: :serial, force: :cascade do |t|
113
119
  t.string "last_name"
114
120
  t.string "middle_name"
115
121
  t.string "first_name"
@@ -164,7 +170,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
164
170
  t.index ["required_role_id"], name: "index_agents_on_required_role_id"
165
171
  end
166
172
 
167
- create_table "baskets", force: :cascade do |t|
173
+ create_table "baskets", id: :serial, force: :cascade do |t|
168
174
  t.integer "user_id"
169
175
  t.text "note"
170
176
  t.integer "lock_version", default: 0, null: false
@@ -173,7 +179,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
173
179
  t.index ["user_id"], name: "index_baskets_on_user_id"
174
180
  end
175
181
 
176
- create_table "bookstores", force: :cascade do |t|
182
+ create_table "bookstores", id: :serial, force: :cascade do |t|
177
183
  t.text "name", null: false
178
184
  t.string "zip_code"
179
185
  t.text "address"
@@ -187,16 +193,17 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
187
193
  t.datetime "updated_at"
188
194
  end
189
195
 
190
- create_table "budget_types", force: :cascade do |t|
196
+ create_table "budget_types", id: :serial, force: :cascade do |t|
191
197
  t.string "name"
192
198
  t.text "display_name"
193
199
  t.text "note"
194
200
  t.integer "position"
195
201
  t.datetime "created_at"
196
202
  t.datetime "updated_at"
203
+ t.jsonb "display_name_translations", default: {}, null: false
197
204
  end
198
205
 
199
- create_table "carrier_types", force: :cascade do |t|
206
+ create_table "carrier_types", id: :serial, force: :cascade do |t|
200
207
  t.string "name", null: false
201
208
  t.text "display_name"
202
209
  t.text "note"
@@ -205,11 +212,12 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
205
212
  t.datetime "updated_at"
206
213
  t.string "attachment_file_name"
207
214
  t.string "attachment_content_type"
208
- t.integer "attachment_file_size"
215
+ t.bigint "attachment_file_size"
209
216
  t.datetime "attachment_updated_at"
217
+ t.jsonb "display_name_translations", default: {}, null: false
210
218
  end
211
219
 
212
- create_table "classification_types", force: :cascade do |t|
220
+ create_table "classification_types", id: :serial, force: :cascade do |t|
213
221
  t.string "name", null: false
214
222
  t.text "display_name"
215
223
  t.text "note"
@@ -218,7 +226,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
218
226
  t.datetime "updated_at"
219
227
  end
220
228
 
221
- create_table "classifications", force: :cascade do |t|
229
+ create_table "classifications", id: :serial, force: :cascade do |t|
222
230
  t.integer "parent_id"
223
231
  t.string "category", null: false
224
232
  t.text "note"
@@ -236,7 +244,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
236
244
  t.index ["parent_id"], name: "index_classifications_on_parent_id"
237
245
  end
238
246
 
239
- create_table "colors", force: :cascade do |t|
247
+ create_table "colors", id: :serial, force: :cascade do |t|
240
248
  t.integer "library_group_id"
241
249
  t.string "property"
242
250
  t.string "code"
@@ -246,16 +254,17 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
246
254
  t.index ["library_group_id"], name: "index_colors_on_library_group_id"
247
255
  end
248
256
 
249
- create_table "content_types", force: :cascade do |t|
257
+ create_table "content_types", id: :serial, force: :cascade do |t|
250
258
  t.string "name", null: false
251
259
  t.text "display_name"
252
260
  t.text "note"
253
261
  t.integer "position"
254
262
  t.datetime "created_at"
255
263
  t.datetime "updated_at"
264
+ t.jsonb "display_name_translations", default: {}, null: false
256
265
  end
257
266
 
258
- create_table "countries", force: :cascade do |t|
267
+ create_table "countries", id: :serial, force: :cascade do |t|
259
268
  t.string "name", null: false
260
269
  t.text "display_name"
261
270
  t.string "alpha_2"
@@ -269,16 +278,17 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
269
278
  t.index ["numeric_3"], name: "index_countries_on_numeric_3"
270
279
  end
271
280
 
272
- create_table "create_types", force: :cascade do |t|
281
+ create_table "create_types", id: :serial, force: :cascade do |t|
273
282
  t.string "name"
274
283
  t.text "display_name"
275
284
  t.text "note"
276
285
  t.integer "position"
277
286
  t.datetime "created_at"
278
287
  t.datetime "updated_at"
288
+ t.jsonb "display_name_translations", default: {}, null: false
279
289
  end
280
290
 
281
- create_table "creates", force: :cascade do |t|
291
+ create_table "creates", id: :serial, force: :cascade do |t|
282
292
  t.integer "agent_id", null: false
283
293
  t.integer "work_id", null: false
284
294
  t.integer "position"
@@ -289,16 +299,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
289
299
  t.index ["work_id"], name: "index_creates_on_work_id"
290
300
  end
291
301
 
292
- create_table "custom_properties", force: :cascade do |t|
293
- t.integer "resource_id", null: false
294
- t.string "resource_type", null: false
295
- t.text "label", null: false
296
- t.text "value"
297
- t.datetime "created_at", null: false
298
- t.datetime "updated_at", null: false
299
- end
300
-
301
- create_table "donates", force: :cascade do |t|
302
+ create_table "donates", id: :serial, force: :cascade do |t|
302
303
  t.integer "agent_id", null: false
303
304
  t.integer "item_id", null: false
304
305
  t.datetime "created_at"
@@ -307,7 +308,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
307
308
  t.index ["item_id"], name: "index_donates_on_item_id"
308
309
  end
309
310
 
310
- create_table "exemplifies", force: :cascade do |t|
311
+ create_table "exemplifies", id: :serial, force: :cascade do |t|
311
312
  t.integer "manifestation_id", null: false
312
313
  t.integer "item_id", null: false
313
314
  t.integer "position"
@@ -317,7 +318,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
317
318
  t.index ["manifestation_id"], name: "index_exemplifies_on_manifestation_id"
318
319
  end
319
320
 
320
- create_table "extents", force: :cascade do |t|
321
+ create_table "extents", id: :serial, force: :cascade do |t|
321
322
  t.string "name", null: false
322
323
  t.text "display_name"
323
324
  t.text "note"
@@ -326,25 +327,27 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
326
327
  t.datetime "updated_at"
327
328
  end
328
329
 
329
- create_table "form_of_works", force: :cascade do |t|
330
+ create_table "form_of_works", id: :serial, force: :cascade do |t|
330
331
  t.string "name", null: false
331
332
  t.text "display_name"
332
333
  t.text "note"
333
334
  t.integer "position"
334
335
  t.datetime "created_at"
335
336
  t.datetime "updated_at"
337
+ t.jsonb "display_name_translations", default: {}, null: false
336
338
  end
337
339
 
338
- create_table "frequencies", force: :cascade do |t|
340
+ create_table "frequencies", id: :serial, force: :cascade do |t|
339
341
  t.string "name", null: false
340
342
  t.text "display_name"
341
343
  t.text "note"
342
344
  t.integer "position"
343
345
  t.datetime "created_at"
344
346
  t.datetime "updated_at"
347
+ t.jsonb "display_name_translations", default: {}, null: false
345
348
  end
346
349
 
347
- create_table "identifier_types", force: :cascade do |t|
350
+ create_table "identifier_types", id: :serial, force: :cascade do |t|
348
351
  t.string "name"
349
352
  t.text "display_name"
350
353
  t.text "note"
@@ -353,7 +356,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
353
356
  t.datetime "updated_at"
354
357
  end
355
358
 
356
- create_table "identifiers", force: :cascade do |t|
359
+ create_table "identifiers", id: :serial, force: :cascade do |t|
357
360
  t.string "body", null: false
358
361
  t.integer "identifier_type_id", null: false
359
362
  t.integer "manifestation_id"
@@ -365,7 +368,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
365
368
  t.index ["manifestation_id"], name: "index_identifiers_on_manifestation_id"
366
369
  end
367
370
 
368
- create_table "identities", force: :cascade do |t|
371
+ create_table "identities", id: :serial, force: :cascade do |t|
369
372
  t.string "name"
370
373
  t.string "email"
371
374
  t.string "password_digest"
@@ -378,7 +381,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
378
381
  t.index ["profile_id"], name: "index_identities_on_profile_id"
379
382
  end
380
383
 
381
- create_table "import_request_transitions", force: :cascade do |t|
384
+ create_table "import_request_transitions", id: :serial, force: :cascade do |t|
382
385
  t.string "to_state"
383
386
  t.text "metadata", default: "{}"
384
387
  t.integer "sort_key"
@@ -391,7 +394,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
391
394
  t.index ["sort_key", "import_request_id"], name: "index_import_request_transitions_on_sort_key_and_request_id", unique: true
392
395
  end
393
396
 
394
- create_table "import_requests", force: :cascade do |t|
397
+ create_table "import_requests", id: :serial, force: :cascade do |t|
395
398
  t.string "isbn"
396
399
  t.integer "manifestation_id"
397
400
  t.integer "user_id"
@@ -402,28 +405,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
402
405
  t.index ["user_id"], name: "index_import_requests_on_user_id"
403
406
  end
404
407
 
405
- create_table "item_custom_properties", force: :cascade do |t|
406
- t.string "name", null: false
407
- t.text "display_name", null: false
408
- t.text "note"
409
- t.integer "position", default: 1, null: false
410
- t.datetime "created_at", null: false
411
- t.datetime "updated_at", null: false
412
- t.index ["name"], name: "index_item_custom_properties_on_name", unique: true
413
- end
414
-
415
- create_table "item_custom_values", force: :cascade do |t|
416
- t.integer "item_custom_property_id", null: false
417
- t.integer "item_id", null: false
418
- t.text "value"
419
- t.datetime "created_at", null: false
420
- t.datetime "updated_at", null: false
421
- t.index ["item_custom_property_id", "item_id"], name: "index_item_custom_values_on_custom_item_property_and_item_id", unique: true
422
- t.index ["item_custom_property_id"], name: "index_item_custom_values_on_custom_property_id"
423
- t.index ["item_id"], name: "index_item_custom_values_on_item_id"
424
- end
425
-
426
- create_table "items", force: :cascade do |t|
408
+ create_table "items", id: :serial, force: :cascade do |t|
427
409
  t.string "call_number"
428
410
  t.string "item_identifier"
429
411
  t.datetime "created_at"
@@ -444,7 +426,6 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
444
426
  t.string "binding_call_number"
445
427
  t.datetime "binded_at"
446
428
  t.integer "manifestation_id", null: false
447
- t.text "memo"
448
429
  t.index ["binding_item_identifier"], name: "index_items_on_binding_item_identifier"
449
430
  t.index ["bookstore_id"], name: "index_items_on_bookstore_id"
450
431
  t.index ["item_identifier"], name: "index_items_on_item_identifier"
@@ -453,7 +434,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
453
434
  t.index ["shelf_id"], name: "index_items_on_shelf_id"
454
435
  end
455
436
 
456
- create_table "languages", force: :cascade do |t|
437
+ create_table "languages", id: :serial, force: :cascade do |t|
457
438
  t.string "name", null: false
458
439
  t.string "native_name"
459
440
  t.text "display_name"
@@ -462,13 +443,14 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
462
443
  t.string "iso_639_3"
463
444
  t.text "note"
464
445
  t.integer "position"
446
+ t.jsonb "display_name_translations", default: {}, null: false
465
447
  t.index ["iso_639_1"], name: "index_languages_on_iso_639_1"
466
448
  t.index ["iso_639_2"], name: "index_languages_on_iso_639_2"
467
449
  t.index ["iso_639_3"], name: "index_languages_on_iso_639_3"
468
450
  t.index ["name"], name: "index_languages_on_name", unique: true
469
451
  end
470
452
 
471
- create_table "libraries", force: :cascade do |t|
453
+ create_table "libraries", id: :serial, force: :cascade do |t|
472
454
  t.string "name", null: false
473
455
  t.text "display_name"
474
456
  t.string "short_display_name", null: false
@@ -493,22 +475,12 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
493
475
  t.string "isil"
494
476
  t.float "latitude"
495
477
  t.float "longitude"
478
+ t.jsonb "display_name_translations", default: {}, null: false
496
479
  t.index ["library_group_id"], name: "index_libraries_on_library_group_id"
497
480
  t.index ["name"], name: "index_libraries_on_name"
498
481
  end
499
482
 
500
- create_table "library_group_translations", force: :cascade do |t|
501
- t.integer "library_group_id", null: false
502
- t.string "locale", null: false
503
- t.datetime "created_at", null: false
504
- t.datetime "updated_at", null: false
505
- t.text "login_banner"
506
- t.text "footer_banner"
507
- t.index ["library_group_id"], name: "index_library_group_translations_on_library_group_id"
508
- t.index ["locale"], name: "index_library_group_translations_on_locale"
509
- end
510
-
511
- create_table "library_groups", force: :cascade do |t|
483
+ create_table "library_groups", id: :serial, force: :cascade do |t|
512
484
  t.string "name", null: false
513
485
  t.text "display_name"
514
486
  t.string "short_name", null: false
@@ -530,53 +502,37 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
530
502
  t.boolean "csv_charset_conversion", default: false, null: false
531
503
  t.string "header_logo_file_name"
532
504
  t.string "header_logo_content_type"
533
- t.integer "header_logo_file_size"
505
+ t.bigint "header_logo_file_size"
534
506
  t.datetime "header_logo_updated_at"
535
507
  t.text "header_logo_meta"
508
+ t.jsonb "display_name_translations", default: {}, null: false
509
+ t.jsonb "login_banner_translations", default: {}, null: false
510
+ t.jsonb "footer_banner_translations", default: {}, null: false
536
511
  t.index ["short_name"], name: "index_library_groups_on_short_name"
537
512
  t.index ["user_id"], name: "index_library_groups_on_user_id"
538
513
  end
539
514
 
540
- create_table "licenses", force: :cascade do |t|
515
+ create_table "licenses", id: :serial, force: :cascade do |t|
541
516
  t.string "name", null: false
542
517
  t.string "display_name"
543
518
  t.text "note"
544
519
  t.integer "position"
545
520
  t.datetime "created_at"
546
521
  t.datetime "updated_at"
522
+ t.jsonb "display_name_translations", default: {}, null: false
547
523
  end
548
524
 
549
- create_table "manifestation_custom_properties", force: :cascade do |t|
550
- t.string "name", null: false
551
- t.text "display_name", null: false
552
- t.text "note"
553
- t.integer "position", default: 1, null: false
554
- t.datetime "created_at", null: false
555
- t.datetime "updated_at", null: false
556
- t.index ["name"], name: "index_manifestation_custom_properties_on_name", unique: true
557
- end
558
-
559
- create_table "manifestation_custom_values", force: :cascade do |t|
560
- t.integer "manifestation_custom_property_id", null: false
561
- t.integer "manifestation_id", null: false
562
- t.text "value"
563
- t.datetime "created_at", null: false
564
- t.datetime "updated_at", null: false
565
- t.index ["manifestation_custom_property_id", "manifestation_id"], name: "index_manifestation_custom_values_on_property_manifestation", unique: true
566
- t.index ["manifestation_custom_property_id"], name: "index_manifestation_custom_values_on_custom_property_id"
567
- t.index ["manifestation_id"], name: "index_manifestation_custom_values_on_manifestation_id"
568
- end
569
-
570
- create_table "manifestation_relationship_types", force: :cascade do |t|
525
+ create_table "manifestation_relationship_types", id: :serial, force: :cascade do |t|
571
526
  t.string "name", null: false
572
527
  t.text "display_name"
573
528
  t.text "note"
574
529
  t.integer "position"
575
530
  t.datetime "created_at"
576
531
  t.datetime "updated_at"
532
+ t.jsonb "display_name_translations", default: {}, null: false
577
533
  end
578
534
 
579
- create_table "manifestation_relationships", force: :cascade do |t|
535
+ create_table "manifestation_relationships", id: :serial, force: :cascade do |t|
580
536
  t.integer "parent_id"
581
537
  t.integer "child_id"
582
538
  t.integer "manifestation_relationship_type_id"
@@ -587,7 +543,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
587
543
  t.index ["parent_id"], name: "index_manifestation_relationships_on_parent_id"
588
544
  end
589
545
 
590
- create_table "manifestations", force: :cascade do |t|
546
+ create_table "manifestations", id: :serial, force: :cascade do |t|
591
547
  t.text "original_title", null: false
592
548
  t.text "title_alternative"
593
549
  t.text "title_transcription"
@@ -647,7 +603,6 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
647
603
  t.text "publication_place"
648
604
  t.text "extent"
649
605
  t.text "dimensions"
650
- t.text "memo"
651
606
  t.index ["access_address"], name: "index_manifestations_on_access_address"
652
607
  t.index ["date_of_publication"], name: "index_manifestations_on_date_of_publication"
653
608
  t.index ["doi"], name: "index_manifestations_on_doi"
@@ -655,16 +610,17 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
655
610
  t.index ["updated_at"], name: "index_manifestations_on_updated_at"
656
611
  end
657
612
 
658
- create_table "medium_of_performances", force: :cascade do |t|
613
+ create_table "medium_of_performances", id: :serial, force: :cascade do |t|
659
614
  t.string "name", null: false
660
615
  t.text "display_name"
661
616
  t.text "note"
662
617
  t.integer "position"
663
618
  t.datetime "created_at"
664
619
  t.datetime "updated_at"
620
+ t.jsonb "display_name_translations", default: {}, null: false
665
621
  end
666
622
 
667
- create_table "message_request_transitions", force: :cascade do |t|
623
+ create_table "message_request_transitions", id: :serial, force: :cascade do |t|
668
624
  t.string "to_state"
669
625
  t.text "metadata", default: "{}"
670
626
  t.integer "sort_key"
@@ -676,7 +632,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
676
632
  t.index ["sort_key", "message_request_id"], name: "index_message_request_transitions_on_sort_key_and_request_id", unique: true
677
633
  end
678
634
 
679
- create_table "message_requests", force: :cascade do |t|
635
+ create_table "message_requests", id: :serial, force: :cascade do |t|
680
636
  t.integer "sender_id"
681
637
  t.integer "receiver_id"
682
638
  t.integer "message_template_id"
@@ -687,7 +643,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
687
643
  t.datetime "updated_at"
688
644
  end
689
645
 
690
- create_table "message_templates", force: :cascade do |t|
646
+ create_table "message_templates", id: :serial, force: :cascade do |t|
691
647
  t.string "status", null: false
692
648
  t.text "title", null: false
693
649
  t.text "body", null: false
@@ -698,7 +654,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
698
654
  t.index ["status"], name: "index_message_templates_on_status", unique: true
699
655
  end
700
656
 
701
- create_table "message_transitions", force: :cascade do |t|
657
+ create_table "message_transitions", id: :serial, force: :cascade do |t|
702
658
  t.string "to_state"
703
659
  t.text "metadata", default: "{}"
704
660
  t.integer "sort_key"
@@ -710,7 +666,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
710
666
  t.index ["sort_key", "message_id"], name: "index_message_transitions_on_sort_key_and_message_id", unique: true
711
667
  end
712
668
 
713
- create_table "messages", force: :cascade do |t|
669
+ create_table "messages", id: :serial, force: :cascade do |t|
714
670
  t.datetime "read_at"
715
671
  t.integer "receiver_id"
716
672
  t.integer "sender_id"
@@ -729,7 +685,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
729
685
  t.index ["sender_id"], name: "index_messages_on_sender_id"
730
686
  end
731
687
 
732
- create_table "owns", force: :cascade do |t|
688
+ create_table "owns", id: :serial, force: :cascade do |t|
733
689
  t.integer "agent_id", null: false
734
690
  t.integer "item_id", null: false
735
691
  t.integer "position"
@@ -739,10 +695,12 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
739
695
  t.index ["item_id"], name: "index_owns_on_item_id"
740
696
  end
741
697
 
742
- create_table "picture_files", force: :cascade do |t|
698
+ create_table "picture_files", id: :serial, force: :cascade do |t|
743
699
  t.integer "picture_attachable_id"
744
700
  t.string "picture_attachable_type"
701
+ t.string "content_type"
745
702
  t.text "title"
703
+ t.string "thumbnail"
746
704
  t.integer "position"
747
705
  t.datetime "created_at"
748
706
  t.datetime "updated_at"
@@ -757,16 +715,17 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
757
715
  t.index ["picture_attachable_id", "picture_attachable_type"], name: "index_picture_files_on_picture_attachable_id_and_type"
758
716
  end
759
717
 
760
- create_table "produce_types", force: :cascade do |t|
718
+ create_table "produce_types", id: :serial, force: :cascade do |t|
761
719
  t.string "name"
762
720
  t.text "display_name"
763
721
  t.text "note"
764
722
  t.integer "position"
765
723
  t.datetime "created_at"
766
724
  t.datetime "updated_at"
725
+ t.jsonb "display_name_translations", default: {}, null: false
767
726
  end
768
727
 
769
- create_table "produces", force: :cascade do |t|
728
+ create_table "produces", id: :serial, force: :cascade do |t|
770
729
  t.integer "agent_id", null: false
771
730
  t.integer "manifestation_id", null: false
772
731
  t.integer "position"
@@ -777,7 +736,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
777
736
  t.index ["manifestation_id"], name: "index_produces_on_manifestation_id"
778
737
  end
779
738
 
780
- create_table "profiles", force: :cascade do |t|
739
+ create_table "profiles", id: :serial, force: :cascade do |t|
781
740
  t.integer "user_id"
782
741
  t.integer "user_group_id"
783
742
  t.integer "library_id"
@@ -792,22 +751,24 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
792
751
  t.datetime "expired_at"
793
752
  t.text "full_name_transcription"
794
753
  t.datetime "date_of_birth"
754
+ t.jsonb "full_name_translations", default: {}, null: false
795
755
  t.index ["library_id"], name: "index_profiles_on_library_id"
796
756
  t.index ["user_group_id"], name: "index_profiles_on_user_group_id"
797
757
  t.index ["user_id"], name: "index_profiles_on_user_id"
798
758
  t.index ["user_number"], name: "index_profiles_on_user_number", unique: true
799
759
  end
800
760
 
801
- create_table "realize_types", force: :cascade do |t|
761
+ create_table "realize_types", id: :serial, force: :cascade do |t|
802
762
  t.string "name"
803
763
  t.text "display_name"
804
764
  t.text "note"
805
765
  t.integer "position"
806
766
  t.datetime "created_at"
807
767
  t.datetime "updated_at"
768
+ t.jsonb "display_name_translations", default: {}, null: false
808
769
  end
809
770
 
810
- create_table "realizes", force: :cascade do |t|
771
+ create_table "realizes", id: :serial, force: :cascade do |t|
811
772
  t.integer "agent_id", null: false
812
773
  t.integer "expression_id", null: false
813
774
  t.integer "position"
@@ -818,25 +779,27 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
818
779
  t.index ["expression_id"], name: "index_realizes_on_expression_id"
819
780
  end
820
781
 
821
- create_table "request_status_types", force: :cascade do |t|
782
+ create_table "request_status_types", id: :serial, force: :cascade do |t|
822
783
  t.string "name", null: false
823
784
  t.text "display_name"
824
785
  t.text "note"
825
786
  t.integer "position"
826
787
  t.datetime "created_at"
827
788
  t.datetime "updated_at"
789
+ t.jsonb "display_name_translations", default: {}, null: false
828
790
  end
829
791
 
830
- create_table "request_types", force: :cascade do |t|
792
+ create_table "request_types", id: :serial, force: :cascade do |t|
831
793
  t.string "name", null: false
832
794
  t.text "display_name"
833
795
  t.text "note"
834
796
  t.integer "position"
835
797
  t.datetime "created_at"
836
798
  t.datetime "updated_at"
799
+ t.jsonb "display_name_translations", default: {}, null: false
837
800
  end
838
801
 
839
- create_table "resource_export_file_transitions", force: :cascade do |t|
802
+ create_table "resource_export_file_transitions", id: :serial, force: :cascade do |t|
840
803
  t.string "to_state"
841
804
  t.text "metadata", default: "{}"
842
805
  t.integer "sort_key"
@@ -849,18 +812,18 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
849
812
  t.index ["sort_key", "resource_export_file_id"], name: "index_resource_export_file_transitions_on_sort_key_and_file_id", unique: true
850
813
  end
851
814
 
852
- create_table "resource_export_files", force: :cascade do |t|
815
+ create_table "resource_export_files", id: :serial, force: :cascade do |t|
853
816
  t.integer "user_id"
854
817
  t.string "resource_export_file_name"
855
818
  t.string "resource_export_content_type"
856
- t.integer "resource_export_file_size"
819
+ t.bigint "resource_export_file_size"
857
820
  t.datetime "resource_export_updated_at"
858
821
  t.datetime "executed_at"
859
822
  t.datetime "created_at"
860
823
  t.datetime "updated_at"
861
824
  end
862
825
 
863
- create_table "resource_import_file_transitions", force: :cascade do |t|
826
+ create_table "resource_import_file_transitions", id: :serial, force: :cascade do |t|
864
827
  t.string "to_state"
865
828
  t.text "metadata", default: "{}"
866
829
  t.integer "sort_key"
@@ -873,7 +836,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
873
836
  t.index ["sort_key", "resource_import_file_id"], name: "index_resource_import_file_transitions_on_sort_key_and_file_id", unique: true
874
837
  end
875
838
 
876
- create_table "resource_import_files", force: :cascade do |t|
839
+ create_table "resource_import_files", id: :serial, force: :cascade do |t|
877
840
  t.integer "parent_id"
878
841
  t.string "content_type"
879
842
  t.integer "size"
@@ -895,7 +858,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
895
858
  t.index ["user_id"], name: "index_resource_import_files_on_user_id"
896
859
  end
897
860
 
898
- create_table "resource_import_results", force: :cascade do |t|
861
+ create_table "resource_import_results", id: :serial, force: :cascade do |t|
899
862
  t.integer "resource_import_file_id"
900
863
  t.integer "manifestation_id"
901
864
  t.integer "item_id"
@@ -908,7 +871,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
908
871
  t.index ["resource_import_file_id"], name: "index_resource_import_results_on_resource_import_file_id"
909
872
  end
910
873
 
911
- create_table "roles", force: :cascade do |t|
874
+ create_table "roles", id: :serial, force: :cascade do |t|
912
875
  t.string "name", null: false
913
876
  t.string "display_name"
914
877
  t.text "note"
@@ -916,9 +879,10 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
916
879
  t.datetime "updated_at"
917
880
  t.integer "score", default: 0, null: false
918
881
  t.integer "position"
882
+ t.jsonb "display_name_translations", default: {}, null: false
919
883
  end
920
884
 
921
- create_table "search_engines", force: :cascade do |t|
885
+ create_table "search_engines", id: :serial, force: :cascade do |t|
922
886
  t.string "name", null: false
923
887
  t.text "display_name"
924
888
  t.string "url", null: false
@@ -930,15 +894,16 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
930
894
  t.integer "position"
931
895
  t.datetime "created_at"
932
896
  t.datetime "updated_at"
897
+ t.jsonb "display_name_translations", default: {}, null: false
933
898
  end
934
899
 
935
- create_table "series_statement_merge_lists", force: :cascade do |t|
900
+ create_table "series_statement_merge_lists", id: :serial, force: :cascade do |t|
936
901
  t.string "title"
937
902
  t.datetime "created_at"
938
903
  t.datetime "updated_at"
939
904
  end
940
905
 
941
- create_table "series_statement_merges", force: :cascade do |t|
906
+ create_table "series_statement_merges", id: :serial, force: :cascade do |t|
942
907
  t.integer "series_statement_id", null: false
943
908
  t.integer "series_statement_merge_list_id", null: false
944
909
  t.datetime "created_at"
@@ -947,7 +912,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
947
912
  t.index ["series_statement_merge_list_id"], name: "index_series_statement_merges_on_list_id"
948
913
  end
949
914
 
950
- create_table "series_statements", force: :cascade do |t|
915
+ create_table "series_statements", id: :serial, force: :cascade do |t|
951
916
  t.text "original_title"
952
917
  t.text "numbering"
953
918
  t.text "title_subseries"
@@ -971,7 +936,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
971
936
  t.index ["series_statement_identifier"], name: "index_series_statements_on_series_statement_identifier"
972
937
  end
973
938
 
974
- create_table "shelves", force: :cascade do |t|
939
+ create_table "shelves", id: :serial, force: :cascade do |t|
975
940
  t.string "name", null: false
976
941
  t.text "display_name"
977
942
  t.text "note"
@@ -982,10 +947,11 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
982
947
  t.datetime "updated_at"
983
948
  t.datetime "deleted_at"
984
949
  t.boolean "closed", default: false, null: false
950
+ t.jsonb "display_name_translations", default: {}, null: false
985
951
  t.index ["library_id"], name: "index_shelves_on_library_id"
986
952
  end
987
953
 
988
- create_table "subject_heading_types", force: :cascade do |t|
954
+ create_table "subject_heading_types", id: :serial, force: :cascade do |t|
989
955
  t.string "name", null: false
990
956
  t.text "display_name"
991
957
  t.text "note"
@@ -994,7 +960,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
994
960
  t.datetime "updated_at"
995
961
  end
996
962
 
997
- create_table "subject_types", force: :cascade do |t|
963
+ create_table "subject_types", id: :serial, force: :cascade do |t|
998
964
  t.string "name", null: false
999
965
  t.text "display_name"
1000
966
  t.text "note"
@@ -1003,7 +969,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1003
969
  t.datetime "updated_at"
1004
970
  end
1005
971
 
1006
- create_table "subjects", force: :cascade do |t|
972
+ create_table "subjects", id: :serial, force: :cascade do |t|
1007
973
  t.integer "parent_id"
1008
974
  t.integer "use_term_id"
1009
975
  t.string "term"
@@ -1027,7 +993,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1027
993
  t.index ["use_term_id"], name: "index_subjects_on_use_term_id"
1028
994
  end
1029
995
 
1030
- create_table "subscribes", force: :cascade do |t|
996
+ create_table "subscribes", id: :serial, force: :cascade do |t|
1031
997
  t.integer "subscription_id", null: false
1032
998
  t.integer "work_id", null: false
1033
999
  t.datetime "start_at", null: false
@@ -1038,7 +1004,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1038
1004
  t.index ["work_id"], name: "index_subscribes_on_work_id"
1039
1005
  end
1040
1006
 
1041
- create_table "subscriptions", force: :cascade do |t|
1007
+ create_table "subscriptions", id: :serial, force: :cascade do |t|
1042
1008
  t.text "title", null: false
1043
1009
  t.text "note"
1044
1010
  t.integer "user_id"
@@ -1051,7 +1017,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1051
1017
  t.index ["user_id"], name: "index_subscriptions_on_user_id"
1052
1018
  end
1053
1019
 
1054
- create_table "user_export_file_transitions", force: :cascade do |t|
1020
+ create_table "user_export_file_transitions", id: :serial, force: :cascade do |t|
1055
1021
  t.string "to_state"
1056
1022
  t.text "metadata", default: "{}"
1057
1023
  t.integer "sort_key"
@@ -1065,11 +1031,11 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1065
1031
  t.index ["user_export_file_id"], name: "index_user_export_file_transitions_on_user_export_file_id"
1066
1032
  end
1067
1033
 
1068
- create_table "user_export_files", force: :cascade do |t|
1034
+ create_table "user_export_files", id: :serial, force: :cascade do |t|
1069
1035
  t.integer "user_id"
1070
1036
  t.string "user_export_file_name"
1071
1037
  t.string "user_export_content_type"
1072
- t.integer "user_export_file_size"
1038
+ t.bigint "user_export_file_size"
1073
1039
  t.datetime "user_export_updated_at"
1074
1040
  t.datetime "executed_at"
1075
1041
  t.datetime "created_at"
@@ -1077,7 +1043,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1077
1043
  t.index ["user_id"], name: "index_user_export_files_on_user_id"
1078
1044
  end
1079
1045
 
1080
- create_table "user_groups", force: :cascade do |t|
1046
+ create_table "user_groups", id: :serial, force: :cascade do |t|
1081
1047
  t.string "name"
1082
1048
  t.text "display_name"
1083
1049
  t.text "note"
@@ -1087,9 +1053,10 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1087
1053
  t.datetime "deleted_at"
1088
1054
  t.integer "valid_period_for_new_user", default: 0, null: false
1089
1055
  t.datetime "expired_at"
1056
+ t.jsonb "display_name_translations", default: {}, null: false
1090
1057
  end
1091
1058
 
1092
- create_table "user_has_roles", force: :cascade do |t|
1059
+ create_table "user_has_roles", id: :serial, force: :cascade do |t|
1093
1060
  t.integer "user_id", null: false
1094
1061
  t.integer "role_id", null: false
1095
1062
  t.datetime "created_at"
@@ -1098,7 +1065,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1098
1065
  t.index ["user_id"], name: "index_user_has_roles_on_user_id"
1099
1066
  end
1100
1067
 
1101
- create_table "user_import_file_transitions", force: :cascade do |t|
1068
+ create_table "user_import_file_transitions", id: :serial, force: :cascade do |t|
1102
1069
  t.string "to_state"
1103
1070
  t.text "metadata", default: "{}"
1104
1071
  t.integer "sort_key"
@@ -1111,7 +1078,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1111
1078
  t.index ["user_import_file_id"], name: "index_user_import_file_transitions_on_user_import_file_id"
1112
1079
  end
1113
1080
 
1114
- create_table "user_import_files", force: :cascade do |t|
1081
+ create_table "user_import_files", id: :serial, force: :cascade do |t|
1115
1082
  t.integer "user_id"
1116
1083
  t.text "note"
1117
1084
  t.datetime "executed_at"
@@ -1130,7 +1097,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1130
1097
  t.index ["user_id"], name: "index_user_import_files_on_user_id"
1131
1098
  end
1132
1099
 
1133
- create_table "user_import_results", force: :cascade do |t|
1100
+ create_table "user_import_results", id: :serial, force: :cascade do |t|
1134
1101
  t.integer "user_import_file_id"
1135
1102
  t.integer "user_id"
1136
1103
  t.text "body"
@@ -1141,7 +1108,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1141
1108
  t.index ["user_import_file_id"], name: "index_user_import_results_on_user_import_file_id"
1142
1109
  end
1143
1110
 
1144
- create_table "users", force: :cascade do |t|
1111
+ create_table "users", id: :serial, force: :cascade do |t|
1145
1112
  t.string "email", default: "", null: false
1146
1113
  t.string "encrypted_password", default: "", null: false
1147
1114
  t.string "reset_password_token"
@@ -1161,13 +1128,15 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1161
1128
  t.string "unlock_token"
1162
1129
  t.datetime "locked_at"
1163
1130
  t.datetime "confirmed_at"
1131
+ t.bigint "profile_id"
1164
1132
  t.index ["email"], name: "index_users_on_email"
1133
+ t.index ["profile_id"], name: "index_users_on_profile_id"
1165
1134
  t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
1166
1135
  t.index ["unlock_token"], name: "index_users_on_unlock_token", unique: true
1167
1136
  t.index ["username"], name: "index_users_on_username", unique: true
1168
1137
  end
1169
1138
 
1170
- create_table "versions", force: :cascade do |t|
1139
+ create_table "versions", id: :serial, force: :cascade do |t|
1171
1140
  t.string "item_type", null: false
1172
1141
  t.integer "item_id", null: false
1173
1142
  t.string "event", null: false
@@ -1177,7 +1146,7 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1177
1146
  t.index ["item_type", "item_id"], name: "index_versions_on_item_type_and_item_id"
1178
1147
  end
1179
1148
 
1180
- create_table "withdraws", force: :cascade do |t|
1149
+ create_table "withdraws", id: :serial, force: :cascade do |t|
1181
1150
  t.integer "basket_id"
1182
1151
  t.integer "item_id"
1183
1152
  t.integer "librarian_id"
@@ -1188,4 +1157,11 @@ ActiveRecord::Schema.define(version: 2020_04_25_074822) do
1188
1157
  t.index ["librarian_id"], name: "index_withdraws_on_librarian_id"
1189
1158
  end
1190
1159
 
1160
+ add_foreign_key "items", "manifestations"
1161
+ add_foreign_key "libraries", "library_groups"
1162
+ add_foreign_key "library_groups", "users"
1163
+ add_foreign_key "profiles", "users"
1164
+ add_foreign_key "user_has_roles", "roles"
1165
+ add_foreign_key "user_has_roles", "users"
1166
+ add_foreign_key "users", "profiles"
1191
1167
  end