|
Lines 1-103
Link Here
|
| 1 |
use utf8; |
|
|
| 2 |
package Koha::Schema::Result::MarcOverlayRulesModule; |
| 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::MarcOverlayRulesModule |
| 10 |
|
| 11 |
=cut |
| 12 |
|
| 13 |
use strict; |
| 14 |
use warnings; |
| 15 |
|
| 16 |
use base 'DBIx::Class::Core'; |
| 17 |
|
| 18 |
=head1 TABLE: C<marc_overlay_rules_modules> |
| 19 |
|
| 20 |
=cut |
| 21 |
|
| 22 |
__PACKAGE__->table("marc_overlay_rules_modules"); |
| 23 |
|
| 24 |
=head1 ACCESSORS |
| 25 |
|
| 26 |
=head2 name |
| 27 |
|
| 28 |
data_type: 'varchar' |
| 29 |
is_nullable: 0 |
| 30 |
size: 127 |
| 31 |
|
| 32 |
=head2 description |
| 33 |
|
| 34 |
data_type: 'varchar' |
| 35 |
is_nullable: 1 |
| 36 |
size: 255 |
| 37 |
|
| 38 |
=head2 specificity |
| 39 |
|
| 40 |
data_type: 'integer' |
| 41 |
is_nullable: 0 |
| 42 |
|
| 43 |
=cut |
| 44 |
|
| 45 |
__PACKAGE__->add_columns( |
| 46 |
"name", |
| 47 |
{ data_type => "varchar", is_nullable => 0, size => 127 }, |
| 48 |
"description", |
| 49 |
{ data_type => "varchar", is_nullable => 1, size => 255 }, |
| 50 |
"specificity", |
| 51 |
{ data_type => "integer", is_nullable => 0 }, |
| 52 |
); |
| 53 |
|
| 54 |
=head1 PRIMARY KEY |
| 55 |
|
| 56 |
=over 4 |
| 57 |
|
| 58 |
=item * L</name> |
| 59 |
|
| 60 |
=back |
| 61 |
|
| 62 |
=cut |
| 63 |
|
| 64 |
__PACKAGE__->set_primary_key("name"); |
| 65 |
|
| 66 |
=head1 UNIQUE CONSTRAINTS |
| 67 |
|
| 68 |
=head2 C<specificity> |
| 69 |
|
| 70 |
=over 4 |
| 71 |
|
| 72 |
=item * L</specificity> |
| 73 |
|
| 74 |
=back |
| 75 |
|
| 76 |
=cut |
| 77 |
|
| 78 |
__PACKAGE__->add_unique_constraint("specificity", ["specificity"]); |
| 79 |
|
| 80 |
=head1 RELATIONS |
| 81 |
|
| 82 |
=head2 marc_overlay_rules |
| 83 |
|
| 84 |
Type: has_many |
| 85 |
|
| 86 |
Related object: L<Koha::Schema::Result::MarcOverlayRule> |
| 87 |
|
| 88 |
=cut |
| 89 |
|
| 90 |
__PACKAGE__->has_many( |
| 91 |
"marc_overlay_rules", |
| 92 |
"Koha::Schema::Result::MarcOverlayRule", |
| 93 |
{ "foreign.module" => "self.name" }, |
| 94 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 95 |
); |
| 96 |
|
| 97 |
|
| 98 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-03-26 17:50:29 |
| 99 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:NcP7xFRa7qXyck6wIQg/YQ |
| 100 |
|
| 101 |
|
| 102 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
| 103 |
1; |
| 104 |
- |