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");
57 datetime_undef_if_invalid: 1
62 __PACKAGE__->add_columns(
64 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
66 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
68 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
70 { data_type => "text", is_nullable => 1 },
72 { data_type => "tinyint", is_nullable => 1 },
75 data_type => "datetime",
76 datetime_undef_if_invalid => 1,
91 __PACKAGE__->set_primary_key("reviewid");
99 Related object: L<Koha::Schema::Result::Biblio>
103 __PACKAGE__->belongs_to(
105 "Koha::Schema::Result::Biblio",
106 { biblionumber => "biblionumber" },
110 on_delete => "CASCADE",
111 on_update => "CASCADE",
115 =head2 borrowernumber
119 Related object: L<Koha::Schema::Result::Borrower>
123 __PACKAGE__->belongs_to(
125 "Koha::Schema::Result::Borrower",
126 { borrowernumber => "borrowernumber" },
130 on_delete => "SET NULL",
131 on_update => "CASCADE",
136 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
137 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:u+R08bCdVQA697aPo9zEUA
140 # You can replace this text with custom content, and it will be preserved on regeneration