Bug 8686: Raise required version of URI::Escape to 3.31
[koha.git] / Koha / Schema / Result / Serial.pm
blobdb07ca1c6c93f533f925129b61f7f848c8bc332c
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 status
55 data_type: 'tinyint'
56 default_value: 0
57 is_nullable: 0
59 =head2 planneddate
61 data_type: 'date'
62 datetime_undef_if_invalid: 1
63 is_nullable: 1
65 =head2 notes
67 data_type: 'text'
68 is_nullable: 1
70 =head2 publisheddate
72 data_type: 'date'
73 datetime_undef_if_invalid: 1
74 is_nullable: 1
76 =head2 claimdate
78 data_type: 'date'
79 datetime_undef_if_invalid: 1
80 is_nullable: 1
82 =head2 claims_count
84 data_type: 'integer'
85 default_value: 0
86 is_nullable: 1
88 =head2 routingnotes
90 data_type: 'text'
91 is_nullable: 1
93 =cut
95 __PACKAGE__->add_columns(
96 "serialid",
97 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
98 "biblionumber",
99 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
100 "subscriptionid",
101 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
102 "serialseq",
103 { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
104 "status",
105 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
106 "planneddate",
107 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
108 "notes",
109 { data_type => "text", is_nullable => 1 },
110 "publisheddate",
111 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
112 "claimdate",
113 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
114 "claims_count",
115 { data_type => "integer", default_value => 0, is_nullable => 1 },
116 "routingnotes",
117 { data_type => "text", is_nullable => 1 },
120 =head1 PRIMARY KEY
122 =over 4
124 =item * L</serialid>
126 =back
128 =cut
130 __PACKAGE__->set_primary_key("serialid");
132 =head1 RELATIONS
134 =head2 serialitems
136 Type: has_many
138 Related object: L<Koha::Schema::Result::Serialitem>
140 =cut
142 __PACKAGE__->has_many(
143 "serialitems",
144 "Koha::Schema::Result::Serialitem",
145 { "foreign.serialid" => "self.serialid" },
146 { cascade_copy => 0, cascade_delete => 0 },
150 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-10-28 10:10:55
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xscBtY2sJRoXXw7hVPTqCQ
154 # You can replace this text with custom content, and it will be preserved on regeneration