Bug 24474: (QA follow-up) Fix failing test
[koha.git] / Koha / Schema / Result / HoldFillTarget.pm
blobb6735b68684e28a7c14aa4f0075a5cdf0831cf23
1 use utf8;
2 package Koha::Schema::Result::HoldFillTarget;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::HoldFillTarget
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<hold_fill_targets>
20 =cut
22 __PACKAGE__->table("hold_fill_targets");
24 =head1 ACCESSORS
26 =head2 borrowernumber
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 biblionumber
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 itemnumber
40 data_type: 'integer'
41 is_foreign_key: 1
42 is_nullable: 0
44 =head2 source_branchcode
46 data_type: 'varchar'
47 is_foreign_key: 1
48 is_nullable: 1
49 size: 10
51 =head2 item_level_request
53 data_type: 'tinyint'
54 default_value: 0
55 is_nullable: 0
57 =cut
59 __PACKAGE__->add_columns(
60 "borrowernumber",
61 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
62 "biblionumber",
63 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
64 "itemnumber",
65 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
66 "source_branchcode",
67 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
68 "item_level_request",
69 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
72 =head1 PRIMARY KEY
74 =over 4
76 =item * L</itemnumber>
78 =back
80 =cut
82 __PACKAGE__->set_primary_key("itemnumber");
84 =head1 RELATIONS
86 =head2 biblionumber
88 Type: belongs_to
90 Related object: L<Koha::Schema::Result::Biblio>
92 =cut
94 __PACKAGE__->belongs_to(
95 "biblionumber",
96 "Koha::Schema::Result::Biblio",
97 { biblionumber => "biblionumber" },
98 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
101 =head2 borrowernumber
103 Type: belongs_to
105 Related object: L<Koha::Schema::Result::Borrower>
107 =cut
109 __PACKAGE__->belongs_to(
110 "borrowernumber",
111 "Koha::Schema::Result::Borrower",
112 { borrowernumber => "borrowernumber" },
113 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
116 =head2 itemnumber
118 Type: belongs_to
120 Related object: L<Koha::Schema::Result::Item>
122 =cut
124 __PACKAGE__->belongs_to(
125 "itemnumber",
126 "Koha::Schema::Result::Item",
127 { itemnumber => "itemnumber" },
128 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
131 =head2 source_branchcode
133 Type: belongs_to
135 Related object: L<Koha::Schema::Result::Branch>
137 =cut
139 __PACKAGE__->belongs_to(
140 "source_branchcode",
141 "Koha::Schema::Result::Branch",
142 { branchcode => "source_branchcode" },
144 is_deferrable => 1,
145 join_type => "LEFT",
146 on_delete => "CASCADE",
147 on_update => "CASCADE",
152 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
153 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uSU9PBMr4e6XKuDgBV583A
156 # You can replace this text with custom content, and it will be preserved on regeneration