2 package Koha
::Schema
::Result
::CourseReserve
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::CourseReserve
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<course_reserves>
22 __PACKAGE__
->table("course_reserves");
45 data_type: 'mediumtext'
50 data_type: 'mediumtext'
55 data_type: 'timestamp'
56 datetime_undef_if_invalid: 1
57 default_value: current_timestamp
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
=> 0 },
68 { data_type
=> "integer", is_nullable
=> 0 },
70 { data_type
=> "mediumtext", is_nullable
=> 1 },
72 { data_type
=> "mediumtext", is_nullable
=> 1 },
75 data_type
=> "timestamp",
76 datetime_undef_if_invalid
=> 1,
77 default_value
=> \"current_timestamp
",
92 __PACKAGE__->set_primary_key("cr_id
");
94 =head1 UNIQUE CONSTRAINTS
100 =item * L</course_id>
108 __PACKAGE__->add_unique_constraint("pseudo_key
", ["course_id
", "ci_id
"]);
116 Related object: L<Koha::Schema::Result::Course>
120 __PACKAGE__->belongs_to(
122 "Koha
::Schema
::Result
::Course
",
123 { course_id => "course_id
" },
124 { is_deferrable => 1, on_delete => "RESTRICT
", on_update => "RESTRICT
" },
128 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
129 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SSTJhsNOuUlxr/CsDs08pQ
132 # You can replace this text with custom content, and it will be preserved on regeneration