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");
35 extra: {unsigned => 1}
52 data_type: 'timestamp'
53 datetime_undef_if_invalid: 1
54 default_value: current_timestamp
59 __PACKAGE__->add_columns(
61 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
64 data_type => "bigint",
65 extra => { unsigned => 1 },
70 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
72 { data_type => "text", is_nullable => 1 },
75 data_type => "timestamp",
76 datetime_undef_if_invalid => 1,
77 default_value => \"current_timestamp",
86 =item * L</illcomment_id>
92 __PACKAGE__->set_primary_key("illcomment_id");
100 Related object: L<Koha::Schema::Result::Borrower>
104 __PACKAGE__->belongs_to(
106 "Koha::Schema::Result::Borrower",
107 { borrowernumber => "borrowernumber" },
111 on_delete => "CASCADE",
112 on_update => "CASCADE",
120 Related object: L<Koha::Schema::Result::Illrequest>
124 __PACKAGE__->belongs_to(
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