2 package Koha
::Schema
::Result
::ItemsLastBorrower
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ItemsLastBorrower
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<items_last_borrower>
22 __PACKAGE__
->table("items_last_borrower");
46 data_type: 'timestamp'
47 datetime_undef_if_invalid: 1
48 default_value: current_timestamp
53 __PACKAGE__
->add_columns(
55 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
57 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
59 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
62 data_type
=> "timestamp",
63 datetime_undef_if_invalid
=> 1,
64 default_value
=> \"current_timestamp
",
79 __PACKAGE__->set_primary_key("id
");
81 =head1 UNIQUE CONSTRAINTS
87 =item * L</itemnumber>
93 __PACKAGE__->add_unique_constraint("itemnumber
", ["itemnumber
"]);
101 Related object: L<Koha::Schema::Result::Borrower>
105 __PACKAGE__->belongs_to(
107 "Koha
::Schema
::Result
::Borrower
",
108 { borrowernumber => "borrowernumber
" },
109 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
116 Related object: L<Koha::Schema::Result::Item>
120 __PACKAGE__->belongs_to(
122 "Koha
::Schema
::Result
::Item
",
123 { itemnumber => "itemnumber
" },
124 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
128 # Created by DBIx::Class::Schema::Loader v0.07040 @ 2015-10-02 12:33:33
129 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ByHKNZCEz4a1AqTnOJgUWA
132 # You can replace this text with custom code or comments, and it will be preserved on regeneration