Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / PrintersProfile.pm
blobb02f027250c9fe9cb23e9dd225e1da24540f569c
1 use utf8;
2 package Koha::Schema::Result::PrintersProfile;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::PrintersProfile
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<printers_profile>
20 =cut
22 __PACKAGE__->table("printers_profile");
24 =head1 ACCESSORS
26 =head2 profile_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 printer_name
34 data_type: 'varchar'
35 default_value: 'Default Printer'
36 is_nullable: 0
37 size: 40
39 =head2 template_id
41 data_type: 'integer'
42 default_value: 0
43 is_nullable: 0
45 =head2 paper_bin
47 data_type: 'varchar'
48 default_value: 'Bypass'
49 is_nullable: 0
50 size: 20
52 =head2 offset_horz
54 data_type: 'float'
55 default_value: 0
56 is_nullable: 0
58 =head2 offset_vert
60 data_type: 'float'
61 default_value: 0
62 is_nullable: 0
64 =head2 creep_horz
66 data_type: 'float'
67 default_value: 0
68 is_nullable: 0
70 =head2 creep_vert
72 data_type: 'float'
73 default_value: 0
74 is_nullable: 0
76 =head2 units
78 data_type: 'char'
79 default_value: 'POINT'
80 is_nullable: 0
81 size: 20
83 =head2 creator
85 data_type: 'char'
86 default_value: 'Labels'
87 is_nullable: 0
88 size: 15
90 =cut
92 __PACKAGE__->add_columns(
93 "profile_id",
94 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
95 "printer_name",
97 data_type => "varchar",
98 default_value => "Default Printer",
99 is_nullable => 0,
100 size => 40,
102 "template_id",
103 { data_type => "integer", default_value => 0, is_nullable => 0 },
104 "paper_bin",
106 data_type => "varchar",
107 default_value => "Bypass",
108 is_nullable => 0,
109 size => 20,
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",
123 data_type => "char",
124 default_value => "Labels",
125 is_nullable => 0,
126 size => 15,
130 =head1 PRIMARY KEY
132 =over 4
134 =item * L</profile_id>
136 =back
138 =cut
140 __PACKAGE__->set_primary_key("profile_id");
142 =head1 UNIQUE CONSTRAINTS
144 =head2 C<printername>
146 =over 4
148 =item * L</printer_name>
150 =item * L</template_id>
152 =item * L</paper_bin>
154 =item * L</creator>
156 =back
158 =cut
160 __PACKAGE__->add_unique_constraint(
161 "printername",
162 ["printer_name", "template_id", "paper_bin", "creator"],
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
170 # You can replace this text with custom content, and it will be preserved on regeneration