lib/Bracket/Schema/Result/Team.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Bracket/Schema/Result/Session.pm ↑ Summary lib/Bracket/Schema/Result/Token.pm »
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 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::Team
15  
16 =cut
17  
18 4 __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 4 __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 4 __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 4 __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 4 __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 4 __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 4 1;
« lib/Bracket/Schema/Result/Session.pm ↑ Summary lib/Bracket/Schema/Result/Token.pm »