Bug 21797: Update two-column templates with Bootstrap grid: Acquisitions part 5
[koha.git] / Koha / Schema / Result / AuthorisedValuesBranch.pm
blobbff3735660b6d2f7e05d63e1dff77f08317858dc
1 use utf8;
2 package Koha::Schema::Result::AuthorisedValuesBranch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AuthorisedValuesBranch
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<authorised_values_branches>
20 =cut
22 __PACKAGE__->table("authorised_values_branches");
24 =head1 ACCESSORS
26 =head2 av_id
28 data_type: 'integer'
29 is_foreign_key: 1
30 is_nullable: 0
32 =head2 branchcode
34 data_type: 'varchar'
35 is_foreign_key: 1
36 is_nullable: 0
37 size: 10
39 =cut
41 __PACKAGE__->add_columns(
42 "av_id",
43 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
44 "branchcode",
45 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
48 =head1 RELATIONS
50 =head2 av
52 Type: belongs_to
54 Related object: L<Koha::Schema::Result::AuthorisedValue>
56 =cut
58 __PACKAGE__->belongs_to(
59 "av",
60 "Koha::Schema::Result::AuthorisedValue",
61 { id => "av_id" },
62 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
65 =head2 branchcode
67 Type: belongs_to
69 Related object: L<Koha::Schema::Result::Branch>
71 =cut
73 __PACKAGE__->belongs_to(
74 "branchcode",
75 "Koha::Schema::Result::Branch",
76 { branchcode => "branchcode" },
77 { is_deferrable => 1, on_delete => "CASCADE", on_update => "RESTRICT" },
81 # Created by DBIx::Class::Schema::Loader v0.07040 @ 2014-10-23 10:48:27
82 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cjPAyQSK7F7sEkiWjCUE7Q
84 __PACKAGE__->set_primary_key(__PACKAGE__->columns);