ExpenseTracker/Models/Result/User.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 29 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use utf8;
2 package ExpenseTracker::Models::Result::User;
3 {
4 $ExpenseTracker::Models::Result::User::VERSION = '0.008';
5 }
6 {
7 $ExpenseTracker::Models::Result::User::VERSION = '0.008';
8 }
9  
10 # Created by DBIx::Class::Schema::Loader
11 # DO NOT MODIFY THE FIRST PART OF THIS FILE
12  
13 =head1 NAME
14  
15 ExpenseTracker::Models::Result::User
16  
17 =head1 VERSION
18  
19 version 0.008
20  
21 =cut
22  
23 use strict;
24 use warnings;
25  
26 use base 'DBIx::Class::Core';
27  
28 =head1 TABLE: C<users>
29  
30 =cut
31  
32 __PACKAGE__->table("users");
33  
34 =head1 ACCESSORS
35  
36 =head2 id
37  
38 data_type: 'integer'
39 is_auto_increment: 1
40 is_nullable: 0
41  
42 =head2 username
43  
44 data_type: 'varchar'
45 is_nullable: 0
46  
47 =head2 password
48  
49 data_type: 'char'
50 is_nullable: 0
51  
52 =head2 email
53  
54 data_type: 'varchar'
55 is_nullable: 0
56  
57 =head2 first_name
58  
59 data_type: 'varchar'
60 is_nullable: 1
61  
62 =head2 last_name
63  
64 data_type: 'varchar'
65 is_nullable: 1
66  
67 =head2 birth_date
68  
69 data_type: 'datetime'
70 is_nullable: 1
71  
72 =head2 created_at
73  
74 data_type: 'datetime'
75 is_nullable: 1
76  
77 =cut
78  
79 __PACKAGE__->add_columns(
80 "id",
81 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
82 "username",
83 { data_type => "varchar", is_nullable => 0 },
84 "password",
85 { data_type => "char", is_nullable => 0 },
86 "email",
87 { data_type => "varchar", is_nullable => 0 },
88 "first_name",
89 { data_type => "varchar", is_nullable => 1 },
90 "last_name",
91 { data_type => "varchar", is_nullable => 1 },
92 "birth_date",
93 { data_type => "datetime", is_nullable => 1 },
94 "created_at",
95 { data_type => "datetime", is_nullable => 1 },
96 );
97  
98 =head1 PRIMARY KEY
99  
100 =over 4
101  
102 =item * L</id>
103  
104 =back
105  
106 =cut
107  
108 __PACKAGE__->set_primary_key("id");
109  
110 =head1 UNIQUE CONSTRAINTS
111  
112 =head2 C<email_unique>
113  
114 =over 4
115  
116 =item * L</email>
117  
118 =back
119  
120 =cut
121  
122 __PACKAGE__->add_unique_constraint("email_unique", ["email"]);
123  
124 =head2 C<username_unique>
125  
126 =over 4
127  
128 =item * L</username>
129  
130 =back
131  
132 =cut
133  
134 __PACKAGE__->add_unique_constraint("username_unique", ["username"]);
135  
136  
137 # Created by DBIx::Class::Schema::Loader v0.07017 @ 2012-07-08 11:25:25
138 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JewiMTxAfKfxnGlQAXq/AA
139  
140  
141 # You can replace this text with custom code or comments, and it will be preserved on regeneration
142  
143 __PACKAGE__->has_many(categories => 'ExpenseTracker::Models::Result::Category', 'user_id');
144 __PACKAGE__->has_many(operations => 'ExpenseTracker::Models::Result::Operation', 'user_id');
145  
146 1;