lib/Bracket/Schema/Result/Game.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Bracket/Form/Password/Reset.pm ↑ Summary lib/Bracket/Schema/Result/Pick.pm »
1 package Bracket::Schema::Result::Game;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 4 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 4 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 4 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 =head1 NAME
13  
14 Bracket::Schema::Result::Game
15  
16 =cut
17  
18 4 __PACKAGE__->table("game");
19  
20 =head1 ACCESSORS
21  
22 =head2 id
23  
24 data_type: INT
25 default_value: undef
26 is_nullable: 0
27 size: 11
28  
29 =head2 winner
30  
31 data_type: INT
32 default_value: undef
33 is_foreign_key: 1
34 is_nullable: 1
35 size: 11
36  
37 =head2 round
38  
39 data_type: TINYINT
40 default_value: 1
41 is_nullable: 0
42 size: 4
43  
44 =head2 lower_seed
45  
46 data_type: TINYINT
47 default_value: 0
48 is_nullable: 0
49 size: 1
50  
51 =cut
52  
53 4 __PACKAGE__->add_columns(
54 "id",
55 { data_type => "INT", default_value => undef, is_nullable => 0, size => 11 },
56 "winner",
57 {
58 data_type => "INT",
59 default_value => undef,
60 is_foreign_key => 1,
61 is_nullable => 1,
62 size => 11,
63 },
64 "round",
65 { data_type => "TINYINT", default_value => 1, is_nullable => 0, size => 4 },
66 "lower_seed",
67 { data_type => "TINYINT", default_value => 0, is_nullable => 0, size => 1 },
68 );
69 4 __PACKAGE__->set_primary_key("id");
70  
71 =head1 RELATIONS
72  
73 =head2 winner
74  
75 Type: belongs_to
76  
77 Related object: L<Bracket::Schema::Result::Team>
78  
79 =cut
80  
81 4 __PACKAGE__->belongs_to(
82 "winner",
83 "Bracket::Schema::Result::Team",
84 { id => "winner" },
85 { join_type => "LEFT" },
86 );
87  
88 =head2 picks
89  
90 Type: has_many
91  
92 Related object: L<Bracket::Schema::Result::Pick>
93  
94 =cut
95  
96 4 __PACKAGE__->has_many(
97 "picks",
98 "Bracket::Schema::Result::Pick",
99 { "foreign.game" => "self.id" },
100 );
101  
102  
103 # Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-03-07 15:22:35
104 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kdG47fAPyic/y4+PvlM5SQ
105  
106  
107 # You can replace this text with custom content, and it will be preserved on regeneration
108 4 1;
« lib/Bracket/Form/Password/Reset.pm ↑ Summary lib/Bracket/Schema/Result/Pick.pm »