1 package Koha::Schema::Result::Course;
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::Course
18 __PACKAGE__->table("courses");
60 data_type: 'mediumtext'
65 data_type: 'mediumtext'
78 extra: {list => ["yes","no"]}
83 data_type: 'timestamp'
84 default_value: current_timestamp
89 __PACKAGE__->add_columns(
91 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
93 { data_type => "varchar", is_nullable => 1, size => 20 },
95 { data_type => "varchar", is_nullable => 1, size => 255 },
97 { data_type => "varchar", is_nullable => 1, size => 255 },
99 { data_type => "varchar", is_nullable => 1, size => 255 },
101 { data_type => "varchar", is_nullable => 1, size => 20 },
103 { data_type => "mediumtext", is_nullable => 1 },
105 { data_type => "mediumtext", is_nullable => 1 },
107 { data_type => "varchar", is_nullable => 1, size => 20 },
111 default_value => "yes",
112 extra => { list => ["yes", "no"] },
117 data_type => "timestamp",
118 default_value => \"current_timestamp",
122 __PACKAGE__->set_primary_key("course_id");
126 =head2 course_instructors
130 Related object: L<Koha::Schema::Result::CourseInstructor>
134 __PACKAGE__->has_many(
135 "course_instructors",
136 "Koha::Schema::Result::CourseInstructor",
137 { "foreign.course_id" => "self.course_id" },
138 { cascade_copy => 0, cascade_delete => 0 },
141 =head2 course_reserves
145 Related object: L<Koha::Schema::Result::CourseReserve>
149 __PACKAGE__->has_many(
151 "Koha::Schema::Result::CourseReserve",
152 { "foreign.course_id" => "self.course_id" },
153 { cascade_copy => 0, cascade_delete => 0 },
157 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
158 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SN5SfQi+SbfPr069wck64w
161 # You can replace this text with custom content, and it will be preserved on regeneration