2 package Koha::Schema::Result::Illcomment;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Illcomment
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<illcomments>
22 __PACKAGE__->table("illcomments");
32 Unique ID of the comment
37 extra: {unsigned => 1}
49 Link to the user who made the comment (could be librarian, patron or ILL partner library)
56 The text of the comment
60 data_type: 'timestamp'
61 datetime_undef_if_invalid: 1
62 default_value: current_timestamp
65 Date and time when the comment was made
69 __PACKAGE__->add_columns(
71 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
74 data_type => "bigint",
75 extra => { unsigned => 1 },
80 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
82 { data_type => "text", is_nullable => 1 },
85 data_type => "timestamp",
86 datetime_undef_if_invalid => 1,
87 default_value => \"current_timestamp",
96 =item * L</illcomment_id>
102 __PACKAGE__->set_primary_key("illcomment_id");
106 =head2 borrowernumber
110 Related object: L<Koha::Schema::Result::Borrower>
114 __PACKAGE__->belongs_to(
116 "Koha::Schema::Result::Borrower",
117 { borrowernumber => "borrowernumber" },
121 on_delete => "CASCADE",
122 on_update => "CASCADE",
130 Related object: L<Koha::Schema::Result::Illrequest>
134 __PACKAGE__->belongs_to(
136 "Koha::Schema::Result::Illrequest",
137 { illrequest_id => "illrequest_id" },
138 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
142 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:z5Y6mVTLtrYxmqmyAc/E7A
146 # You can replace this text with custom code or comments, and it will be preserved on regeneration