Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / Illcomment.pm
blob04a04370c43f9502b7280968f6fc78deedf65330
1 use utf8;
2 package Koha::Schema::Result::Illcomment;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Illcomment
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<illcomments>
20 =cut
22 __PACKAGE__->table("illcomments");
24 =head1 ACCESSORS
26 =head2 illcomment_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 illrequest_id
34 data_type: 'bigint'
35 extra: {unsigned => 1}
36 is_foreign_key: 1
37 is_nullable: 0
39 =head2 borrowernumber
41 data_type: 'integer'
42 is_foreign_key: 1
43 is_nullable: 1
45 =head2 comment
47 data_type: 'text'
48 is_nullable: 1
50 =head2 timestamp
52 data_type: 'timestamp'
53 datetime_undef_if_invalid: 1
54 default_value: current_timestamp
55 is_nullable: 0
57 =cut
59 __PACKAGE__->add_columns(
60 "illcomment_id",
61 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
62 "illrequest_id",
64 data_type => "bigint",
65 extra => { unsigned => 1 },
66 is_foreign_key => 1,
67 is_nullable => 0,
69 "borrowernumber",
70 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
71 "comment",
72 { data_type => "text", is_nullable => 1 },
73 "timestamp",
75 data_type => "timestamp",
76 datetime_undef_if_invalid => 1,
77 default_value => \"current_timestamp",
78 is_nullable => 0,
82 =head1 PRIMARY KEY
84 =over 4
86 =item * L</illcomment_id>
88 =back
90 =cut
92 __PACKAGE__->set_primary_key("illcomment_id");
94 =head1 RELATIONS
96 =head2 borrowernumber
98 Type: belongs_to
100 Related object: L<Koha::Schema::Result::Borrower>
102 =cut
104 __PACKAGE__->belongs_to(
105 "borrowernumber",
106 "Koha::Schema::Result::Borrower",
107 { borrowernumber => "borrowernumber" },
109 is_deferrable => 1,
110 join_type => "LEFT",
111 on_delete => "CASCADE",
112 on_update => "CASCADE",
116 =head2 illrequest
118 Type: belongs_to
120 Related object: L<Koha::Schema::Result::Illrequest>
122 =cut
124 __PACKAGE__->belongs_to(
125 "illrequest",
126 "Koha::Schema::Result::Illrequest",
127 { illrequest_id => "illrequest_id" },
128 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
132 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-26 19:57:17
133 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JJC9ohn0V61+WzMppDKUJw
136 # You can replace this text with custom code or comments, and it will be preserved on regeneration