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