1 package Koha::Schema::Result::Branch;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::Branch
18 __PACKAGE__->table("branches");
25 default_value: (empty string)
31 data_type: 'mediumtext'
36 data_type: 'mediumtext'
41 data_type: 'mediumtext'
46 data_type: 'mediumtext'
57 data_type: 'mediumtext'
62 data_type: 'mediumtext'
72 data_type: 'mediumtext'
77 data_type: 'mediumtext'
82 data_type: 'mediumtext'
87 data_type: 'mediumtext'
109 data_type: 'mediumtext'
119 __PACKAGE__->add_columns(
121 { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
123 { data_type => "mediumtext", is_nullable => 0 },
125 { data_type => "mediumtext", is_nullable => 1 },
127 { data_type => "mediumtext", is_nullable => 1 },
129 { data_type => "mediumtext", is_nullable => 1 },
131 { data_type => "varchar", is_nullable => 1, size => 25 },
133 { data_type => "mediumtext", is_nullable => 1 },
135 { data_type => "mediumtext", is_nullable => 1 },
137 { data_type => "text", is_nullable => 1 },
139 { data_type => "mediumtext", is_nullable => 1 },
141 { data_type => "mediumtext", is_nullable => 1 },
143 { data_type => "mediumtext", is_nullable => 1 },
145 { data_type => "mediumtext", is_nullable => 1 },
147 { data_type => "tinyint", is_nullable => 1 },
149 { data_type => "varchar", is_nullable => 1, size => 15 },
151 { data_type => "varchar", is_nullable => 1, size => 100 },
153 { data_type => "mediumtext", is_nullable => 1 },
155 { data_type => "text", is_nullable => 1 },
157 __PACKAGE__->set_primary_key("branchcode");
165 Related object: L<Koha::Schema::Result::Borrower>
169 __PACKAGE__->has_many(
171 "Koha::Schema::Result::Borrower",
172 { "foreign.branchcode" => "self.branchcode" },
173 { cascade_copy => 0, cascade_delete => 0 },
176 =head2 branch_borrower_circ_rules
180 Related object: L<Koha::Schema::Result::BranchBorrowerCircRule>
184 __PACKAGE__->has_many(
185 "branch_borrower_circ_rules",
186 "Koha::Schema::Result::BranchBorrowerCircRule",
187 { "foreign.branchcode" => "self.branchcode" },
188 { cascade_copy => 0, cascade_delete => 0 },
191 =head2 branch_item_rules
195 Related object: L<Koha::Schema::Result::BranchItemRule>
199 __PACKAGE__->has_many(
201 "Koha::Schema::Result::BranchItemRule",
202 { "foreign.branchcode" => "self.branchcode" },
203 { cascade_copy => 0, cascade_delete => 0 },
206 =head2 branchrelations
210 Related object: L<Koha::Schema::Result::Branchrelation>
214 __PACKAGE__->has_many(
216 "Koha::Schema::Result::Branchrelation",
217 { "foreign.branchcode" => "self.branchcode" },
218 { cascade_copy => 0, cascade_delete => 0 },
221 =head2 branchtransfers_frombranches
225 Related object: L<Koha::Schema::Result::Branchtransfer>
229 __PACKAGE__->has_many(
230 "branchtransfers_frombranches",
231 "Koha::Schema::Result::Branchtransfer",
232 { "foreign.frombranch" => "self.branchcode" },
233 { cascade_copy => 0, cascade_delete => 0 },
236 =head2 branchtransfers_tobranches
240 Related object: L<Koha::Schema::Result::Branchtransfer>
244 __PACKAGE__->has_many(
245 "branchtransfers_tobranches",
246 "Koha::Schema::Result::Branchtransfer",
247 { "foreign.tobranch" => "self.branchcode" },
248 { cascade_copy => 0, cascade_delete => 0 },
251 =head2 creator_batches
255 Related object: L<Koha::Schema::Result::CreatorBatch>
259 __PACKAGE__->has_many(
261 "Koha::Schema::Result::CreatorBatch",
262 { "foreign.branch_code" => "self.branchcode" },
263 { cascade_copy => 0, cascade_delete => 0 },
266 =head2 default_branch_circ_rule
270 Related object: L<Koha::Schema::Result::DefaultBranchCircRule>
274 __PACKAGE__->might_have(
275 "default_branch_circ_rule",
276 "Koha::Schema::Result::DefaultBranchCircRule",
277 { "foreign.branchcode" => "self.branchcode" },
278 { cascade_copy => 0, cascade_delete => 0 },
281 =head2 hold_fill_targets
285 Related object: L<Koha::Schema::Result::HoldFillTarget>
289 __PACKAGE__->has_many(
291 "Koha::Schema::Result::HoldFillTarget",
292 { "foreign.source_branchcode" => "self.branchcode" },
293 { cascade_copy => 0, cascade_delete => 0 },
296 =head2 items_homebranches
300 Related object: L<Koha::Schema::Result::Item>
304 __PACKAGE__->has_many(
305 "items_homebranches",
306 "Koha::Schema::Result::Item",
307 { "foreign.homebranch" => "self.branchcode" },
308 { cascade_copy => 0, cascade_delete => 0 },
311 =head2 items_holdingbranches
315 Related object: L<Koha::Schema::Result::Item>
319 __PACKAGE__->has_many(
320 "items_holdingbranches",
321 "Koha::Schema::Result::Item",
322 { "foreign.holdingbranch" => "self.branchcode" },
323 { cascade_copy => 0, cascade_delete => 0 },
330 Related object: L<Koha::Schema::Result::Reserve>
334 __PACKAGE__->has_many(
336 "Koha::Schema::Result::Reserve",
337 { "foreign.branchcode" => "self.branchcode" },
338 { cascade_copy => 0, cascade_delete => 0 },
341 =head2 transport_cost_frombranches
345 Related object: L<Koha::Schema::Result::TransportCost>
349 __PACKAGE__->has_many(
350 "transport_cost_frombranches",
351 "Koha::Schema::Result::TransportCost",
352 { "foreign.frombranch" => "self.branchcode" },
353 { cascade_copy => 0, cascade_delete => 0 },
356 =head2 transport_cost_tobranches
360 Related object: L<Koha::Schema::Result::TransportCost>
364 __PACKAGE__->has_many(
365 "transport_cost_tobranches",
366 "Koha::Schema::Result::TransportCost",
367 { "foreign.tobranch" => "self.branchcode" },
368 { cascade_copy => 0, cascade_delete => 0 },
372 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
373 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7/fUACQhSXHg0daDi6MGbQ
376 # You can replace this text with custom content, and it will be preserved on regeneration