blib/lib/RackTables/Schema/Result/UserAccount.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 28 / 28 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/RackTables/Schema/Result/TagTree.pm ↑ Summary blib/lib/RackTables/Schema/Result/UserConfig.pm »
1 package RackTables::Schema::Result::UserAccount;
2  
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
5  
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use MooseX::NonMoose;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 extends 'DBIx::Class::Core';
13  
14  
15 =head1 NAME
16  
17 RackTables::Schema::Result::UserAccount
18  
19 =cut
20  
21 1 __PACKAGE__->table("UserAccount");
22  
23 =head1 ACCESSORS
24  
25 =head2 user_id
26  
27 data_type: 'integer'
28 extra: {unsigned => 1}
29 is_auto_increment: 1
30 is_nullable: 0
31  
32 =head2 user_name
33  
34 data_type: 'char'
35 default_value: (empty string)
36 is_nullable: 0
37 size: 64
38  
39 =head2 user_password_hash
40  
41 data_type: 'char'
42 is_nullable: 1
43 size: 40
44  
45 =head2 user_realname
46  
47 data_type: 'char'
48 is_nullable: 1
49 size: 64
50  
51 =cut
52  
53 1 __PACKAGE__->add_columns(
54 "user_id",
55 {
56 data_type => "integer",
57 extra => { unsigned => 1 },
58 is_auto_increment => 1,
59 is_nullable => 0,
60 },
61 "user_name",
62 { data_type => "char", default_value => "", is_nullable => 0, size => 64 },
63 "user_password_hash",
64 { data_type => "char", is_nullable => 1, size => 40 },
65 "user_realname",
66 { data_type => "char", is_nullable => 1, size => 64 },
67 );
68 1 __PACKAGE__->set_primary_key("user_id");
69 1 __PACKAGE__->add_unique_constraint("user_name", ["user_name"]);
70  
71 =head1 RELATIONS
72  
73 =head2 user_configs
74  
75 Type: has_many
76  
77 Related object: L<RackTables::Schema::Result::UserConfig>
78  
79 =cut
80  
81 1 __PACKAGE__->has_many(
82 "user_configs",
83 "RackTables::Schema::Result::UserConfig",
84 { "foreign.user" => "self.user_name" },
85 { cascade_copy => 0, cascade_delete => 0 },
86 );
87  
88  
89 # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-10-26 11:34:02
90 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pKScDv2cSmg+7zP6+DyAqA
91  
92  
93 # You can replace this text with custom code or comments, and it will be preserved on regeneration
94 1 __PACKAGE__->meta->make_immutable;
95 1 1;
« blib/lib/RackTables/Schema/Result/TagTree.pm ↑ Summary blib/lib/RackTables/Schema/Result/UserConfig.pm »