Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / Serial.pm
1 use utf8;
2 package Koha::Schema::Result::Serial;
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::Serial
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<serial>
19
20 =cut
21
22 __PACKAGE__->table("serial");
23
24 =head1 ACCESSORS
25
26 =head2 serialid
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique key for the issue
33
34 =head2 biblionumber
35
36   data_type: 'integer'
37   is_foreign_key: 1
38   is_nullable: 0
39
40 foreign key for the biblio.biblionumber that this issue is attached to
41
42 =head2 subscriptionid
43
44   data_type: 'integer'
45   is_foreign_key: 1
46   is_nullable: 0
47
48 foreign key to the subscription.subscriptionid that this issue is part of
49
50 =head2 serialseq
51
52   data_type: 'varchar'
53   default_value: (empty string)
54   is_nullable: 0
55   size: 100
56
57 issue information (volume, number, etc)
58
59 =head2 serialseq_x
60
61   data_type: 'varchar'
62   is_nullable: 1
63   size: 100
64
65 first part of issue information
66
67 =head2 serialseq_y
68
69   data_type: 'varchar'
70   is_nullable: 1
71   size: 100
72
73 second part of issue information
74
75 =head2 serialseq_z
76
77   data_type: 'varchar'
78   is_nullable: 1
79   size: 100
80
81 third part of issue information
82
83 =head2 status
84
85   data_type: 'tinyint'
86   default_value: 0
87   is_nullable: 0
88
89 status code for this issue (see manual for full descriptions)
90
91 =head2 planneddate
92
93   data_type: 'date'
94   datetime_undef_if_invalid: 1
95   is_nullable: 1
96
97 date expected
98
99 =head2 notes
100
101   data_type: 'mediumtext'
102   is_nullable: 1
103
104 notes
105
106 =head2 publisheddate
107
108   data_type: 'date'
109   datetime_undef_if_invalid: 1
110   is_nullable: 1
111
112 date published
113
114 =head2 publisheddatetext
115
116   data_type: 'varchar'
117   is_nullable: 1
118   size: 100
119
120 date published (descriptive)
121
122 =head2 claimdate
123
124   data_type: 'date'
125   datetime_undef_if_invalid: 1
126   is_nullable: 1
127
128 date claimed
129
130 =head2 claims_count
131
132   data_type: 'integer'
133   default_value: 0
134   is_nullable: 1
135
136 number of claims made related to this issue
137
138 =head2 routingnotes
139
140   data_type: 'mediumtext'
141   is_nullable: 1
142
143 notes from the routing list
144
145 =cut
146
147 __PACKAGE__->add_columns(
148   "serialid",
149   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
150   "biblionumber",
151   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
152   "subscriptionid",
153   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
154   "serialseq",
155   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
156   "serialseq_x",
157   { data_type => "varchar", is_nullable => 1, size => 100 },
158   "serialseq_y",
159   { data_type => "varchar", is_nullable => 1, size => 100 },
160   "serialseq_z",
161   { data_type => "varchar", is_nullable => 1, size => 100 },
162   "status",
163   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
164   "planneddate",
165   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
166   "notes",
167   { data_type => "mediumtext", is_nullable => 1 },
168   "publisheddate",
169   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
170   "publisheddatetext",
171   { data_type => "varchar", is_nullable => 1, size => 100 },
172   "claimdate",
173   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
174   "claims_count",
175   { data_type => "integer", default_value => 0, is_nullable => 1 },
176   "routingnotes",
177   { data_type => "mediumtext", is_nullable => 1 },
178 );
179
180 =head1 PRIMARY KEY
181
182 =over 4
183
184 =item * L</serialid>
185
186 =back
187
188 =cut
189
190 __PACKAGE__->set_primary_key("serialid");
191
192 =head1 RELATIONS
193
194 =head2 biblionumber
195
196 Type: belongs_to
197
198 Related object: L<Koha::Schema::Result::Biblio>
199
200 =cut
201
202 __PACKAGE__->belongs_to(
203   "biblionumber",
204   "Koha::Schema::Result::Biblio",
205   { biblionumber => "biblionumber" },
206   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
207 );
208
209 =head2 serialitems
210
211 Type: has_many
212
213 Related object: L<Koha::Schema::Result::Serialitem>
214
215 =cut
216
217 __PACKAGE__->has_many(
218   "serialitems",
219   "Koha::Schema::Result::Serialitem",
220   { "foreign.serialid" => "self.serialid" },
221   { cascade_copy => 0, cascade_delete => 0 },
222 );
223
224 =head2 subscriptionid
225
226 Type: belongs_to
227
228 Related object: L<Koha::Schema::Result::Subscription>
229
230 =cut
231
232 __PACKAGE__->belongs_to(
233   "subscriptionid",
234   "Koha::Schema::Result::Subscription",
235   { subscriptionid => "subscriptionid" },
236   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
237 );
238
239
240 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
241 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SD7llCvCO+/67cXetzRKPQ
242
243
244 # You can replace this text with custom code or comments, and it will be preserved on regeneration
245 1;