Bug 11502: make library filter in "Holds To Pull" more precise
[koha.git] / Koha / Schema / Result / Branchtransfer.pm
blob1976ffd4024d0d98ddb986287e076fc6e4b4f983
1 use utf8;
2 package Koha::Schema::Result::Branchtransfer;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Branchtransfer
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<branchtransfers>
20 =cut
22 __PACKAGE__->table("branchtransfers");
24 =head1 ACCESSORS
26 =head2 itemnumber
28 data_type: 'integer'
29 default_value: 0
30 is_foreign_key: 1
31 is_nullable: 0
33 =head2 datesent
35 data_type: 'datetime'
36 datetime_undef_if_invalid: 1
37 is_nullable: 1
39 =head2 frombranch
41 data_type: 'varchar'
42 default_value: (empty string)
43 is_foreign_key: 1
44 is_nullable: 0
45 size: 10
47 =head2 datearrived
49 data_type: 'datetime'
50 datetime_undef_if_invalid: 1
51 is_nullable: 1
53 =head2 tobranch
55 data_type: 'varchar'
56 default_value: (empty string)
57 is_foreign_key: 1
58 is_nullable: 0
59 size: 10
61 =head2 comments
63 data_type: 'mediumtext'
64 is_nullable: 1
66 =cut
68 __PACKAGE__->add_columns(
69 "itemnumber",
71 data_type => "integer",
72 default_value => 0,
73 is_foreign_key => 1,
74 is_nullable => 0,
76 "datesent",
78 data_type => "datetime",
79 datetime_undef_if_invalid => 1,
80 is_nullable => 1,
82 "frombranch",
84 data_type => "varchar",
85 default_value => "",
86 is_foreign_key => 1,
87 is_nullable => 0,
88 size => 10,
90 "datearrived",
92 data_type => "datetime",
93 datetime_undef_if_invalid => 1,
94 is_nullable => 1,
96 "tobranch",
98 data_type => "varchar",
99 default_value => "",
100 is_foreign_key => 1,
101 is_nullable => 0,
102 size => 10,
104 "comments",
105 { data_type => "mediumtext", is_nullable => 1 },
108 =head1 RELATIONS
110 =head2 frombranch
112 Type: belongs_to
114 Related object: L<Koha::Schema::Result::Branch>
116 =cut
118 __PACKAGE__->belongs_to(
119 "frombranch",
120 "Koha::Schema::Result::Branch",
121 { branchcode => "frombranch" },
122 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
125 =head2 itemnumber
127 Type: belongs_to
129 Related object: L<Koha::Schema::Result::Item>
131 =cut
133 __PACKAGE__->belongs_to(
134 "itemnumber",
135 "Koha::Schema::Result::Item",
136 { itemnumber => "itemnumber" },
137 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
140 =head2 tobranch
142 Type: belongs_to
144 Related object: L<Koha::Schema::Result::Branch>
146 =cut
148 __PACKAGE__->belongs_to(
149 "tobranch",
150 "Koha::Schema::Result::Branch",
151 { branchcode => "tobranch" },
152 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
156 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
157 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NPbH+5o2BVPj8yeoUqEavw
160 # You can replace this text with custom content, and it will be preserved on regeneration