Schema/Result/ZoneCountry.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Result/UserRole.pm ↑ Summary Schema/Result/ZoneState.pm »
1 2 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package Interchange6::Schema::Result::ZoneCountry;
4  
5 =head1 NAME
6  
7 Interchange6::Schema::Result::ZoneCountry
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 zones_id
16  
17 FK on L<Interchange6::Schema::Result::Zone/zones_id>.
18  
19 =cut
20  
21 2 column zones_id =>
22 { data_type => "integer" };
23  
24 =head2 country_iso_code
25  
26 FK on L<Interchange6::Schema::Result::Country/country_iso_code>.
27  
28 =cut
29  
30 2 column country_iso_code =>
31 { data_type => "char", size => 2 };
32  
33 =head1 PRIMARY KEY
34  
35 =over 4
36  
37 =item * L</zones_id>
38  
39 =item * L</country_iso_code>
40  
41 =back
42  
43 =cut
44  
45 2 primary_key "zones_id", "country_iso_code";
46  
47 =head1 RELATIONS
48  
49 =head2 zone
50  
51 Type: belongs_to
52  
53 Related object: L<Interchange6::Schema::Result::Zone>
54  
55 =cut
56  
57 2 belongs_to
58 zone => "Interchange6::Schema::Result::Zone",
59 "zones_id",
60 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
61  
62 =head2 country
63  
64 Type: belongs_to
65  
66 Related object: L<Interchange6::Schema::Result::Country>
67  
68 =cut
69  
70 2 belongs_to
71 country => "Interchange6::Schema::Result::Country",
72 "country_iso_code",
73 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" };
74  
75 2 1;
« Schema/Result/UserRole.pm ↑ Summary Schema/Result/ZoneState.pm »