Bug 8798: (follow-up) update the DBIC schema class files
[koha.git] / Koha / Schema / Result / Itemtype.pm
1 use utf8;
2 package Koha::Schema::Result::Itemtype;
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::Itemtype
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<itemtypes>
19
20 =cut
21
22 __PACKAGE__->table("itemtypes");
23
24 =head1 ACCESSORS
25
26 =head2 itemtype
27
28   data_type: 'varchar'
29   default_value: (empty string)
30   is_nullable: 0
31   size: 10
32
33 =head2 description
34
35   data_type: 'mediumtext'
36   is_nullable: 1
37
38 =head2 rentalcharge
39
40   data_type: 'double precision'
41   is_nullable: 1
42   size: [16,4]
43
44 =head2 notforloan
45
46   data_type: 'smallint'
47   is_nullable: 1
48
49 =head2 imageurl
50
51   data_type: 'varchar'
52   is_nullable: 1
53   size: 200
54
55 =head2 summary
56
57   data_type: 'text'
58   is_nullable: 1
59
60 =head2 checkinmsg
61
62   data_type: 'varchar'
63   is_nullable: 1
64   size: 255
65
66 =head2 checkinmsgtype
67
68   data_type: 'char'
69   default_value: 'message'
70   is_nullable: 0
71   size: 16
72
73 =cut
74
75 __PACKAGE__->add_columns(
76   "itemtype",
77   { data_type => "varchar", default_value => "", is_nullable => 0, size => 10 },
78   "description",
79   { data_type => "mediumtext", is_nullable => 1 },
80   "rentalcharge",
81   { data_type => "double precision", is_nullable => 1, size => [16, 4] },
82   "notforloan",
83   { data_type => "smallint", is_nullable => 1 },
84   "imageurl",
85   { data_type => "varchar", is_nullable => 1, size => 200 },
86   "summary",
87   { data_type => "text", is_nullable => 1 },
88   "checkinmsg",
89   { data_type => "varchar", is_nullable => 1, size => 255 },
90   "checkinmsgtype",
91   {
92     data_type => "char",
93     default_value => "message",
94     is_nullable => 0,
95     size => 16,
96   },
97 );
98
99 =head1 PRIMARY KEY
100
101 =over 4
102
103 =item * L</itemtype>
104
105 =back
106
107 =cut
108
109 __PACKAGE__->set_primary_key("itemtype");
110
111 =head1 RELATIONS
112
113 =head2 branch_item_rules
114
115 Type: has_many
116
117 Related object: L<Koha::Schema::Result::BranchItemRule>
118
119 =cut
120
121 __PACKAGE__->has_many(
122   "branch_item_rules",
123   "Koha::Schema::Result::BranchItemRule",
124   { "foreign.itemtype" => "self.itemtype" },
125   { cascade_copy => 0, cascade_delete => 0 },
126 );
127
128 =head2 default_branch_item_rule
129
130 Type: might_have
131
132 Related object: L<Koha::Schema::Result::DefaultBranchItemRule>
133
134 =cut
135
136 __PACKAGE__->might_have(
137   "default_branch_item_rule",
138   "Koha::Schema::Result::DefaultBranchItemRule",
139   { "foreign.itemtype" => "self.itemtype" },
140   { cascade_copy => 0, cascade_delete => 0 },
141 );
142
143
144 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BmFEWUxi2Ha50Hv6nQhDKQ
146
147
148 # You can replace this text with custom content, and it will be preserved on regeneration
149 1;