2 package Koha
::Schema
::Result
::Course
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Course
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<courses>
22 __PACKAGE__
->table("courses");
64 data_type: 'mediumtext'
69 data_type: 'mediumtext'
82 extra: {list => ["yes","no"]}
87 data_type: 'timestamp'
88 datetime_undef_if_invalid: 1
89 default_value: current_timestamp
94 __PACKAGE__
->add_columns(
96 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
98 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
100 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
102 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
104 { data_type
=> "varchar", is_nullable
=> 1, size
=> 255 },
106 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
108 { data_type
=> "mediumtext", is_nullable
=> 1 },
110 { data_type
=> "mediumtext", is_nullable
=> 1 },
112 { data_type
=> "varchar", is_nullable
=> 1, size
=> 20 },
116 default_value
=> "yes",
117 extra
=> { list
=> ["yes", "no"] },
122 data_type
=> "timestamp",
123 datetime_undef_if_invalid
=> 1,
124 default_value
=> \"current_timestamp
",
133 =item * L</course_id>
139 __PACKAGE__->set_primary_key("course_id
");
143 =head2 course_instructors
147 Related object: L<Koha::Schema::Result::CourseInstructor>
151 __PACKAGE__->has_many(
152 "course_instructors
",
153 "Koha
::Schema
::Result
::CourseInstructor
",
154 { "foreign
.course_id
" => "self
.course_id
" },
155 { cascade_copy => 0, cascade_delete => 0 },
158 =head2 course_reserves
162 Related object: L<Koha::Schema::Result::CourseReserve>
166 __PACKAGE__->has_many(
168 "Koha
::Schema
::Result
::CourseReserve
",
169 { "foreign
.course_id
" => "self
.course_id
" },
170 { cascade_copy => 0, cascade_delete => 0 },
173 =head2 borrowernumbers
177 Composing rels: L</course_instructors> -> borrowernumber
181 __PACKAGE__->many_to_many("borrowernumbers
", "course_instructors
", "borrowernumber
");
184 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
185 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:crKCFQ80qo2p885ebiBfnw
188 # You can replace this text with custom content, and it will be preserved on regeneration