Bug 8798: (follow-up) update schema files
[koha.git] / Koha / Schema / Result / CategoriesBranch.pm
1 package Koha::Schema::Result::CategoriesBranch;
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::CategoriesBranch
15
16 =cut
17
18 __PACKAGE__->table("categories_branches");
19
20 =head1 ACCESSORS
21
22 =head2 categorycode
23
24   data_type: 'varchar'
25   is_foreign_key: 1
26   is_nullable: 1
27   size: 10
28
29 =head2 branchcode
30
31   data_type: 'varchar'
32   is_foreign_key: 1
33   is_nullable: 1
34   size: 10
35
36 =cut
37
38 __PACKAGE__->add_columns(
39   "categorycode",
40   { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
41   "branchcode",
42   { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
43 );
44
45 =head1 RELATIONS
46
47 =head2 categorycode
48
49 Type: belongs_to
50
51 Related object: L<Koha::Schema::Result::Category>
52
53 =cut
54
55 __PACKAGE__->belongs_to(
56   "categorycode",
57   "Koha::Schema::Result::Category",
58   { categorycode => "categorycode" },
59   { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
60 );
61
62 =head2 branchcode
63
64 Type: belongs_to
65
66 Related object: L<Koha::Schema::Result::Branch>
67
68 =cut
69
70 __PACKAGE__->belongs_to(
71   "branchcode",
72   "Koha::Schema::Result::Branch",
73   { branchcode => "branchcode" },
74   { join_type => "LEFT", on_delete => "CASCADE", on_update => "CASCADE" },
75 );
76
77
78 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2013-06-18 13:13:57
79 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SVolMqOZ2fpkPdSCSjpDUA
80
81
82 # You can replace this text with custom content, and it will be preserved on regeneration
83 1;