File Coverage

blib/lib/Bracket/Schema/Result/Pick.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::Pick;
2              
3             # Created by DBIx::Class::Schema::Loader
4             # DO NOT MODIFY THE FIRST PART OF THIS FILE
5              
6 1     1   669 use strict;
  1         3  
  1         30  
7 1     1   5 use warnings;
  1         2  
  1         25  
8              
9 1     1   5 use base 'DBIx::Class::Core';
  1         1  
  1         256  
10              
11              
12             =head1 NAME
13              
14             Bracket::Schema::Result::Pick
15              
16             =cut
17              
18             __PACKAGE__->table("pick");
19              
20             =head1 ACCESSORS
21              
22             =head2 id
23              
24             data_type: INT
25             default_value: undef
26             is_auto_increment: 1
27             is_nullable: 0
28             size: 11
29              
30             =head2 player
31              
32             data_type: INT
33             default_value: undef
34             is_foreign_key: 1
35             is_nullable: 0
36             size: 11
37              
38             =head2 game
39              
40             data_type: INT
41             default_value: undef
42             is_foreign_key: 1
43             is_nullable: 0
44             size: 11
45              
46             =head2 pick
47              
48             data_type: INT
49             default_value: undef
50             is_foreign_key: 1
51             is_nullable: 0
52             size: 11
53              
54             =cut
55              
56             __PACKAGE__->add_columns(
57             "id",
58             {
59             data_type => "INT",
60             default_value => undef,
61             is_auto_increment => 1,
62             is_nullable => 0,
63             size => 11,
64             },
65             "player",
66             {
67             data_type => "INT",
68             default_value => undef,
69             is_foreign_key => 1,
70             is_nullable => 0,
71             size => 11,
72             },
73             "game",
74             {
75             data_type => "INT",
76             default_value => undef,
77             is_foreign_key => 1,
78             is_nullable => 0,
79             size => 11,
80             },
81             "pick",
82             {
83             data_type => "INT",
84             default_value => undef,
85             is_foreign_key => 1,
86             is_nullable => 0,
87             size => 11,
88             },
89             );
90             __PACKAGE__->set_primary_key("id");
91              
92             =head1 RELATIONS
93              
94             =head2 game
95              
96             Type: belongs_to
97              
98             Related object: L<Bracket::Schema::Result::Game>
99              
100             =cut
101              
102             __PACKAGE__->belongs_to("game", "Bracket::Schema::Result::Game", { id => "game" }, {});
103              
104             =head2 pick
105              
106             Type: belongs_to
107              
108             Related object: L<Bracket::Schema::Result::Team>
109              
110             =cut
111              
112             __PACKAGE__->belongs_to("pick", "Bracket::Schema::Result::Team", { id => "pick" }, {});
113              
114             =head2 player
115              
116             Type: belongs_to
117              
118             Related object: L<Bracket::Schema::Result::Player>
119              
120             =cut
121              
122             __PACKAGE__->belongs_to(
123             "player",
124             "Bracket::Schema::Result::Player",
125             { id => "player" },
126             {},
127             );
128              
129              
130             # Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-03-15 11:45:32
131             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3y+D7eOEFq574St+fKk+zw
132              
133              
134             # You can replace this text with custom content, and it will be preserved on regeneration
135             1;