Schema/Result/ShipmentDestination.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 15 / 15 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Result/ShipmentCarrier.pm ↑ Summary Schema/Result/ShipmentMethod.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::ShipmentDestination;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::ShipmentDestination
8  
9 =cut
10  
11 2 ▶use Interchange6::Schema::Candy;
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 =head1 ACCESSORS
14  
15 =head2 shipment_destinations_id
16  
17 Primary key.
18  
19 =cut
20  
21 2 primary_column shipment_destinations_id =>
22 { data_type => "integer", is_auto_increment => 1 };
23  
24 =head2 zones_id
25  
26 FK on L<Interchange6::Schema::Result::Zone/zones_id>.
27  
28 =cut
29  
30 2 column zones_id =>
31 { data_type => "integer", is_foreign_key => 1 };
32  
33 =head2 shipment_methods_id
34  
35 FK on L<Interchange6::Schema::Result::ShipmentMethod/shipment_methods_id>.
36  
37 =cut
38  
39 2 column shipment_methods_id =>
40 { data_type => "integer", is_foreign_key => 1 };
41  
42 =head2 active
43  
44 Whether this shipment destination record is active. Defaults to 1 (true).
45  
46 =cut
47  
48 2 column active =>
49 { data_type => "boolean", default_value => 1 };
50  
51 =head1 RELATIONS
52  
53 =head2 zone
54  
55 Type: belongs_to
56  
57 Related object: L<Interchange6::Schema::Result::Zone>
58  
59 =cut
60  
61 2 belongs_to
62 zone => "Interchange6::Schema::Result::Zone",
63 "zones_id",
64 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
65  
66 =head2 shipment_method
67  
68 Type: belongs_to
69  
70 Related object: L<Interchange6::Schema::Result::ShipmentMethod>
71  
72 =cut
73  
74 2 belongs_to
75 shipment_method => "Interchange6::Schema::Result::ShipmentMethod",
76 "shipment_methods_id",
77 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
78  
79 2 1;
« Schema/Result/ShipmentCarrier.pm ↑ Summary Schema/Result/ShipmentMethod.pm »