Bug 8798: DBIx::Class base classes for all Koha tables
[koha.git] / Koha / Schema / Result / PrintersProfile.pm
1 package Koha::Schema::Result::PrintersProfile;
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::PrintersProfile
15
16 =cut
17
18 __PACKAGE__->table("printers_profile");
19
20 =head1 ACCESSORS
21
22 =head2 profile_id
23
24   data_type: 'integer'
25   is_auto_increment: 1
26   is_nullable: 0
27
28 =head2 printer_name
29
30   data_type: 'varchar'
31   default_value: 'Default Printer'
32   is_nullable: 0
33   size: 40
34
35 =head2 template_id
36
37   data_type: 'integer'
38   default_value: 0
39   is_nullable: 0
40
41 =head2 paper_bin
42
43   data_type: 'varchar'
44   default_value: 'Bypass'
45   is_nullable: 0
46   size: 20
47
48 =head2 offset_horz
49
50   data_type: 'float'
51   default_value: 0
52   is_nullable: 0
53
54 =head2 offset_vert
55
56   data_type: 'float'
57   default_value: 0
58   is_nullable: 0
59
60 =head2 creep_horz
61
62   data_type: 'float'
63   default_value: 0
64   is_nullable: 0
65
66 =head2 creep_vert
67
68   data_type: 'float'
69   default_value: 0
70   is_nullable: 0
71
72 =head2 units
73
74   data_type: 'char'
75   default_value: 'POINT'
76   is_nullable: 0
77   size: 20
78
79 =head2 creator
80
81   data_type: 'char'
82   default_value: 'Labels'
83   is_nullable: 0
84   size: 15
85
86 =cut
87
88 __PACKAGE__->add_columns(
89   "profile_id",
90   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
91   "printer_name",
92   {
93     data_type => "varchar",
94     default_value => "Default Printer",
95     is_nullable => 0,
96     size => 40,
97   },
98   "template_id",
99   { data_type => "integer", default_value => 0, is_nullable => 0 },
100   "paper_bin",
101   {
102     data_type => "varchar",
103     default_value => "Bypass",
104     is_nullable => 0,
105     size => 20,
106   },
107   "offset_horz",
108   { data_type => "float", default_value => 0, is_nullable => 0 },
109   "offset_vert",
110   { data_type => "float", default_value => 0, is_nullable => 0 },
111   "creep_horz",
112   { data_type => "float", default_value => 0, is_nullable => 0 },
113   "creep_vert",
114   { data_type => "float", default_value => 0, is_nullable => 0 },
115   "units",
116   { data_type => "char", default_value => "POINT", is_nullable => 0, size => 20 },
117   "creator",
118   {
119     data_type => "char",
120     default_value => "Labels",
121     is_nullable => 0,
122     size => 15,
123   },
124 );
125 __PACKAGE__->set_primary_key("profile_id");
126 __PACKAGE__->add_unique_constraint(
127   "printername",
128   ["printer_name", "template_id", "paper_bin", "creator"],
129 );
130
131
132 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
133 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1hyMy9lC23Te5l2gW++DVA
134
135
136 # You can replace this text with custom content, and it will be preserved on regeneration
137 1;