lib/Bracket/Schema/Result/PlayerRole.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/Schema/Result/Player.pm ↑ Summary lib/Bracket/Schema/Result/Region.pm »
1 package Bracket::Schema::Result::PlayerRole;
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::PlayerRole
15  
16 =cut
17  
18 4 __PACKAGE__->table("player_role");
19  
20 =head1 ACCESSORS
21  
22 =head2 player
23  
24 data_type: INT
25 default_value: 0
26 is_foreign_key: 1
27 is_nullable: 0
28 size: 11
29  
30 =head2 role
31  
32 data_type: INT
33 default_value: 0
34 is_foreign_key: 1
35 is_nullable: 0
36 size: 11
37  
38 =cut
39  
40 4 __PACKAGE__->add_columns(
41 "player",
42 {
43 data_type => "INT",
44 default_value => 0,
45 is_foreign_key => 1,
46 is_nullable => 0,
47 size => 11,
48 },
49 "role",
50 {
51 data_type => "INT",
52 default_value => 0,
53 is_foreign_key => 1,
54 is_nullable => 0,
55 size => 11,
56 },
57 );
58 4 __PACKAGE__->set_primary_key("player", "role");
59  
60 =head1 RELATIONS
61  
62 =head2 player
63  
64 Type: belongs_to
65  
66 Related object: L<Bracket::Schema::Result::Player>
67  
68 =cut
69  
70 4 __PACKAGE__->belongs_to(
71 "player",
72 "Bracket::Schema::Result::Player",
73 { id => "player" },
74 {},
75 );
76  
77 =head2 role
78  
79 Type: belongs_to
80  
81 Related object: L<Bracket::Schema::Result::Role>
82  
83 =cut
84  
85 4 __PACKAGE__->belongs_to("role", "Bracket::Schema::Result::Role", { id => "role" }, {});
86  
87  
88 # Created by DBIx::Class::Schema::Loader v0.05003 @ 2010-03-02 09:36:49
89 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0lzcb/vzXr+kUZ0fJmnWkQ
90  
91  
92 # You can replace this text with custom content, and it will be preserved on regeneration
93  
94 4 1;
« lib/Bracket/Schema/Result/Player.pm ↑ Summary lib/Bracket/Schema/Result/Region.pm »