File Coverage

blib/lib/Bracket/Schema/Result/RegionScore.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Bracket::Schema::Result::RegionScore;
2              
3             # Created by DBIx::Class::Schema::Loader
4             # DO NOT MODIFY THE FIRST PART OF THIS FILE
5              
6 1     1   7356 use strict;
  1         3  
  1         42  
7 1     1   6 use warnings;
  1         2  
  1         80  
8              
9 1     1   7 use base 'DBIx::Class::Core';
  1         2  
  1         1008  
10              
11              
12             =head1 NAME
13              
14             Bracket::Schema::Result::RegionScore
15              
16             =cut
17              
18             __PACKAGE__->table("region_score");
19              
20             =head1 ACCESSORS
21              
22             =head2 player
23              
24             data_type: INT
25             default_value: undef
26             is_foreign_key: 1
27             is_nullable: 0
28             size: 11
29              
30             =head2 region
31              
32             data_type: INT
33             default_value: undef
34             is_foreign_key: 1
35             is_nullable: 0
36             size: 11
37              
38             =head2 points
39              
40             data_type: INT
41             default_value: undef
42             is_nullable: 0
43             size: 11
44              
45             =cut
46              
47             __PACKAGE__->add_columns(
48             "player",
49             {
50             data_type => "INT",
51             default_value => undef,
52             is_foreign_key => 1,
53             is_nullable => 0,
54             size => 11,
55             },
56             "region",
57             {
58             data_type => "INT",
59             default_value => undef,
60             is_foreign_key => 1,
61             is_nullable => 0,
62             size => 11,
63             },
64             "points",
65             { data_type => "INT", default_value => undef, is_nullable => 0, size => 11 },
66             );
67             __PACKAGE__->set_primary_key("player", "region");
68              
69             =head1 RELATIONS
70              
71             =head2 player
72              
73             Type: belongs_to
74              
75             Related object: L<Bracket::Schema::Result::Player>
76              
77             =cut
78              
79             __PACKAGE__->belongs_to(
80             "player",
81             "Bracket::Schema::Result::Player",
82             { id => "player" },
83             {},
84             );
85              
86             =head2 region
87              
88             Type: belongs_to
89              
90             Related object: L<Bracket::Schema::Result::Region>
91              
92             =cut
93              
94             __PACKAGE__->belongs_to(
95             "region",
96             "Bracket::Schema::Result::Region",
97             { id => "region" },
98             {},
99             );
100              
101              
102             # Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-03-15 11:45:32
103             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:UiBOetVBSxDOkCf4HJpl2g
104              
105              
106             # You can replace this text with custom content, and it will be preserved on regeneration
107             1;