Bug 23152: Implement koha_object[s]_class when needed
[koha-equinox.git] / Koha / Schema / Result / BranchesOverdrive.pm
1 use utf8;
2 package Koha::Schema::Result::BranchesOverdrive;
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::BranchesOverdrive
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<branches_overdrive>
19
20 =cut
21
22 __PACKAGE__->table("branches_overdrive");
23
24 =head1 ACCESSORS
25
26 =head2 branchcode
27
28   data_type: 'varchar'
29   is_foreign_key: 1
30   is_nullable: 0
31   size: 10
32
33 =head2 authname
34
35   data_type: 'varchar'
36   is_nullable: 0
37   size: 255
38
39 =cut
40
41 __PACKAGE__->add_columns(
42   "branchcode",
43   { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
44   "authname",
45   { data_type => "varchar", is_nullable => 0, size => 255 },
46 );
47
48 =head1 PRIMARY KEY
49
50 =over 4
51
52 =item * L</branchcode>
53
54 =back
55
56 =cut
57
58 __PACKAGE__->set_primary_key("branchcode");
59
60 =head1 RELATIONS
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   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
75 );
76
77
78 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-09 10:38:33
79 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fEZWWtF4MRDwupI/27laDw
80
81 sub koha_object_class {
82     'Koha::Library::OverDriveInfo';
83 }
84 sub koha_objects_class {
85     'Koha::Library::OverDriveInfos';
86 }
87
88 1;