2 package Koha
::Schema
::Result
::Branchtransfer
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Branchtransfer
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<branchtransfers>
22 __PACKAGE__
->table("branchtransfers");
26 =head2 branchtransfer_id
42 datetime_undef_if_invalid: 1
48 default_value: (empty string)
56 datetime_undef_if_invalid: 1
62 default_value: (empty string)
69 data_type: 'mediumtext'
74 __PACKAGE__
->add_columns(
76 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
79 data_type
=> "integer",
86 data_type
=> "datetime",
87 datetime_undef_if_invalid
=> 1,
92 data_type
=> "varchar",
100 data_type
=> "datetime",
101 datetime_undef_if_invalid
=> 1,
106 data_type
=> "varchar",
113 { data_type
=> "mediumtext", is_nullable
=> 1 },
120 =item * L</branchtransfer_id>
126 __PACKAGE__
->set_primary_key("branchtransfer_id");
134 Related object: L<Koha::Schema::Result::Branch>
138 __PACKAGE__
->belongs_to(
140 "Koha::Schema::Result::Branch",
141 { branchcode
=> "frombranch" },
142 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
149 Related object: L<Koha::Schema::Result::Item>
153 __PACKAGE__
->belongs_to(
155 "Koha::Schema::Result::Item",
156 { itemnumber
=> "itemnumber" },
157 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
164 Related object: L<Koha::Schema::Result::Branch>
168 __PACKAGE__
->belongs_to(
170 "Koha::Schema::Result::Branch",
171 { branchcode
=> "tobranch" },
172 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
176 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-01-13 12:22:24
177 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8cnatLrGkNwyTo35PCOm2A
180 # You can replace this text with custom content, and it will be preserved on regeneration