File Coverage

blib/lib/Bracket/Schema/Result/Token.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::Token;
2              
3             # Created by DBIx::Class::Schema::Loader
4             # DO NOT MODIFY THE FIRST PART OF THIS FILE
5              
6 1     1   702 use strict;
  1         2  
  1         33  
7 1     1   5 use warnings;
  1         3  
  1         26  
8              
9 1     1   5 use base 'DBIx::Class::Core';
  1         2  
  1         202  
10              
11              
12             =head1 NAME
13              
14             Bracket::Schema::Result::Token
15              
16             =cut
17              
18             __PACKAGE__->table("token");
19              
20             =head1 ACCESSORS
21              
22             =head2 player
23              
24             data_type: INT
25             default_value: undef
26             is_foreign_key: 1
27             is_nullable: 0
28             size: 11
29              
30             =head2 token
31              
32             data_type: VARCHAR
33             default_value: undef
34             is_nullable: 0
35             size: 64
36              
37             =head2 type
38              
39             data_type: VARCHAR
40             default_value: undef
41             is_nullable: 0
42             size: 64
43              
44             =cut
45              
46             __PACKAGE__->add_columns(
47             "player",
48             {
49             data_type => "INT",
50             default_value => undef,
51             is_foreign_key => 1,
52             is_nullable => 0,
53             size => 11,
54             },
55             "token",
56             {
57             data_type => "VARCHAR",
58             default_value => undef,
59             is_nullable => 0,
60             size => 64,
61             },
62             "type",
63             {
64             data_type => "VARCHAR",
65             default_value => undef,
66             is_nullable => 0,
67             size => 64,
68             },
69             );
70             __PACKAGE__->set_primary_key("token", "player");
71              
72             =head1 RELATIONS
73              
74             =head2 player
75              
76             Type: belongs_to
77              
78             Related object: L<Bracket::Schema::Result::Player>
79              
80             =cut
81              
82             __PACKAGE__->belongs_to(
83             "player",
84             "Bracket::Schema::Result::Player",
85             { id => "player" },
86             {},
87             );
88              
89              
90             # Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-03-02 17:10:27
91             # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hFFgfGDEUtR7ndqRU61GPQ
92              
93              
94             # You can replace this text with custom content, and it will be preserved on regeneration
95             1;