Line 0
Link Here
|
|
|
1 |
use utf8; |
2 |
package Koha::Schema::Result::MarcOverlayRule; |
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::MarcOverlayRule |
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> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("marc_overlay_rules"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
=head2 tag |
33 |
|
34 |
data_type: 'varchar' |
35 |
is_nullable: 0 |
36 |
size: 255 |
37 |
|
38 |
=head2 module |
39 |
|
40 |
data_type: 'varchar' |
41 |
is_foreign_key: 1 |
42 |
is_nullable: 0 |
43 |
size: 127 |
44 |
|
45 |
=head2 filter |
46 |
|
47 |
data_type: 'varchar' |
48 |
is_nullable: 0 |
49 |
size: 255 |
50 |
|
51 |
=head2 add |
52 |
|
53 |
data_type: 'tinyint' |
54 |
default_value: 0 |
55 |
is_nullable: 0 |
56 |
|
57 |
=head2 append |
58 |
|
59 |
data_type: 'tinyint' |
60 |
default_value: 0 |
61 |
is_nullable: 0 |
62 |
|
63 |
=head2 remove |
64 |
|
65 |
data_type: 'tinyint' |
66 |
default_value: 0 |
67 |
is_nullable: 0 |
68 |
|
69 |
=head2 delete |
70 |
|
71 |
accessor: undef |
72 |
data_type: 'tinyint' |
73 |
default_value: 0 |
74 |
is_nullable: 0 |
75 |
|
76 |
=cut |
77 |
|
78 |
__PACKAGE__->add_columns( |
79 |
"id", |
80 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
81 |
"tag", |
82 |
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
83 |
"module", |
84 |
{ data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 127 }, |
85 |
"filter", |
86 |
{ data_type => "varchar", is_nullable => 0, size => 255 }, |
87 |
"add", |
88 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
89 |
"append", |
90 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
91 |
"remove", |
92 |
{ data_type => "tinyint", default_value => 0, is_nullable => 0 }, |
93 |
"delete", |
94 |
{ |
95 |
accessor => undef, |
96 |
data_type => "tinyint", |
97 |
default_value => 0, |
98 |
is_nullable => 0, |
99 |
}, |
100 |
); |
101 |
|
102 |
=head1 PRIMARY KEY |
103 |
|
104 |
=over 4 |
105 |
|
106 |
=item * L</id> |
107 |
|
108 |
=back |
109 |
|
110 |
=cut |
111 |
|
112 |
__PACKAGE__->set_primary_key("id"); |
113 |
|
114 |
=head1 RELATIONS |
115 |
|
116 |
=head2 module |
117 |
|
118 |
Type: belongs_to |
119 |
|
120 |
Related object: L<Koha::Schema::Result::MarcOverlayRulesModule> |
121 |
|
122 |
=cut |
123 |
|
124 |
__PACKAGE__->belongs_to( |
125 |
"module", |
126 |
"Koha::Schema::Result::MarcOverlayRulesModule", |
127 |
{ name => "module" }, |
128 |
{ is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" }, |
129 |
); |
130 |
|
131 |
|
132 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-03-26 17:56:31 |
133 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zSQHbrkBihPcEkzjW1M2bg |
134 |
|
135 |
__PACKAGE__->add_columns( |
136 |
'+add' => { is_boolean => 1 }, |
137 |
'+append' => { is_boolean => 1 }, |
138 |
'+remove' => { is_boolean => 1 }, |
139 |
'+delete' => { is_boolean => 1 } |
140 |
); |
141 |
|
142 |
1; |