1 package Koha::Schema::Result::CourseReserve;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::CourseReserve
18 __PACKAGE__->table("course_reserves");
41 data_type: 'mediumtext'
46 data_type: 'mediumtext'
51 data_type: 'timestamp'
52 default_value: current_timestamp
57 __PACKAGE__->add_columns(
59 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
61 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63 { data_type => "integer", is_nullable => 0 },
65 { data_type => "mediumtext", is_nullable => 1 },
67 { data_type => "mediumtext", is_nullable => 1 },
70 data_type => "timestamp",
71 default_value => \"current_timestamp",
75 __PACKAGE__->set_primary_key("cr_id");
76 __PACKAGE__->add_unique_constraint("pseudo_key", ["course_id", "ci_id"]);
84 Related object: L<Koha::Schema::Result::Course>
88 __PACKAGE__->belongs_to(
90 "Koha::Schema::Result::Course",
91 { course_id => "course_id" },
92 { on_delete => "CASCADE", on_update => "CASCADE" },
96 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
97 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LUZRTXuhywezgITcSqqDJQ
100 # You can replace this text with custom content, and it will be preserved on regeneration