2 package Koha
::Schema
::Result
::ProblemReport
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::ProblemReport
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<problem_reports>
22 __PACKAGE__
->table("problem_reports");
35 default_value: (empty string)
42 default_value: (empty string)
56 default_value: (empty string)
75 default_value: 'library'
76 extra: {list => ["admin","library"]}
81 data_type: 'timestamp'
82 datetime_undef_if_invalid: 1
83 default_value: current_timestamp
95 __PACKAGE__
->add_columns(
97 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
99 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 40 },
101 { data_type
=> "varchar", default_value
=> "", is_nullable
=> 0, size
=> 255 },
104 data_type
=> "integer",
111 data_type
=> "varchar",
118 { data_type
=> "varchar", is_nullable
=> 1, size
=> 75 },
120 { data_type
=> "text", is_nullable
=> 1 },
124 default_value
=> "library",
125 extra
=> { list
=> ["admin", "library"] },
130 data_type
=> "timestamp",
131 datetime_undef_if_invalid
=> 1,
132 default_value
=> \"current_timestamp
",
136 { data_type => "varchar
", default_value => "New
", is_nullable => 0, size => 6 },
149 __PACKAGE__->set_primary_key("reportid
");
153 =head2 borrowernumber
157 Related object: L<Koha::Schema::Result::Borrower>
161 __PACKAGE__->belongs_to(
163 "Koha
::Schema
::Result
::Borrower
",
164 { borrowernumber => "borrowernumber
" },
165 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
172 Related object: L<Koha::Schema::Result::Branch>
176 __PACKAGE__->belongs_to(
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