|
Lines 1-260
Link Here
|
| 1 |
use utf8; |
|
|
| 2 |
package Koha::Schema::Result::OldRecall; |
| 3 |
|
| 4 |
# Created by DBIx::Class::Schema::Loader |
| 5 |
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
| 6 |
|
| 7 |
=head1 NAME |
| 8 |
|
| 9 |
Koha::Schema::Result::OldRecall |
| 10 |
|
| 11 |
=cut |
| 12 |
|
| 13 |
use strict; |
| 14 |
use warnings; |
| 15 |
|
| 16 |
use base 'DBIx::Class::Core'; |
| 17 |
|
| 18 |
=head1 TABLE: C<old_recalls> |
| 19 |
|
| 20 |
=cut |
| 21 |
|
| 22 |
__PACKAGE__->table("old_recalls"); |
| 23 |
|
| 24 |
=head1 ACCESSORS |
| 25 |
|
| 26 |
=head2 recall_id |
| 27 |
|
| 28 |
data_type: 'integer' |
| 29 |
is_auto_increment: 1 |
| 30 |
is_nullable: 0 |
| 31 |
|
| 32 |
=head2 borrowernumber |
| 33 |
|
| 34 |
data_type: 'integer' |
| 35 |
default_value: 0 |
| 36 |
is_foreign_key: 1 |
| 37 |
is_nullable: 1 |
| 38 |
|
| 39 |
=head2 recalldate |
| 40 |
|
| 41 |
data_type: 'date' |
| 42 |
datetime_undef_if_invalid: 1 |
| 43 |
is_nullable: 1 |
| 44 |
|
| 45 |
=head2 biblionumber |
| 46 |
|
| 47 |
data_type: 'integer' |
| 48 |
default_value: 0 |
| 49 |
is_foreign_key: 1 |
| 50 |
is_nullable: 1 |
| 51 |
|
| 52 |
=head2 branchcode |
| 53 |
|
| 54 |
data_type: 'varchar' |
| 55 |
is_nullable: 1 |
| 56 |
size: 10 |
| 57 |
|
| 58 |
=head2 cancellationdate |
| 59 |
|
| 60 |
data_type: 'date' |
| 61 |
datetime_undef_if_invalid: 1 |
| 62 |
is_nullable: 1 |
| 63 |
|
| 64 |
=head2 recallnotes |
| 65 |
|
| 66 |
data_type: 'mediumtext' |
| 67 |
is_nullable: 1 |
| 68 |
|
| 69 |
=head2 priority |
| 70 |
|
| 71 |
data_type: 'smallint' |
| 72 |
is_nullable: 1 |
| 73 |
|
| 74 |
=head2 found |
| 75 |
|
| 76 |
data_type: 'varchar' |
| 77 |
is_nullable: 1 |
| 78 |
size: 1 |
| 79 |
|
| 80 |
=head2 timestamp |
| 81 |
|
| 82 |
data_type: 'timestamp' |
| 83 |
datetime_undef_if_invalid: 1 |
| 84 |
default_value: current_timestamp |
| 85 |
is_nullable: 0 |
| 86 |
|
| 87 |
=head2 itemnumber |
| 88 |
|
| 89 |
data_type: 'integer' |
| 90 |
is_foreign_key: 1 |
| 91 |
is_nullable: 1 |
| 92 |
|
| 93 |
=head2 waitingdate |
| 94 |
|
| 95 |
data_type: 'date' |
| 96 |
datetime_undef_if_invalid: 1 |
| 97 |
is_nullable: 1 |
| 98 |
|
| 99 |
=head2 expirationdate |
| 100 |
|
| 101 |
data_type: 'date' |
| 102 |
datetime_undef_if_invalid: 1 |
| 103 |
is_nullable: 1 |
| 104 |
|
| 105 |
=head2 itemtype |
| 106 |
|
| 107 |
data_type: 'varchar' |
| 108 |
is_foreign_key: 1 |
| 109 |
is_nullable: 1 |
| 110 |
size: 10 |
| 111 |
|
| 112 |
=cut |
| 113 |
|
| 114 |
__PACKAGE__->add_columns( |
| 115 |
"recall_id", |
| 116 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
| 117 |
"borrowernumber", |
| 118 |
{ |
| 119 |
data_type => "integer", |
| 120 |
default_value => 0, |
| 121 |
is_foreign_key => 1, |
| 122 |
is_nullable => 1, |
| 123 |
}, |
| 124 |
"recalldate", |
| 125 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
| 126 |
"biblionumber", |
| 127 |
{ |
| 128 |
data_type => "integer", |
| 129 |
default_value => 0, |
| 130 |
is_foreign_key => 1, |
| 131 |
is_nullable => 1, |
| 132 |
}, |
| 133 |
"branchcode", |
| 134 |
{ data_type => "varchar", is_nullable => 1, size => 10 }, |
| 135 |
"cancellationdate", |
| 136 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
| 137 |
"recallnotes", |
| 138 |
{ data_type => "mediumtext", is_nullable => 1 }, |
| 139 |
"priority", |
| 140 |
{ data_type => "smallint", is_nullable => 1 }, |
| 141 |
"found", |
| 142 |
{ data_type => "varchar", is_nullable => 1, size => 1 }, |
| 143 |
"timestamp", |
| 144 |
{ |
| 145 |
data_type => "timestamp", |
| 146 |
datetime_undef_if_invalid => 1, |
| 147 |
default_value => \"current_timestamp", |
| 148 |
is_nullable => 0, |
| 149 |
}, |
| 150 |
"itemnumber", |
| 151 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 152 |
"waitingdate", |
| 153 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
| 154 |
"expirationdate", |
| 155 |
{ data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 }, |
| 156 |
"itemtype", |
| 157 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 }, |
| 158 |
); |
| 159 |
|
| 160 |
=head1 PRIMARY KEY |
| 161 |
|
| 162 |
=over 4 |
| 163 |
|
| 164 |
=item * L</recall_id> |
| 165 |
|
| 166 |
=back |
| 167 |
|
| 168 |
=cut |
| 169 |
|
| 170 |
__PACKAGE__->set_primary_key("recall_id"); |
| 171 |
|
| 172 |
=head1 RELATIONS |
| 173 |
|
| 174 |
=head2 biblionumber |
| 175 |
|
| 176 |
Type: belongs_to |
| 177 |
|
| 178 |
Related object: L<Koha::Schema::Result::Biblio> |
| 179 |
|
| 180 |
=cut |
| 181 |
|
| 182 |
__PACKAGE__->belongs_to( |
| 183 |
"biblionumber", |
| 184 |
"Koha::Schema::Result::Biblio", |
| 185 |
{ biblionumber => "biblionumber" }, |
| 186 |
{ |
| 187 |
is_deferrable => 1, |
| 188 |
join_type => "LEFT", |
| 189 |
on_delete => "SET NULL", |
| 190 |
on_update => "SET NULL", |
| 191 |
}, |
| 192 |
); |
| 193 |
|
| 194 |
=head2 borrowernumber |
| 195 |
|
| 196 |
Type: belongs_to |
| 197 |
|
| 198 |
Related object: L<Koha::Schema::Result::Borrower> |
| 199 |
|
| 200 |
=cut |
| 201 |
|
| 202 |
__PACKAGE__->belongs_to( |
| 203 |
"borrowernumber", |
| 204 |
"Koha::Schema::Result::Borrower", |
| 205 |
{ borrowernumber => "borrowernumber" }, |
| 206 |
{ |
| 207 |
is_deferrable => 1, |
| 208 |
join_type => "LEFT", |
| 209 |
on_delete => "SET NULL", |
| 210 |
on_update => "SET NULL", |
| 211 |
}, |
| 212 |
); |
| 213 |
|
| 214 |
=head2 itemnumber |
| 215 |
|
| 216 |
Type: belongs_to |
| 217 |
|
| 218 |
Related object: L<Koha::Schema::Result::Item> |
| 219 |
|
| 220 |
=cut |
| 221 |
|
| 222 |
__PACKAGE__->belongs_to( |
| 223 |
"itemnumber", |
| 224 |
"Koha::Schema::Result::Item", |
| 225 |
{ itemnumber => "itemnumber" }, |
| 226 |
{ |
| 227 |
is_deferrable => 1, |
| 228 |
join_type => "LEFT", |
| 229 |
on_delete => "SET NULL", |
| 230 |
on_update => "SET NULL", |
| 231 |
}, |
| 232 |
); |
| 233 |
|
| 234 |
=head2 itemtype |
| 235 |
|
| 236 |
Type: belongs_to |
| 237 |
|
| 238 |
Related object: L<Koha::Schema::Result::Itemtype> |
| 239 |
|
| 240 |
=cut |
| 241 |
|
| 242 |
__PACKAGE__->belongs_to( |
| 243 |
"itemtype", |
| 244 |
"Koha::Schema::Result::Itemtype", |
| 245 |
{ itemtype => "itemtype" }, |
| 246 |
{ |
| 247 |
is_deferrable => 1, |
| 248 |
join_type => "LEFT", |
| 249 |
on_delete => "SET NULL", |
| 250 |
on_update => "SET NULL", |
| 251 |
}, |
| 252 |
); |
| 253 |
|
| 254 |
|
| 255 |
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-10-25 23:50:29 |
| 256 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:afOsAbeAPcdHR79LfYH9Hg |
| 257 |
|
| 258 |
|
| 259 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
| 260 |
1; |