2 package Koha
::Schema
::Result
::AccountCreditTypesBranch
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::AccountCreditTypesBranch
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<account_credit_types_branches>
22 __PACKAGE__
->table("account_credit_types_branches");
26 =head2 credit_type_code
42 __PACKAGE__
->add_columns(
44 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 1, size
=> 80 },
46 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 1, size
=> 10 },
55 Related object: L<Koha::Schema::Result::Branch>
59 __PACKAGE__
->belongs_to(
61 "Koha::Schema::Result::Branch",
62 { branchcode
=> "branchcode" },
66 on_delete
=> "CASCADE",
67 on_update
=> "RESTRICT",
71 =head2 credit_type_code
75 Related object: L<Koha::Schema::Result::AccountCreditType>
79 __PACKAGE__
->belongs_to(
81 "Koha::Schema::Result::AccountCreditType",
82 { code
=> "credit_type_code" },
86 on_delete
=> "CASCADE",
87 on_update
=> "RESTRICT",
92 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-10-14 09:59:52
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1oX/zPeT8gmc3ZwdTiyovA
96 # You can replace this text with custom code or comments, and it will be preserved on regeneration