Bug 8798: DBIx::Class base classes for all Koha tables
[koha.git] / Koha / Schema / Result / Aqbudgetborrower.pm
1 package Koha::Schema::Result::Aqbudgetborrower;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::Aqbudgetborrower
15
16 =cut
17
18 __PACKAGE__->table("aqbudgetborrowers");
19
20 =head1 ACCESSORS
21
22 =head2 budget_id
23
24   data_type: 'integer'
25   is_foreign_key: 1
26   is_nullable: 0
27
28 =head2 borrowernumber
29
30   data_type: 'integer'
31   is_foreign_key: 1
32   is_nullable: 0
33
34 =cut
35
36 __PACKAGE__->add_columns(
37   "budget_id",
38   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39   "borrowernumber",
40   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41 );
42 __PACKAGE__->set_primary_key("budget_id", "borrowernumber");
43
44 =head1 RELATIONS
45
46 =head2 budget
47
48 Type: belongs_to
49
50 Related object: L<Koha::Schema::Result::Aqbudget>
51
52 =cut
53
54 __PACKAGE__->belongs_to(
55   "budget",
56   "Koha::Schema::Result::Aqbudget",
57   { budget_id => "budget_id" },
58   { on_delete => "CASCADE", on_update => "CASCADE" },
59 );
60
61 =head2 borrowernumber
62
63 Type: belongs_to
64
65 Related object: L<Koha::Schema::Result::Borrower>
66
67 =cut
68
69 __PACKAGE__->belongs_to(
70   "borrowernumber",
71   "Koha::Schema::Result::Borrower",
72   { borrowernumber => "borrowernumber" },
73   { on_delete => "CASCADE", on_update => "CASCADE" },
74 );
75
76
77 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
78 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yyTHiYgSk9l/r976XwuYog
79
80
81 # You can replace this text with custom content, and it will be preserved on regeneration
82 1;