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");
56 data_type: 'timestamp'
57 datetime_undef_if_invalid: 1
58 default_value: current_timestamp
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
=> 0 },
69 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
71 { data_type
=> "longtext", is_nullable
=> 1 },
73 { data_type
=> "longtext", is_nullable
=> 1 },
76 data_type
=> "timestamp",
77 datetime_undef_if_invalid
=> 1,
78 default_value
=> \"current_timestamp
",
93 __PACKAGE__->set_primary_key("cr_id
");
95 =head1 UNIQUE CONSTRAINTS
101 =item * L</course_id>
109 __PACKAGE__->add_unique_constraint("pseudo_key
", ["course_id
", "ci_id
"]);
117 Related object: L<Koha::Schema::Result::CourseItem>
121 __PACKAGE__->belongs_to(
123 "Koha
::Schema
::Result
::CourseItem
",
124 { ci_id => "ci_id
" },
125 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
132 Related object: L<Koha::Schema::Result::Course>
136 __PACKAGE__->belongs_to(
138 "Koha
::Schema
::Result
::Course
",
139 { course_id => "course_id
" },
140 { is_deferrable => 1, on_delete => "RESTRICT
", on_update => "RESTRICT
" },
144 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-02-16 17:54:53
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8SDdUrbxKuAwp6rgn85RmA
147 sub koha_objects_class {
148 'Koha::Course::Reserves';
150 sub koha_object_class {
151 'Koha::Course::Reserve';