Bug 24474: (QA follow-up) Fix failing test
[koha.git] / Koha / Schema / Result / Serial.pm
blob58aed2c01200cb323102a22000240283d31dd5bd
1 use utf8;
2 package Koha::Schema::Result::Serial;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Serial
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<serial>
20 =cut
22 __PACKAGE__->table("serial");
24 =head1 ACCESSORS
26 =head2 serialid
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 biblionumber
34 data_type: 'varchar'
35 default_value: (empty string)
36 is_nullable: 0
37 size: 100
39 =head2 subscriptionid
41 data_type: 'varchar'
42 default_value: (empty string)
43 is_nullable: 0
44 size: 100
46 =head2 serialseq
48 data_type: 'varchar'
49 default_value: (empty string)
50 is_nullable: 0
51 size: 100
53 =head2 serialseq_x
55 data_type: 'varchar'
56 is_nullable: 1
57 size: 100
59 =head2 serialseq_y
61 data_type: 'varchar'
62 is_nullable: 1
63 size: 100
65 =head2 serialseq_z
67 data_type: 'varchar'
68 is_nullable: 1
69 size: 100
71 =head2 status
73 data_type: 'tinyint'
74 default_value: 0
75 is_nullable: 0
77 =head2 planneddate
79 data_type: 'date'
80 datetime_undef_if_invalid: 1
81 is_nullable: 1
83 =head2 notes
85 data_type: 'mediumtext'
86 is_nullable: 1
88 =head2 publisheddate
90 data_type: 'date'
91 datetime_undef_if_invalid: 1
92 is_nullable: 1
94 =head2 publisheddatetext
96 data_type: 'varchar'
97 is_nullable: 1
98 size: 100
100 =head2 claimdate
102 data_type: 'date'
103 datetime_undef_if_invalid: 1
104 is_nullable: 1
106 =head2 claims_count
108 data_type: 'integer'
109 default_value: 0
110 is_nullable: 1
112 =head2 routingnotes
114 data_type: 'mediumtext'
115 is_nullable: 1
117 =cut
119 __PACKAGE__->add_columns(
120 "serialid",
121 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
122 "biblionumber",
123 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
124 "subscriptionid",
125 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
126 "serialseq",
127 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
128 "serialseq_x",
129 { data_type => "varchar", is_nullable => 1, size => 100 },
130 "serialseq_y",
131 { data_type => "varchar", is_nullable => 1, size => 100 },
132 "serialseq_z",
133 { data_type => "varchar", is_nullable => 1, size => 100 },
134 "status",
135 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
136 "planneddate",
137 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
138 "notes",
139 { data_type => "mediumtext", is_nullable => 1 },
140 "publisheddate",
141 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
142 "publisheddatetext",
143 { data_type => "varchar", is_nullable => 1, size => 100 },
144 "claimdate",
145 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
146 "claims_count",
147 { data_type => "integer", default_value => 0, is_nullable => 1 },
148 "routingnotes",
149 { data_type => "mediumtext", is_nullable => 1 },
152 =head1 PRIMARY KEY
154 =over 4
156 =item * L</serialid>
158 =back
160 =cut
162 __PACKAGE__->set_primary_key("serialid");
164 =head1 RELATIONS
166 =head2 serialitems
168 Type: has_many
170 Related object: L<Koha::Schema::Result::Serialitem>
172 =cut
174 __PACKAGE__->has_many(
175 "serialitems",
176 "Koha::Schema::Result::Serialitem",
177 { "foreign.serialid" => "self.serialid" },
178 { cascade_copy => 0, cascade_delete => 0 },
182 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
183 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:sRygXoIOnqpdk0lqVMcBdA
186 # You can replace this text with custom code or comments, and it will be preserved on regeneration