Bug 10855: (RM followup) DBIx update
[koha.git] / Koha / Schema / Result / PrintersProfile.pm
1 use utf8;
2 package Koha::Schema::Result::PrintersProfile;
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::PrintersProfile
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<printers_profile>
19
20 =cut
21
22 __PACKAGE__->table("printers_profile");
23
24 =head1 ACCESSORS
25
26 =head2 profile_id
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 =head2 printer_name
33
34   data_type: 'varchar'
35   default_value: 'Default Printer'
36   is_nullable: 0
37   size: 40
38
39 =head2 template_id
40
41   data_type: 'integer'
42   default_value: 0
43   is_nullable: 0
44
45 =head2 paper_bin
46
47   data_type: 'varchar'
48   default_value: 'Bypass'
49   is_nullable: 0
50   size: 20
51
52 =head2 offset_horz
53
54   data_type: 'float'
55   default_value: 0
56   is_nullable: 0
57
58 =head2 offset_vert
59
60   data_type: 'float'
61   default_value: 0
62   is_nullable: 0
63
64 =head2 creep_horz
65
66   data_type: 'float'
67   default_value: 0
68   is_nullable: 0
69
70 =head2 creep_vert
71
72   data_type: 'float'
73   default_value: 0
74   is_nullable: 0
75
76 =head2 units
77
78   data_type: 'char'
79   default_value: 'POINT'
80   is_nullable: 0
81   size: 20
82
83 =head2 creator
84
85   data_type: 'char'
86   default_value: 'Labels'
87   is_nullable: 0
88   size: 15
89
90 =cut
91
92 __PACKAGE__->add_columns(
93   "profile_id",
94   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
95   "printer_name",
96   {
97     data_type => "varchar",
98     default_value => "Default Printer",
99     is_nullable => 0,
100     size => 40,
101   },
102   "template_id",
103   { data_type => "integer", default_value => 0, is_nullable => 0 },
104   "paper_bin",
105   {
106     data_type => "varchar",
107     default_value => "Bypass",
108     is_nullable => 0,
109     size => 20,
110   },
111   "offset_horz",
112   { data_type => "float", default_value => 0, is_nullable => 0 },
113   "offset_vert",
114   { data_type => "float", default_value => 0, is_nullable => 0 },
115   "creep_horz",
116   { data_type => "float", default_value => 0, is_nullable => 0 },
117   "creep_vert",
118   { data_type => "float", default_value => 0, is_nullable => 0 },
119   "units",
120   { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
121   "creator",
122   {
123     data_type => "char",
124     default_value => "Labels",
125     is_nullable => 0,
126     size => 15,
127   },
128 );
129
130 =head1 PRIMARY KEY
131
132 =over 4
133
134 =item * L</profile_id>
135
136 =back
137
138 =cut
139
140 __PACKAGE__->set_primary_key("profile_id");
141
142 =head1 UNIQUE CONSTRAINTS
143
144 =head2 C<printername>
145
146 =over 4
147
148 =item * L</printer_name>
149
150 =item * L</template_id>
151
152 =item * L</paper_bin>
153
154 =item * L</creator>
155
156 =back
157
158 =cut
159
160 __PACKAGE__->add_unique_constraint(
161   "printername",
162   ["printer_name", "template_id", "paper_bin", "creator"],
163 );
164
165
166 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
167 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GJid4zfVF0MmMnUn3xyVbA
168
169
170 # You can replace this text with custom content, and it will be preserved on regeneration
171 1;