2 package Koha
::Schema
::Result
::Rating
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Rating
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<ratings>
22 __PACKAGE__
->table("ratings");
45 data_type: 'timestamp'
46 datetime_undef_if_invalid: 1
47 default_value: current_timestamp
52 __PACKAGE__
->add_columns(
54 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
56 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
58 { data_type
=> "tinyint", is_nullable
=> 0 },
61 data_type
=> "timestamp",
62 datetime_undef_if_invalid
=> 1,
63 default_value
=> \"current_timestamp
",
72 =item * L</borrowernumber>
74 =item * L</biblionumber>
80 __PACKAGE__->set_primary_key("borrowernumber
", "biblionumber
");
88 Related object: L<Koha::Schema::Result::Biblio>
92 __PACKAGE__->belongs_to(
94 "Koha
::Schema
::Result
::Biblio
",
95 { biblionumber => "biblionumber
" },
96 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
103 Related object: L<Koha::Schema::Result::Borrower>
107 __PACKAGE__->belongs_to(
109 "Koha
::Schema
::Result
::Borrower
",
110 { borrowernumber => "borrowernumber
" },
111 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
115 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
116 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:YT3jPQbA2TBuOuUXfEt7gQ
119 # You can replace this text with custom content, and it will be preserved on regeneration