b184e07ceb35a1474bd0fc0278945484acf1b873
[koha.git] / Koha / Schema / Result / Serial.pm
1 package Koha::Schema::Result::Serial;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::Serial
15
16 =cut
17
18 __PACKAGE__->table("serial");
19
20 =head1 ACCESSORS
21
22 =head2 serialid
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 biblionumber
29
30   data_type: 'varchar'
31   default_value: (empty string)
32   is_nullable: 0
33   size: 100
34
35 =head2 subscriptionid
36
37   data_type: 'varchar'
38   default_value: (empty string)
39   is_nullable: 0
40   size: 100
41
42 =head2 serialseq
43
44   data_type: 'varchar'
45   default_value: (empty string)
46   is_nullable: 0
47   size: 100
48
49 =head2 status
50
51   data_type: 'tinyint'
52   default_value: 0
53   is_nullable: 0
54
55 =head2 planneddate
56
57   data_type: 'date'
58   is_nullable: 1
59
60 =head2 notes
61
62   data_type: 'text'
63   is_nullable: 1
64
65 =head2 publisheddate
66
67   data_type: 'date'
68   is_nullable: 1
69
70 =head2 itemnumber
71
72   data_type: 'text'
73   is_nullable: 1
74
75 =head2 claimdate
76
77   data_type: 'date'
78   is_nullable: 1
79
80 =head2 routingnotes
81
82   data_type: 'text'
83   is_nullable: 1
84
85 =cut
86
87 __PACKAGE__->add_columns(
88   "serialid",
89   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
90   "biblionumber",
91   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
92   "subscriptionid",
93   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
94   "serialseq",
95   { data_type => "varchar", default_value => "", is_nullable => 0, size => 100 },
96   "status",
97   { data_type => "tinyint", default_value => 0, is_nullable => 0 },
98   "planneddate",
99   { data_type => "date", is_nullable => 1 },
100   "notes",
101   { data_type => "text", is_nullable => 1 },
102   "publisheddate",
103   { data_type => "date", is_nullable => 1 },
104   "itemnumber",
105   { data_type => "text", is_nullable => 1 },
106   "claimdate",
107   { data_type => "date", is_nullable => 1 },
108   "routingnotes",
109   { data_type => "text", is_nullable => 1 },
110 );
111 __PACKAGE__->set_primary_key("serialid");
112
113 =head1 RELATIONS
114
115 =head2 serialitems
116
117 Type: has_many
118
119 Related object: L<Koha::Schema::Result::Serialitem>
120
121 =cut
122
123 __PACKAGE__->has_many(
124   "serialitems",
125   "Koha::Schema::Result::Serialitem",
126   { "foreign.serialid" => "self.serialid" },
127   { cascade_copy => 0, cascade_delete => 0 },
128 );
129
130
131 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
132 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PqzibMlED9bg0uOONSBnmg
133
134
135 # You can replace this text with custom content, and it will be preserved on regeneration
136 1;