Bug 32257: Label for patron attributes misaligned
[koha-ffzg.git] / Koha / Schema / Result / ProblemReport.pm
1 use utf8;
2 package Koha::Schema::Result::ProblemReport;
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::ProblemReport
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<problem_reports>
19
20 =cut
21
22 __PACKAGE__->table("problem_reports");
23
24 =head1 ACCESSORS
25
26 =head2 reportid
27
28   data_type: 'integer'
29   is_auto_increment: 1
30   is_nullable: 0
31
32 unique identifier assigned by Koha
33
34 =head2 title
35
36   data_type: 'varchar'
37   default_value: (empty string)
38   is_nullable: 0
39   size: 40
40
41 report subject line
42
43 =head2 content
44
45   data_type: 'text'
46   is_nullable: 0
47
48 report message content
49
50 =head2 borrowernumber
51
52   data_type: 'integer'
53   default_value: 0
54   is_foreign_key: 1
55   is_nullable: 0
56
57 the user who created the problem report
58
59 =head2 branchcode
60
61   data_type: 'varchar'
62   default_value: (empty string)
63   is_foreign_key: 1
64   is_nullable: 0
65   size: 10
66
67 borrower's branch
68
69 =head2 username
70
71   data_type: 'varchar'
72   is_nullable: 1
73   size: 75
74
75 OPAC username
76
77 =head2 problempage
78
79   data_type: 'text'
80   is_nullable: 1
81
82 page the user triggered the problem report form from
83
84 =head2 recipient
85
86   data_type: 'enum'
87   default_value: 'library'
88   extra: {list => ["admin","library"]}
89   is_nullable: 0
90
91 the 'to-address' of the problem report
92
93 =head2 created_on
94
95   data_type: 'timestamp'
96   datetime_undef_if_invalid: 1
97   default_value: current_timestamp
98   is_nullable: 0
99
100 timestamp of report submission
101
102 =head2 status
103
104   data_type: 'varchar'
105   default_value: 'New'
106   is_nullable: 0
107   size: 6
108
109 status of the report. New, Viewed, Closed
110
111 =cut
112
113 __PACKAGE__->add_columns(
114   "reportid",
115   { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
116   "title",
117   { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
118   "content",
119   { data_type => "text", is_nullable => 0 },
120   "borrowernumber",
121   {
122     data_type      => "integer",
123     default_value  => 0,
124     is_foreign_key => 1,
125     is_nullable    => 0,
126   },
127   "branchcode",
128   {
129     data_type => "varchar",
130     default_value => "",
131     is_foreign_key => 1,
132     is_nullable => 0,
133     size => 10,
134   },
135   "username",
136   { data_type => "varchar", is_nullable => 1, size => 75 },
137   "problempage",
138   { data_type => "text", is_nullable => 1 },
139   "recipient",
140   {
141     data_type => "enum",
142     default_value => "library",
143     extra => { list => ["admin", "library"] },
144     is_nullable => 0,
145   },
146   "created_on",
147   {
148     data_type => "timestamp",
149     datetime_undef_if_invalid => 1,
150     default_value => \"current_timestamp",
151     is_nullable => 0,
152   },
153   "status",
154   { data_type => "varchar", default_value => "New", is_nullable => 0, size => 6 },
155 );
156
157 =head1 PRIMARY KEY
158
159 =over 4
160
161 =item * L</reportid>
162
163 =back
164
165 =cut
166
167 __PACKAGE__->set_primary_key("reportid");
168
169 =head1 RELATIONS
170
171 =head2 borrowernumber
172
173 Type: belongs_to
174
175 Related object: L<Koha::Schema::Result::Borrower>
176
177 =cut
178
179 __PACKAGE__->belongs_to(
180   "borrowernumber",
181   "Koha::Schema::Result::Borrower",
182   { borrowernumber => "borrowernumber" },
183   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
184 );
185
186 =head2 branchcode
187
188 Type: belongs_to
189
190 Related object: L<Koha::Schema::Result::Branch>
191
192 =cut
193
194 __PACKAGE__->belongs_to(
195   "branchcode",
196   "Koha::Schema::Result::Branch",
197   { branchcode => "branchcode" },
198   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
199 );
200
201
202 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-04-12 13:27:06
203 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YdCX1Hak6UwiJo1iBJqqzg
204
205
206 # You can replace this text with custom code or comments, and it will be preserved on regeneration
207 1;