| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Bracket::Schema::Result::Team; |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader |
|
4
|
|
|
|
|
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE |
|
5
|
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
703
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
37
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
31
|
|
|
8
|
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
6
|
use base 'DBIx::Class::Core'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
315
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Bracket::Schema::Result::Team |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
__PACKAGE__->table("team"); |
|
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 seed |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
data_type: TINYINT |
|
32
|
|
|
|
|
|
|
default_value: undef |
|
33
|
|
|
|
|
|
|
extra: HASH(0x249d388) |
|
34
|
|
|
|
|
|
|
is_nullable: 0 |
|
35
|
|
|
|
|
|
|
size: 3 |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head2 name |
|
38
|
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
data_type: VARCHAR |
|
40
|
|
|
|
|
|
|
default_value: undef |
|
41
|
|
|
|
|
|
|
is_nullable: 0 |
|
42
|
|
|
|
|
|
|
size: 32 |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head2 region |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
data_type: INT |
|
47
|
|
|
|
|
|
|
default_value: undef |
|
48
|
|
|
|
|
|
|
is_foreign_key: 1 |
|
49
|
|
|
|
|
|
|
is_nullable: 0 |
|
50
|
|
|
|
|
|
|
size: 11 |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=head2 round_out |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
data_type: TINYINT |
|
55
|
|
|
|
|
|
|
default_value: 7 |
|
56
|
|
|
|
|
|
|
is_nullable: 0 |
|
57
|
|
|
|
|
|
|
size: 4 |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
|
60
|
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
|
62
|
|
|
|
|
|
|
"id", |
|
63
|
|
|
|
|
|
|
{ data_type => "INT", default_value => undef, is_nullable => 0, size => 11 }, |
|
64
|
|
|
|
|
|
|
"seed", |
|
65
|
|
|
|
|
|
|
{ |
|
66
|
|
|
|
|
|
|
data_type => "TINYINT", |
|
67
|
|
|
|
|
|
|
default_value => undef, |
|
68
|
|
|
|
|
|
|
extra => { unsigned => 1 }, |
|
69
|
|
|
|
|
|
|
is_nullable => 0, |
|
70
|
|
|
|
|
|
|
size => 3, |
|
71
|
|
|
|
|
|
|
}, |
|
72
|
|
|
|
|
|
|
"name", |
|
73
|
|
|
|
|
|
|
{ |
|
74
|
|
|
|
|
|
|
data_type => "VARCHAR", |
|
75
|
|
|
|
|
|
|
default_value => undef, |
|
76
|
|
|
|
|
|
|
is_nullable => 0, |
|
77
|
|
|
|
|
|
|
size => 32, |
|
78
|
|
|
|
|
|
|
}, |
|
79
|
|
|
|
|
|
|
"region", |
|
80
|
|
|
|
|
|
|
{ |
|
81
|
|
|
|
|
|
|
data_type => "INT", |
|
82
|
|
|
|
|
|
|
default_value => undef, |
|
83
|
|
|
|
|
|
|
is_foreign_key => 1, |
|
84
|
|
|
|
|
|
|
is_nullable => 0, |
|
85
|
|
|
|
|
|
|
size => 11, |
|
86
|
|
|
|
|
|
|
}, |
|
87
|
|
|
|
|
|
|
"round_out", |
|
88
|
|
|
|
|
|
|
{ data_type => "TINYINT", default_value => 7, is_nullable => 0, size => 4 }, |
|
89
|
|
|
|
|
|
|
); |
|
90
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key("id"); |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head1 RELATIONS |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 games |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
Type: has_many |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Related object: L<Bracket::Schema::Result::Game> |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=cut |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
|
103
|
|
|
|
|
|
|
"games", |
|
104
|
|
|
|
|
|
|
"Bracket::Schema::Result::Game", |
|
105
|
|
|
|
|
|
|
{ "foreign.winner" => "self.id" }, |
|
106
|
|
|
|
|
|
|
); |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head2 picks |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Type: has_many |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
Related object: L<Bracket::Schema::Result::Pick> |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
=cut |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
|
117
|
|
|
|
|
|
|
"picks", |
|
118
|
|
|
|
|
|
|
"Bracket::Schema::Result::Pick", |
|
119
|
|
|
|
|
|
|
{ "foreign.pick" => "self.id" }, |
|
120
|
|
|
|
|
|
|
); |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head2 region |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Type: belongs_to |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
Related object: L<Bracket::Schema::Result::Region> |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
=cut |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
__PACKAGE__->belongs_to( |
|
131
|
|
|
|
|
|
|
"region", |
|
132
|
|
|
|
|
|
|
"Bracket::Schema::Result::Region", |
|
133
|
|
|
|
|
|
|
{ id => "region" }, |
|
134
|
|
|
|
|
|
|
{}, |
|
135
|
|
|
|
|
|
|
); |
|
136
|
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-03-17 12:15:08 |
|
139
|
|
|
|
|
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uFLHHEtHCDiKQkJf0XTrNg |
|
140
|
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
# You can replace this text with custom content, and it will be preserved on regeneration |
|
143
|
|
|
|
|
|
|
1; |