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