Bug 14167: Add Koha::Logger based on Log4perl
[koha.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 status
54
55   data_type: 'tinyint'
56   default_value: 0
57   is_nullable: 0
58
59 =head2 planneddate
60
61   data_type: 'date'
62   datetime_undef_if_invalid: 1
63   is_nullable: 1
64
65 =head2 notes
66
67   data_type: 'text'
68   is_nullable: 1
69
70 =head2 publisheddate
71
72   data_type: 'date'
73   datetime_undef_if_invalid: 1
74   is_nullable: 1
75
76 =head2 claimdate
77
78   data_type: 'date'
79   datetime_undef_if_invalid: 1
80   is_nullable: 1
81
82 =head2 claims_count
83
84   data_type: 'integer'
85   default_value: 0
86   is_nullable: 1
87
88 =head2 routingnotes
89
90   data_type: 'text'
91   is_nullable: 1
92
93 =cut
94
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 },
118 );
119
120 =head1 PRIMARY KEY
121
122 =over 4
123
124 =item * L</serialid>
125
126 =back
127
128 =cut
129
130 __PACKAGE__->set_primary_key("serialid");
131
132 =head1 RELATIONS
133
134 =head2 serialitems
135
136 Type: has_many
137
138 Related object: L<Koha::Schema::Result::Serialitem>
139
140 =cut
141
142 __PACKAGE__->has_many(
143   "serialitems",
144   "Koha::Schema::Result::Serialitem",
145   { "foreign.serialid" => "self.serialid" },
146   { cascade_copy => 0, cascade_delete => 0 },
147 );
148
149
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
152
153
154 # You can replace this text with custom content, and it will be preserved on regeneration
155 1;