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