Bug 18936: (follow-up) Add cloning of circulation rules back to Koha
[koha.git] / Koha / Schema / Result / Aqbudgetborrower.pm
blobd6b416f8d8b4003ae3b5a61df6e2c8129d35bcd8
1 use utf8;
2 package Koha::Schema::Result::Aqbudgetborrower;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Aqbudgetborrower
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqbudgetborrowers>
20 =cut
22 __PACKAGE__->table("aqbudgetborrowers");
24 =head1 ACCESSORS
26 =head2 budget_id
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 borrowernumber
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =cut
40 __PACKAGE__->add_columns(
41 "budget_id",
42 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
43 "borrowernumber",
44 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
47 =head1 PRIMARY KEY
49 =over 4
51 =item * L</budget_id>
53 =item * L</borrowernumber>
55 =back
57 =cut
59 __PACKAGE__->set_primary_key("budget_id", "borrowernumber");
61 =head1 RELATIONS
63 =head2 borrowernumber
65 Type: belongs_to
67 Related object: L<Koha::Schema::Result::Borrower>
69 =cut
71 __PACKAGE__->belongs_to(
72 "borrowernumber",
73 "Koha::Schema::Result::Borrower",
74 { borrowernumber => "borrowernumber" },
75 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
78 =head2 budget
80 Type: belongs_to
82 Related object: L<Koha::Schema::Result::Aqbudget>
84 =cut
86 __PACKAGE__->belongs_to(
87 "budget",
88 "Koha::Schema::Result::Aqbudget",
89 { budget_id => "budget_id" },
90 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
94 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
95 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3PWUS/0L1ERMWWkghUO7ng
98 # You can replace this text with custom content, and it will be preserved on regeneration