2 package Koha::Schema::Result::Review;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Review
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<reviews>
22 __PACKAGE__->table("reviews");
46 data_type: 'mediumtext'
58 datetime_undef_if_invalid: 1
63 __PACKAGE__->add_columns(
65 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
67 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
69 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
71 { data_type => "mediumtext", is_nullable => 1 },
73 { data_type => "tinyint", default_value => 0, is_nullable => 1 },
76 data_type => "datetime",
77 datetime_undef_if_invalid => 1,
92 __PACKAGE__->set_primary_key("reviewid");
100 Related object: L<Koha::Schema::Result::Biblio>
104 __PACKAGE__->belongs_to(
106 "Koha::Schema::Result::Biblio",
107 { biblionumber => "biblionumber" },
111 on_delete => "CASCADE",
112 on_update => "CASCADE",
116 =head2 borrowernumber
120 Related object: L<Koha::Schema::Result::Borrower>
124 __PACKAGE__->belongs_to(
126 "Koha::Schema::Result::Borrower",
127 { borrowernumber => "borrowernumber" },
131 on_delete => "SET NULL",
132 on_update => "CASCADE",
137 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:54
138 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gEngecP849wzHprYW7H2tw
141 # You can replace this text with custom content, and it will be preserved on regeneration