Bug 8798: (follow-up) update the DBIC schema class files
[koha.git] / Koha / Schema / Result / AuthorisedValuesBranch.pm
1 use utf8;
2 package Koha::Schema::Result::AuthorisedValuesBranch;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Koha::Schema::Result::AuthorisedValuesBranch
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<authorised_values_branches>
19
20 =cut
21
22 __PACKAGE__->table("authorised_values_branches");
23
24 =head1 ACCESSORS
25
26 =head2 av_id
27
28   data_type: 'integer'
29   is_foreign_key: 1
30   is_nullable: 1
31
32 =head2 branchcode
33
34   data_type: 'varchar'
35   is_foreign_key: 1
36   is_nullable: 1
37   size: 10
38
39 =cut
40
41 __PACKAGE__->add_columns(
42   "av_id",
43   { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
44   "branchcode",
45   { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
46 );
47
48 =head1 RELATIONS
49
50 =head2 av
51
52 Type: belongs_to
53
54 Related object: L<Koha::Schema::Result::AuthorisedValue>
55
56 =cut
57
58 __PACKAGE__->belongs_to(
59   "av",
60   "Koha::Schema::Result::AuthorisedValue",
61   { id => "av_id" },
62   {
63     is_deferrable => 1,
64     join_type     => "LEFT",
65     on_delete     => "CASCADE",
66     on_update     => "CASCADE",
67   },
68 );
69
70 =head2 branchcode
71
72 Type: belongs_to
73
74 Related object: L<Koha::Schema::Result::Branch>
75
76 =cut
77
78 __PACKAGE__->belongs_to(
79   "branchcode",
80   "Koha::Schema::Result::Branch",
81   { branchcode => "branchcode" },
82   {
83     is_deferrable => 1,
84     join_type     => "LEFT",
85     on_delete     => "CASCADE",
86     on_update     => "CASCADE",
87   },
88 );
89
90
91 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
92 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k6hCbzMVZ1VRsubvdrZMYQ
93
94
95 # You can replace this text with custom content, and it will be preserved on regeneration
96 1;