|
Line 0
Link Here
|
| 0 |
- |
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::Z3950serversBranch; |
| 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::Z3950serversBranch |
| 10 |
|
| 11 |
=cut |
| 12 |
|
| 13 |
use strict; |
| 14 |
use warnings; |
| 15 |
|
| 16 |
use base 'DBIx::Class::Core'; |
| 17 |
|
| 18 |
=head1 TABLE: C<z3950servers_branches> |
| 19 |
|
| 20 |
=cut |
| 21 |
|
| 22 |
__PACKAGE__->table("z3950servers_branches"); |
| 23 |
|
| 24 |
=head1 ACCESSORS |
| 25 |
|
| 26 |
=head2 server_id |
| 27 |
|
| 28 |
data_type: 'integer' |
| 29 |
is_foreign_key: 1 |
| 30 |
is_nullable: 0 |
| 31 |
|
| 32 |
z3950server id |
| 33 |
|
| 34 |
=head2 branchcode |
| 35 |
|
| 36 |
data_type: 'varchar' |
| 37 |
is_foreign_key: 1 |
| 38 |
is_nullable: 0 |
| 39 |
size: 10 |
| 40 |
|
| 41 |
branch code |
| 42 |
|
| 43 |
=cut |
| 44 |
|
| 45 |
__PACKAGE__->add_columns( |
| 46 |
"server_id", |
| 47 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 48 |
"branchcode", |
| 49 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 }, |
| 50 |
); |
| 51 |
|
| 52 |
=head1 PRIMARY KEY |
| 53 |
|
| 54 |
=over 4 |
| 55 |
|
| 56 |
=item * L</server_id> |
| 57 |
|
| 58 |
=item * L</branchcode> |
| 59 |
|
| 60 |
=back |
| 61 |
|
| 62 |
=cut |
| 63 |
|
| 64 |
__PACKAGE__->set_primary_key("server_id", "branchcode"); |
| 65 |
|
| 66 |
=head1 RELATIONS |
| 67 |
|
| 68 |
=head2 branchcode |
| 69 |
|
| 70 |
Type: belongs_to |
| 71 |
|
| 72 |
Related object: L<Koha::Schema::Result::Branch> |
| 73 |
|
| 74 |
=cut |
| 75 |
|
| 76 |
__PACKAGE__->belongs_to( |
| 77 |
"branchcode", |
| 78 |
"Koha::Schema::Result::Branch", |
| 79 |
{ branchcode => "branchcode" }, |
| 80 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
| 81 |
); |
| 82 |
|
| 83 |
=head2 server |
| 84 |
|
| 85 |
Type: belongs_to |
| 86 |
|
| 87 |
Related object: L<Koha::Schema::Result::Z3950server> |
| 88 |
|
| 89 |
=cut |
| 90 |
|
| 91 |
__PACKAGE__->belongs_to( |
| 92 |
"server", |
| 93 |
"Koha::Schema::Result::Z3950server", |
| 94 |
{ id => "server_id" }, |
| 95 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
| 96 |
); |
| 97 |
|
| 98 |
|
| 99 |
# Created by DBIx::Class::Schema::Loader v0.07051 @ 2025-10-29 12:31:04 |
| 100 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cmUYig/uXaULWQQXqDFGrg |
| 101 |
|
| 102 |
|
| 103 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
| 104 |
1; |