Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / ProblemReport.pm
blob5df3c7a065c7c0af034cafd9eb590476015e79d1
1 use utf8;
2 package Koha::Schema::Result::ProblemReport;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::ProblemReport
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<problem_reports>
20 =cut
22 __PACKAGE__->table("problem_reports");
24 =head1 ACCESSORS
26 =head2 reportid
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 title
34 data_type: 'varchar'
35 default_value: (empty string)
36 is_nullable: 0
37 size: 40
39 =head2 content
41 data_type: 'varchar'
42 default_value: (empty string)
43 is_nullable: 0
44 size: 255
46 =head2 borrowernumber
48 data_type: 'integer'
49 default_value: 0
50 is_foreign_key: 1
51 is_nullable: 0
53 =head2 branchcode
55 data_type: 'varchar'
56 default_value: (empty string)
57 is_foreign_key: 1
58 is_nullable: 0
59 size: 10
61 =head2 username
63 data_type: 'varchar'
64 is_nullable: 1
65 size: 75
67 =head2 problempage
69 data_type: 'text'
70 is_nullable: 1
72 =head2 recipient
74 data_type: 'enum'
75 default_value: 'library'
76 extra: {list => ["admin","library"]}
77 is_nullable: 0
79 =head2 created_on
81 data_type: 'timestamp'
82 datetime_undef_if_invalid: 1
83 default_value: current_timestamp
84 is_nullable: 0
86 =head2 status
88 data_type: 'varchar'
89 default_value: 'New'
90 is_nullable: 0
91 size: 6
93 =cut
95 __PACKAGE__->add_columns(
96 "reportid",
97 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
98 "title",
99 { data_type => "varchar", default_value => "", is_nullable => 0, size => 40 },
100 "content",
101 { data_type => "varchar", default_value => "", is_nullable => 0, size => 255 },
102 "borrowernumber",
104 data_type => "integer",
105 default_value => 0,
106 is_foreign_key => 1,
107 is_nullable => 0,
109 "branchcode",
111 data_type => "varchar",
112 default_value => "",
113 is_foreign_key => 1,
114 is_nullable => 0,
115 size => 10,
117 "username",
118 { data_type => "varchar", is_nullable => 1, size => 75 },
119 "problempage",
120 { data_type => "text", is_nullable => 1 },
121 "recipient",
123 data_type => "enum",
124 default_value => "library",
125 extra => { list => ["admin", "library"] },
126 is_nullable => 0,
128 "created_on",
130 data_type => "timestamp",
131 datetime_undef_if_invalid => 1,
132 default_value => \"current_timestamp",
133 is_nullable => 0,
135 "status",
136 { data_type => "varchar", default_value => "New", is_nullable => 0, size => 6 },
139 =head1 PRIMARY KEY
141 =over 4
143 =item * L</reportid>
145 =back
147 =cut
149 __PACKAGE__->set_primary_key("reportid");
151 =head1 RELATIONS
153 =head2 borrowernumber
155 Type: belongs_to
157 Related object: L<Koha::Schema::Result::Borrower>
159 =cut
161 __PACKAGE__->belongs_to(
162 "borrowernumber",
163 "Koha::Schema::Result::Borrower",
164 { borrowernumber => "borrowernumber" },
165 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
168 =head2 branchcode
170 Type: belongs_to
172 Related object: L<Koha::Schema::Result::Branch>
174 =cut
176 __PACKAGE__->belongs_to(
177 "branchcode",
178 "Koha::Schema::Result::Branch",
179 { branchcode => "branchcode" },
180 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
184 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-04-03 12:13:26
185 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ho9ENAxH51/ZlZO9KD4KOQ
188 # You can replace this text with custom code or comments, and it will be preserved on regeneration