58aed2c01200cb323102a22000240283d31dd5bd
[koha-equinox.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 =head2 biblionumber
33
34   data_type: 'varchar'
35   default_value: (empty string)
36   is_nullable: 0
37   size: 100
38
39 =head2 subscriptionid
40
41   data_type: 'varchar'
42   default_value: (empty string)
43   is_nullable: 0
44   size: 100
45
46 =head2 serialseq
47
48   data_type: 'varchar'
49   default_value: (empty string)
50   is_nullable: 0
51   size: 100
52
53 =head2 serialseq_x
54
55   data_type: 'varchar'
56   is_nullable: 1
57   size: 100
58
59 =head2 serialseq_y
60
61   data_type: 'varchar'
62   is_nullable: 1
63   size: 100
64
65 =head2 serialseq_z
66
67   data_type: 'varchar'
68   is_nullable: 1
69   size: 100
70
71 =head2 status
72
73   data_type: 'tinyint'
74   default_value: 0
75   is_nullable: 0
76
77 =head2 planneddate
78
79   data_type: 'date'
80   datetime_undef_if_invalid: 1
81   is_nullable: 1
82
83 =head2 notes
84
85   data_type: 'mediumtext'
86   is_nullable: 1
87
88 =head2 publisheddate
89
90   data_type: 'date'
91   datetime_undef_if_invalid: 1
92   is_nullable: 1
93
94 =head2 publisheddatetext
95
96   data_type: 'varchar'
97   is_nullable: 1
98   size: 100
99
100 =head2 claimdate
101
102   data_type: 'date'
103   datetime_undef_if_invalid: 1
104   is_nullable: 1
105
106 =head2 claims_count
107
108   data_type: 'integer'
109   default_value: 0
110   is_nullable: 1
111
112 =head2 routingnotes
113
114   data_type: 'mediumtext'
115   is_nullable: 1
116
117 =cut
118
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 },
150 );
151
152 =head1 PRIMARY KEY
153
154 =over 4
155
156 =item * L</serialid>
157
158 =back
159
160 =cut
161
162 __PACKAGE__->set_primary_key("serialid");
163
164 =head1 RELATIONS
165
166 =head2 serialitems
167
168 Type: has_many
169
170 Related object: L<Koha::Schema::Result::Serialitem>
171
172 =cut
173
174 __PACKAGE__->has_many(
175   "serialitems",
176   "Koha::Schema::Result::Serialitem",
177   { "foreign.serialid" => "self.serialid" },
178   { cascade_copy => 0, cascade_delete => 0 },
179 );
180
181
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
184
185
186 # You can replace this text with custom code or comments, and it will be preserved on regeneration
187 1;