enju_circulation 0.1.0.pre7 → 0.1.0.pre8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/app/models/basket.rb +4 -4
  2. data/app/models/carrier_type_has_checkout_type.rb +5 -5
  3. data/app/models/checked_item.rb +6 -6
  4. data/app/models/checkin.rb +5 -4
  5. data/app/models/checkout.rb +7 -6
  6. data/app/models/checkout_stat_has_manifestation.rb +5 -5
  7. data/app/models/checkout_stat_has_user.rb +6 -6
  8. data/app/models/checkout_type.rb +4 -4
  9. data/app/models/circulation_status.rb +4 -4
  10. data/app/models/item_has_use_restriction.rb +5 -5
  11. data/app/models/lending_policy.rb +8 -8
  12. data/app/models/manifestation_checkout_stat.rb +3 -3
  13. data/app/models/manifestation_reserve_stat.rb +3 -3
  14. data/app/models/reserve.rb +9 -8
  15. data/app/models/reserve_stat_has_manifestation.rb +5 -5
  16. data/app/models/reserve_stat_has_user.rb +5 -5
  17. data/app/models/use_restriction.rb +4 -4
  18. data/app/models/user_checkout_stat.rb +4 -3
  19. data/app/models/user_group_has_checkout_type.rb +11 -11
  20. data/app/models/user_reserve_stat.rb +4 -3
  21. data/lib/enju_circulation/item.rb +3 -3
  22. data/lib/enju_circulation/version.rb +1 -1
  23. data/spec/dummy/db/development.sqlite3 +0 -0
  24. data/spec/dummy/db/test.sqlite3 +0 -0
  25. data/spec/dummy/solr/data/test/index/segments.gen +0 -0
  26. data/spec/dummy/solr/data/test/index/{segments_qn → segments_rr} +0 -0
  27. data/spec/fixtures/baskets.yml +4 -5
  28. data/spec/fixtures/carrier_type_has_checkout_types.yml +5 -5
  29. data/spec/fixtures/checked_items.yml +6 -6
  30. data/spec/fixtures/checkins.yml +5 -4
  31. data/spec/fixtures/checkout_stat_has_manifestations.yml +5 -5
  32. data/spec/fixtures/checkout_stat_has_users.yml +6 -6
  33. data/spec/fixtures/checkout_types.yml +4 -4
  34. data/spec/fixtures/checkouts.yml +7 -6
  35. data/spec/fixtures/circulation_statuses.yml +4 -4
  36. data/spec/fixtures/item_has_use_restrictions.yml +5 -5
  37. data/spec/fixtures/lending_policies.yml +8 -8
  38. data/spec/fixtures/manifestation_checkout_stats.yml +3 -3
  39. data/spec/fixtures/manifestation_reserve_stats.yml +3 -3
  40. data/spec/fixtures/reserve_stat_has_manifestations.yml +5 -5
  41. data/spec/fixtures/reserve_stat_has_users.yml +5 -5
  42. data/spec/fixtures/reserves.yml +9 -8
  43. data/spec/fixtures/use_restrictions.yml +4 -4
  44. data/spec/fixtures/user_checkout_stats.yml +4 -3
  45. data/spec/fixtures/user_group_has_checkout_types.yml +12 -12
  46. data/spec/fixtures/user_reserve_stats.yml +4 -3
  47. data/spec/models/basket_spec.rb +4 -5
  48. data/spec/models/carrier_type_has_checkout_type_spec.rb +5 -5
  49. data/spec/models/checked_item_spec.rb +6 -6
  50. data/spec/models/checkin_spec.rb +5 -4
  51. data/spec/models/checkout_spec.rb +7 -6
  52. data/spec/models/checkout_stat_has_manifestation_spec.rb +5 -5
  53. data/spec/models/checkout_stat_has_user_spec.rb +6 -6
  54. data/spec/models/checkout_type_spec.rb +4 -4
  55. data/spec/models/circulation_status_spec.rb +4 -4
  56. data/spec/models/lending_policy_spec.rb +8 -8
  57. data/spec/models/manifestation_checkout_stat_spec.rb +3 -3
  58. data/spec/models/manifestation_reserve_stat_spec.rb +3 -3
  59. data/spec/models/reserve_spec.rb +9 -8
  60. data/spec/models/reserve_stat_has_manifestation_spec.rb +5 -5
  61. data/spec/models/reserve_stat_has_user_spec.rb +5 -5
  62. data/spec/models/user_checkout_stat_spec.rb +4 -3
  63. data/spec/models/user_group_has_checkout_type_spec.rb +11 -11
  64. data/spec/models/user_reserve_stat_spec.rb +4 -3
  65. metadata +21 -19
  66. /data/spec/dummy/solr/data/test/index/{_cr.fdt → _db.fdt} +0 -0
  67. /data/spec/dummy/solr/data/test/index/{_cr.fdx → _db.fdx} +0 -0
  68. /data/spec/dummy/solr/data/test/index/{_cr.fnm → _db.fnm} +0 -0
  69. /data/spec/dummy/solr/data/test/index/{_cr.frq → _db.frq} +0 -0
  70. /data/spec/dummy/solr/data/test/index/{_cr.nrm → _db.nrm} +0 -0
  71. /data/spec/dummy/solr/data/test/index/{_cr.prx → _db.prx} +0 -0
  72. /data/spec/dummy/solr/data/test/index/{_cr.tii → _db.tii} +0 -0
  73. /data/spec/dummy/solr/data/test/index/{_cr.tis → _db.tis} +0 -0
data/app/models/basket.rb CHANGED
@@ -53,11 +53,11 @@ end
53
53
  #
54
54
  # Table name: baskets
55
55
  #
56
- # id :integer not null, primary key
56
+ # id :integer not null, primary key
57
57
  # user_id :integer
58
58
  # note :text
59
- # lock_version :integer default(0), not null
60
- # created_at :datetime not null
61
- # updated_at :datetime not null
59
+ # lock_version :integer default(0), not null
60
+ # created_at :datetime not null
61
+ # updated_at :datetime not null
62
62
  #
63
63
 
@@ -17,12 +17,12 @@ end
17
17
  #
18
18
  # Table name: carrier_type_has_checkout_types
19
19
  #
20
- # id :integer not null, primary key
21
- # carrier_type_id :integer not null
22
- # checkout_type_id :integer not null
20
+ # id :integer not null, primary key
21
+ # carrier_type_id :integer not null
22
+ # checkout_type_id :integer not null
23
23
  # note :text
24
24
  # position :integer
25
- # created_at :datetime
26
- # updated_at :datetime
25
+ # created_at :datetime not null
26
+ # updated_at :datetime not null
27
27
  #
28
28
 
@@ -101,12 +101,12 @@ end
101
101
  #
102
102
  # Table name: checked_items
103
103
  #
104
- # id :integer not null, primary key
105
- # item_id :integer not null
106
- # basket_id :integer not null
107
- # due_date :datetime not null
108
- # created_at :datetime not null
109
- # updated_at :datetime not null
104
+ # id :integer not null, primary key
105
+ # item_id :integer not null
106
+ # basket_id :integer not null
107
+ # due_date :datetime not null
108
+ # created_at :datetime not null
109
+ # updated_at :datetime not null
110
110
  # librarian_id :integer
111
111
  #
112
112
 
@@ -66,15 +66,16 @@ class Checkin < ActiveRecord::Base
66
66
  end
67
67
  end
68
68
  end
69
+
69
70
  # == Schema Information
70
71
  #
71
72
  # Table name: checkins
72
73
  #
73
- # id :integer not null, primary key
74
- # item_id :integer not null
74
+ # id :integer not null, primary key
75
+ # item_id :integer not null
75
76
  # librarian_id :integer
76
77
  # basket_id :integer
77
- # created_at :datetime not null
78
- # updated_at :datetime not null
78
+ # created_at :datetime not null
79
+ # updated_at :datetime not null
79
80
  #
80
81
 
@@ -132,20 +132,21 @@ class Checkout < ActiveRecord::Base
132
132
  user.checkouts.returned.update_all(:user_id => nil)
133
133
  end
134
134
  end
135
+
135
136
  # == Schema Information
136
137
  #
137
138
  # Table name: checkouts
138
139
  #
139
- # id :integer not null, primary key
140
+ # id :integer not null, primary key
140
141
  # user_id :integer
141
- # item_id :integer not null
142
+ # item_id :integer not null
142
143
  # checkin_id :integer
143
144
  # librarian_id :integer
144
145
  # basket_id :integer
145
146
  # due_date :datetime
146
- # checkout_renewal_count :integer default(0), not null
147
- # lock_version :integer default(0), not null
148
- # created_at :datetime not null
149
- # updated_at :datetime not null
147
+ # checkout_renewal_count :integer default(0), not null
148
+ # lock_version :integer default(0), not null
149
+ # created_at :datetime not null
150
+ # updated_at :datetime not null
150
151
  #
151
152
 
@@ -15,11 +15,11 @@ end
15
15
  #
16
16
  # Table name: checkout_stat_has_manifestations
17
17
  #
18
- # id :integer not null, primary key
19
- # manifestation_checkout_stat_id :integer not null
20
- # manifestation_id :integer not null
18
+ # id :integer not null, primary key
19
+ # manifestation_checkout_stat_id :integer not null
20
+ # manifestation_id :integer not null
21
21
  # checkouts_count :integer
22
- # created_at :datetime
23
- # updated_at :datetime
22
+ # created_at :datetime not null
23
+ # updated_at :datetime not null
24
24
  #
25
25
 
@@ -15,11 +15,11 @@ end
15
15
  #
16
16
  # Table name: checkout_stat_has_users
17
17
  #
18
- # id :integer not null, primary key
19
- # user_checkout_stat_id :integer not null
20
- # user_id :integer not null
21
- # checkouts_count :integer default(0), not null
22
- # created_at :datetime
23
- # updated_at :datetime
18
+ # id :integer not null, primary key
19
+ # user_checkout_stat_id :integer not null
20
+ # user_id :integer not null
21
+ # checkouts_count :integer default(0), not null
22
+ # created_at :datetime not null
23
+ # updated_at :datetime not null
24
24
  #
25
25
 
@@ -20,12 +20,12 @@ end
20
20
  #
21
21
  # Table name: checkout_types
22
22
  #
23
- # id :integer not null, primary key
24
- # name :string(255) not null
23
+ # id :integer not null, primary key
24
+ # name :string(255) not null
25
25
  # display_name :text
26
26
  # note :text
27
27
  # position :integer
28
- # created_at :datetime
29
- # updated_at :datetime
28
+ # created_at :datetime not null
29
+ # updated_at :datetime not null
30
30
  #
31
31
 
@@ -10,12 +10,12 @@ end
10
10
  #
11
11
  # Table name: circulation_statuses
12
12
  #
13
- # id :integer not null, primary key
14
- # name :string(255) not null
13
+ # id :integer not null, primary key
14
+ # name :string(255) not null
15
15
  # display_name :text
16
16
  # note :text
17
17
  # position :integer
18
- # created_at :datetime
19
- # updated_at :datetime
18
+ # created_at :datetime not null
19
+ # updated_at :datetime not null
20
20
  #
21
21
 
@@ -15,10 +15,10 @@ end
15
15
  #
16
16
  # Table name: item_has_use_restrictions
17
17
  #
18
- # id :integer not null, primary key
19
- # item_id :integer not null
20
- # use_restriction_id :integer not null
21
- # created_at :datetime
22
- # updated_at :datetime
18
+ # id :integer not null, primary key
19
+ # item_id :integer not null
20
+ # use_restriction_id :integer not null
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
23
23
  #
24
24
 
@@ -18,16 +18,16 @@ end
18
18
  #
19
19
  # Table name: lending_policies
20
20
  #
21
- # id :integer not null, primary key
22
- # item_id :integer not null
23
- # user_group_id :integer not null
24
- # loan_period :integer default(0), not null
21
+ # id :integer not null, primary key
22
+ # item_id :integer not null
23
+ # user_group_id :integer not null
24
+ # loan_period :integer default(0), not null
25
25
  # fixed_due_date :datetime
26
- # renewal :integer default(0), not null
27
- # fine :decimal(, ) default(0.0), not null
26
+ # renewal :integer default(0), not null
27
+ # fine :decimal(, ) default(0.0), not null
28
28
  # note :text
29
29
  # position :integer
30
- # created_at :datetime
31
- # updated_at :datetime
30
+ # created_at :datetime not null
31
+ # updated_at :datetime not null
32
32
  #
33
33
 
@@ -36,13 +36,13 @@ end
36
36
  #
37
37
  # Table name: manifestation_checkout_stats
38
38
  #
39
- # id :integer not null, primary key
39
+ # id :integer not null, primary key
40
40
  # start_date :datetime
41
41
  # end_date :datetime
42
42
  # note :text
43
43
  # state :string(255)
44
- # created_at :datetime
45
- # updated_at :datetime
44
+ # created_at :datetime not null
45
+ # updated_at :datetime not null
46
46
  # started_at :datetime
47
47
  # completed_at :datetime
48
48
  #
@@ -36,13 +36,13 @@ end
36
36
  #
37
37
  # Table name: manifestation_reserve_stats
38
38
  #
39
- # id :integer not null, primary key
39
+ # id :integer not null, primary key
40
40
  # start_date :datetime
41
41
  # end_date :datetime
42
42
  # note :text
43
43
  # state :string(255)
44
- # created_at :datetime
45
- # updated_at :datetime
44
+ # created_at :datetime not null
45
+ # updated_at :datetime not null
46
46
  # started_at :datetime
47
47
  # completed_at :datetime
48
48
  #
@@ -269,23 +269,24 @@ class Reserve < ActiveRecord::Base
269
269
  has_one :inter_library_loan
270
270
  end
271
271
  end
272
+
272
273
  # == Schema Information
273
274
  #
274
275
  # Table name: reserves
275
276
  #
276
- # id :integer not null, primary key
277
- # user_id :integer not null
278
- # manifestation_id :integer not null
277
+ # id :integer not null, primary key
278
+ # user_id :integer not null
279
+ # manifestation_id :integer not null
279
280
  # item_id :integer
280
- # request_status_type_id :integer not null
281
+ # request_status_type_id :integer not null
281
282
  # checked_out_at :datetime
282
- # created_at :datetime not null
283
- # updated_at :datetime not null
283
+ # created_at :datetime not null
284
+ # updated_at :datetime not null
284
285
  # canceled_at :datetime
285
286
  # expired_at :datetime
286
287
  # deleted_at :datetime
287
288
  # state :string(255)
288
- # expiration_notice_to_patron :boolean default(FALSE)
289
- # expiration_notice_to_library :boolean default(FALSE)
289
+ # expiration_notice_to_patron :boolean default(FALSE)
290
+ # expiration_notice_to_library :boolean default(FALSE)
290
291
  #
291
292
 
@@ -15,11 +15,11 @@ end
15
15
  #
16
16
  # Table name: reserve_stat_has_manifestations
17
17
  #
18
- # id :integer not null, primary key
19
- # manifestation_reserve_stat_id :integer not null
20
- # manifestation_id :integer not null
18
+ # id :integer not null, primary key
19
+ # manifestation_reserve_stat_id :integer not null
20
+ # manifestation_id :integer not null
21
21
  # reserves_count :integer
22
- # created_at :datetime
23
- # updated_at :datetime
22
+ # created_at :datetime not null
23
+ # updated_at :datetime not null
24
24
  #
25
25
 
@@ -15,11 +15,11 @@ end
15
15
  #
16
16
  # Table name: reserve_stat_has_users
17
17
  #
18
- # id :integer not null, primary key
19
- # user_reserve_stat_id :integer not null
20
- # user_id :integer not null
18
+ # id :integer not null, primary key
19
+ # user_reserve_stat_id :integer not null
20
+ # user_id :integer not null
21
21
  # reserves_count :integer
22
- # created_at :datetime
23
- # updated_at :datetime
22
+ # created_at :datetime not null
23
+ # updated_at :datetime not null
24
24
  #
25
25
 
@@ -11,12 +11,12 @@ end
11
11
  #
12
12
  # Table name: use_restrictions
13
13
  #
14
- # id :integer not null, primary key
15
- # name :string(255) not null
14
+ # id :integer not null, primary key
15
+ # name :string(255) not null
16
16
  # display_name :text
17
17
  # note :text
18
18
  # position :integer
19
- # created_at :datetime
20
- # updated_at :datetime
19
+ # created_at :datetime not null
20
+ # updated_at :datetime not null
21
21
  #
22
22
 
@@ -30,17 +30,18 @@ class UserCheckoutStat < ActiveRecord::Base
30
30
  self.completed_at = Time.zone.now
31
31
  end
32
32
  end
33
+
33
34
  # == Schema Information
34
35
  #
35
36
  # Table name: user_checkout_stats
36
37
  #
37
- # id :integer not null, primary key
38
+ # id :integer not null, primary key
38
39
  # start_date :datetime
39
40
  # end_date :datetime
40
41
  # note :text
41
42
  # state :string(255)
42
- # created_at :datetime not null
43
- # updated_at :datetime not null
43
+ # created_at :datetime not null
44
+ # updated_at :datetime not null
44
45
  # started_at :datetime
45
46
  # completed_at :datetime
46
47
  #
@@ -68,20 +68,20 @@ end
68
68
  #
69
69
  # Table name: user_group_has_checkout_types
70
70
  #
71
- # id :integer not null, primary key
72
- # user_group_id :integer not null
73
- # checkout_type_id :integer not null
74
- # checkout_limit :integer default(0), not null
75
- # checkout_period :integer default(0), not null
76
- # checkout_renewal_limit :integer default(0), not null
77
- # reservation_limit :integer default(0), not null
78
- # reservation_expired_period :integer default(7), not null
79
- # set_due_date_before_closing_day :boolean default(FALSE), not null
71
+ # id :integer not null, primary key
72
+ # user_group_id :integer not null
73
+ # checkout_type_id :integer not null
74
+ # checkout_limit :integer default(0), not null
75
+ # checkout_period :integer default(0), not null
76
+ # checkout_renewal_limit :integer default(0), not null
77
+ # reservation_limit :integer default(0), not null
78
+ # reservation_expired_period :integer default(7), not null
79
+ # set_due_date_before_closing_day :boolean default(FALSE), not null
80
80
  # fixed_due_date :datetime
81
81
  # note :text
82
82
  # position :integer
83
- # created_at :datetime
84
- # updated_at :datetime
83
+ # created_at :datetime not null
84
+ # updated_at :datetime not null
85
85
  # current_checkout_count :integer
86
86
  #
87
87
 
@@ -30,17 +30,18 @@ class UserReserveStat < ActiveRecord::Base
30
30
  self.completed_at = Time.zone.now
31
31
  end
32
32
  end
33
+
33
34
  # == Schema Information
34
35
  #
35
36
  # Table name: user_reserve_stats
36
37
  #
37
- # id :integer not null, primary key
38
+ # id :integer not null, primary key
38
39
  # start_date :datetime
39
40
  # end_date :datetime
40
41
  # note :text
41
42
  # state :string(255)
42
- # created_at :datetime not null
43
- # updated_at :datetime not null
43
+ # created_at :datetime not null
44
+ # updated_at :datetime not null
44
45
  # started_at :datetime
45
46
  # completed_at :datetime
46
47
  #
@@ -50,7 +50,7 @@ module EnjuCirculation
50
50
  accepts_nested_attributes_for :item_has_use_restriction
51
51
 
52
52
  after_create :create_lending_policy
53
- before_update :delete_lending_policy
53
+ before_update :update_lending_policy
54
54
  end
55
55
  end
56
56
 
@@ -128,8 +128,8 @@ module EnjuCirculation
128
128
  end
129
129
  end
130
130
 
131
- def delete_lending_policy
132
- return nil unless changes[:circulation_status_id]
131
+ def update_lending_policy
132
+ return nil unless changes[:checkout_type_id]
133
133
  self.transaction do
134
134
  lending_policies.delete_all
135
135
  create_lending_policy
@@ -1,3 +1,3 @@
1
1
  module EnjuCirculation
2
- VERSION = "0.1.0.pre7"
2
+ VERSION = "0.1.0.pre8"
3
3
  end
Binary file
Binary file
@@ -70,12 +70,11 @@ basket_00011:
70
70
  #
71
71
  # Table name: baskets
72
72
  #
73
- # id :integer not null, primary key
73
+ # id :integer not null, primary key
74
74
  # user_id :integer
75
75
  # note :text
76
- # type :string(255)
77
- # lock_version :integer default(0), not null
78
- # created_at :datetime
79
- # updated_at :datetime
76
+ # lock_version :integer default(0), not null
77
+ # created_at :datetime not null
78
+ # updated_at :datetime not null
80
79
  #
81
80
 
@@ -20,12 +20,12 @@ carrier_type_has_checkout_type_00003:
20
20
  #
21
21
  # Table name: carrier_type_has_checkout_types
22
22
  #
23
- # id :integer not null, primary key
24
- # carrier_type_id :integer not null
25
- # checkout_type_id :integer not null
23
+ # id :integer not null, primary key
24
+ # carrier_type_id :integer not null
25
+ # checkout_type_id :integer not null
26
26
  # note :text
27
27
  # position :integer
28
- # created_at :datetime
29
- # updated_at :datetime
28
+ # created_at :datetime not null
29
+ # updated_at :datetime not null
30
30
  #
31
31
 
@@ -24,12 +24,12 @@ checked_item_00004:
24
24
  #
25
25
  # Table name: checked_items
26
26
  #
27
- # id :integer not null, primary key
28
- # item_id :integer not null
29
- # basket_id :integer not null
30
- # due_date :datetime not null
31
- # created_at :datetime not null
32
- # updated_at :datetime not null
27
+ # id :integer not null, primary key
28
+ # item_id :integer not null
29
+ # basket_id :integer not null
30
+ # due_date :datetime not null
31
+ # created_at :datetime not null
32
+ # updated_at :datetime not null
33
33
  # librarian_id :integer
34
34
  #
35
35
 
@@ -34,15 +34,16 @@ checkin_00005:
34
34
  librarian_id: 1
35
35
  created_at: 2007-12-20 21:25:04.619479 +09:00
36
36
  basket_id: 10
37
+
37
38
  # == Schema Information
38
39
  #
39
40
  # Table name: checkins
40
41
  #
41
- # id :integer not null, primary key
42
- # item_id :integer not null
42
+ # id :integer not null, primary key
43
+ # item_id :integer not null
43
44
  # librarian_id :integer
44
45
  # basket_id :integer
45
- # created_at :datetime not null
46
- # updated_at :datetime not null
46
+ # created_at :datetime not null
47
+ # updated_at :datetime not null
47
48
  #
48
49
 
@@ -14,11 +14,11 @@ two:
14
14
  #
15
15
  # Table name: checkout_stat_has_manifestations
16
16
  #
17
- # id :integer not null, primary key
18
- # manifestation_checkout_stat_id :integer not null
19
- # manifestation_id :integer not null
17
+ # id :integer not null, primary key
18
+ # manifestation_checkout_stat_id :integer not null
19
+ # manifestation_id :integer not null
20
20
  # checkouts_count :integer
21
- # created_at :datetime
22
- # updated_at :datetime
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
23
23
  #
24
24
 
@@ -14,11 +14,11 @@ two:
14
14
  #
15
15
  # Table name: checkout_stat_has_users
16
16
  #
17
- # id :integer not null, primary key
18
- # user_checkout_stat_id :integer not null
19
- # user_id :integer not null
20
- # checkouts_count :integer default(0), not null
21
- # created_at :datetime
22
- # updated_at :datetime
17
+ # id :integer not null, primary key
18
+ # user_checkout_stat_id :integer not null
19
+ # user_id :integer not null
20
+ # checkouts_count :integer default(0), not null
21
+ # created_at :datetime not null
22
+ # updated_at :datetime not null
23
23
  #
24
24
 
@@ -23,12 +23,12 @@ checkout_type_00003:
23
23
  #
24
24
  # Table name: checkout_types
25
25
  #
26
- # id :integer not null, primary key
27
- # name :string(255) not null
26
+ # id :integer not null, primary key
27
+ # name :string(255) not null
28
28
  # display_name :text
29
29
  # note :text
30
30
  # position :integer
31
- # created_at :datetime
32
- # updated_at :datetime
31
+ # created_at :datetime not null
32
+ # updated_at :datetime not null
33
33
  #
34
34
 
@@ -143,20 +143,21 @@ checkout_00013:
143
143
  created_at: 2007-09-08 01:39:13.210081 +09:00
144
144
  basket_id: 8
145
145
  checkin_id: 4
146
+
146
147
  # == Schema Information
147
148
  #
148
149
  # Table name: checkouts
149
150
  #
150
- # id :integer not null, primary key
151
+ # id :integer not null, primary key
151
152
  # user_id :integer
152
- # item_id :integer not null
153
+ # item_id :integer not null
153
154
  # checkin_id :integer
154
155
  # librarian_id :integer
155
156
  # basket_id :integer
156
157
  # due_date :datetime
157
- # checkout_renewal_count :integer default(0), not null
158
- # lock_version :integer default(0), not null
159
- # created_at :datetime not null
160
- # updated_at :datetime not null
158
+ # checkout_renewal_count :integer default(0), not null
159
+ # lock_version :integer default(0), not null
160
+ # created_at :datetime not null
161
+ # updated_at :datetime not null
161
162
  #
162
163
 
@@ -116,12 +116,12 @@ circulation_status_00004:
116
116
  #
117
117
  # Table name: circulation_statuses
118
118
  #
119
- # id :integer not null, primary key
120
- # name :string(255) not null
119
+ # id :integer not null, primary key
120
+ # name :string(255) not null
121
121
  # display_name :text
122
122
  # note :text
123
123
  # position :integer
124
- # created_at :datetime
125
- # updated_at :datetime
124
+ # created_at :datetime not null
125
+ # updated_at :datetime not null
126
126
  #
127
127