Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / CourseInstructor.pm
1 package Koha::Schema::Result::CourseInstructor;
2
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5
6 use strict;
7 use warnings;
8
9 use base 'DBIx::Class::Core';
10
11
12 =head1 NAME
13
14 Koha::Schema::Result::CourseInstructor
15
16 =cut
17
18 __PACKAGE__->table("course_instructors");
19
20 =head1 ACCESSORS
21
22 =head2 course_id
23
24   data_type: 'integer'
25   is_foreign_key: 1
26   is_nullable: 0
27
28 =head2 borrowernumber
29
30   data_type: 'integer'
31   is_foreign_key: 1
32   is_nullable: 0
33
34 =cut
35
36 __PACKAGE__->add_columns(
37   "course_id",
38   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
39   "borrowernumber",
40   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
41 );
42 __PACKAGE__->set_primary_key("course_id", "borrowernumber");
43
44 =head1 RELATIONS
45
46 =head2 course
47
48 Type: belongs_to
49
50 Related object: L<Koha::Schema::Result::Course>
51
52 =cut
53
54 __PACKAGE__->belongs_to(
55   "course",
56   "Koha::Schema::Result::Course",
57   { course_id => "course_id" },
58   { on_delete => "CASCADE", on_update => "CASCADE" },
59 );
60
61 =head2 borrowernumber
62
63 Type: belongs_to
64
65 Related object: L<Koha::Schema::Result::Borrower>
66
67 =cut
68
69 __PACKAGE__->belongs_to(
70   "borrowernumber",
71   "Koha::Schema::Result::Borrower",
72   { borrowernumber => "borrowernumber" },
73   { on_delete => "CASCADE", on_update => "CASCADE" },
74 );
75
76
77 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
78 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:zPwefIbI2Pz0pX03KpS1eQ
79
80
81 # You can replace this text with custom content, and it will be preserved on regeneration
82 1;