]> git.koha-community.org Git - koha.git/blob - Koha/Schema/Result/Serial.pm
Bug 11351 - Add support for SIP2 media types
[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 routingnotes
83
84   data_type: 'text'
85   is_nullable: 1
86
87 =cut
88
89 __PACKAGE__->add_columns(
90   "serialid",
91   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
92   "biblionumber",
93   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
94   "subscriptionid",
95   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
96   "serialseq",
97   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
98   "status",
99   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
100   "planneddate",
101   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
102   "notes",
103   { data_type => "text", is_nullable => 1 },
104   "publisheddate",
105   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
106   "claimdate",
107   { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
108   "routingnotes",
109   { data_type => "text", is_nullable => 1 },
110 );
111
112 =head1 PRIMARY KEY
113
114 =over 4
115
116 =item * L</serialid>
117
118 =back
119
120 =cut
121
122 __PACKAGE__->set_primary_key("serialid");
123
124 =head1 RELATIONS
125
126 =head2 serialitems
127
128 Type: has_many
129
130 Related object: L<Koha::Schema::Result::Serialitem>
131
132 =cut
133
134 __PACKAGE__->has_many(
135   "serialitems",
136   "Koha::Schema::Result::Serialitem",
137   { "foreign.serialid" => "self.serialid" },
138   { cascade_copy => 0, cascade_delete => 0 },
139 );
140
141
142 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xloe1BJrVD7sU07AnA4P2g
144
145
146 # You can replace this text with custom content, and it will be preserved on regeneration
147 1;