Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / AccountDebitTypesBranch.pm
blobc4eac184232d7e22907f06381942b23255b683dc
1 use utf8;
2 package Koha::Schema::Result::AccountDebitTypesBranch;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AccountDebitTypesBranch
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<account_debit_types_branches>
20 =cut
22 __PACKAGE__->table("account_debit_types_branches");
24 =head1 ACCESSORS
26 =head2 debit_type_code
28 data_type: 'varchar'
29 is_foreign_key: 1
30 is_nullable: 1
31 size: 80
33 =head2 branchcode
35 data_type: 'varchar'
36 is_foreign_key: 1
37 is_nullable: 1
38 size: 10
40 =cut
42 __PACKAGE__->add_columns(
43 "debit_type_code",
44 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 80 },
45 "branchcode",
46 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
49 =head1 RELATIONS
51 =head2 branchcode
53 Type: belongs_to
55 Related object: L<Koha::Schema::Result::Branch>
57 =cut
59 __PACKAGE__->belongs_to(
60 "branchcode",
61 "Koha::Schema::Result::Branch",
62 { branchcode => "branchcode" },
64 is_deferrable => 1,
65 join_type => "LEFT",
66 on_delete => "CASCADE",
67 on_update => "RESTRICT",
71 =head2 debit_type_code
73 Type: belongs_to
75 Related object: L<Koha::Schema::Result::AccountDebitType>
77 =cut
79 __PACKAGE__->belongs_to(
80 "debit_type_code",
81 "Koha::Schema::Result::AccountDebitType",
82 { code => "debit_type_code" },
84 is_deferrable => 1,
85 join_type => "LEFT",
86 on_delete => "CASCADE",
87 on_update => "RESTRICT",
92 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-23 13:48:17
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3ur56KFASvuQ31JGV6OA2Q
96 # You can replace this text with custom code or comments, and it will be preserved on regeneration