2 package Koha::Schema::Result::CheckoutRenewal;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::CheckoutRenewal
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<checkout_renewals>
22 __PACKAGE__->table("checkout_renewals");
37 the id of the checkout this renewal pertains to
45 the id of the user who processed the renewal
53 boolean denoting whether the item was present or not
61 the interface this renewal took place on
65 data_type: 'timestamp'
66 datetime_undef_if_invalid: 1
67 default_value: current_timestamp
70 the date and time the renewal took place
74 __PACKAGE__->add_columns(
76 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
78 { data_type => "integer", is_nullable => 1 },
80 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
82 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
84 { data_type => "varchar", is_nullable => 0, size => 16 },
87 data_type => "timestamp",
88 datetime_undef_if_invalid => 1,
89 default_value => \"current_timestamp",
98 =item * L</renewal_id>
104 __PACKAGE__->set_primary_key("renewal_id");
112 Related object: L<Koha::Schema::Result::Borrower>
116 __PACKAGE__->belongs_to(
118 "Koha::Schema::Result::Borrower",
119 { borrowernumber => "renewer_id" },
123 on_delete => "SET NULL",
124 on_update => "CASCADE",
129 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-04-27 19:43:17
130 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7mjiEx634L5FZyjroACUkg
136 Related object: L<Koha::Schema::Result::Issue>
140 __PACKAGE__->belongs_to(
142 "Koha::Schema::Result::Issue",
143 { issue_id => "checkout_id" },
154 Related object: L<Koha::Schema::Result::OldIssue>
158 __PACKAGE__->belongs_to(
160 "Koha::Schema::Result::OldIssue",
161 { issue_id => "checkout_id" },
168 __PACKAGE__->add_columns(
169 '+seen' => { is_boolean => 1 }
172 sub koha_objects_class {
173 'Koha::Checkouts::Renewals';
175 sub koha_object_class {
176 'Koha::Checkouts::Renewal';