Bug 21395: Fix creation of PO file
[koha.git] / Koha / Schema / Result / TransportCost.pm
blob9defb97554b574563f08a27f78547f11f9c18cbb
1 use utf8;
2 package Koha::Schema::Result::TransportCost;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::TransportCost
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<transport_cost>
20 =cut
22 __PACKAGE__->table("transport_cost");
24 =head1 ACCESSORS
26 =head2 frombranch
28 data_type: 'varchar'
29 is_foreign_key: 1
30 is_nullable: 0
31 size: 10
33 =head2 tobranch
35 data_type: 'varchar'
36 is_foreign_key: 1
37 is_nullable: 0
38 size: 10
40 =head2 cost
42 data_type: 'decimal'
43 is_nullable: 0
44 size: [6,2]
46 =head2 disable_transfer
48 data_type: 'tinyint'
49 default_value: 0
50 is_nullable: 0
52 =cut
54 __PACKAGE__->add_columns(
55 "frombranch",
56 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
57 "tobranch",
58 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
59 "cost",
60 { data_type => "decimal", is_nullable => 0, size => [6, 2] },
61 "disable_transfer",
62 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
65 =head1 PRIMARY KEY
67 =over 4
69 =item * L</frombranch>
71 =item * L</tobranch>
73 =back
75 =cut
77 __PACKAGE__->set_primary_key("frombranch", "tobranch");
79 =head1 RELATIONS
81 =head2 frombranch
83 Type: belongs_to
85 Related object: L<Koha::Schema::Result::Branch>
87 =cut
89 __PACKAGE__->belongs_to(
90 "frombranch",
91 "Koha::Schema::Result::Branch",
92 { branchcode => "frombranch" },
93 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
96 =head2 tobranch
98 Type: belongs_to
100 Related object: L<Koha::Schema::Result::Branch>
102 =cut
104 __PACKAGE__->belongs_to(
105 "tobranch",
106 "Koha::Schema::Result::Branch",
107 { branchcode => "tobranch" },
108 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
112 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
113 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gMs7dT/xK4ClGqQEHI7HOQ
116 # You can replace this text with custom content, and it will be preserved on regeneration