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