ExpenseTracker/Models/Result/Operation.pm untested

filter: Statementstmt 0.0% 0 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 27 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::Operation;
3 {
4 $ExpenseTracker::Models::Result::Operation::VERSION = '0.008';
5 }
6 {
7 $ExpenseTracker::Models::Result::Operation::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::Operation
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<operations>
29  
30 =cut
31  
32 __PACKAGE__->table("operations");
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 name
43  
44 data_type: 'varchar'
45 is_nullable: 1
46  
47 =head2 description
48  
49 data_type: 'varchar'
50 is_nullable: 1
51  
52 =head2 amount
53  
54 data_type: 'real'
55 is_nullable: 0
56  
57 =head2 currency_id
58  
59 data_type: 'integer'
60 default_value: 1
61 is_nullable: 0
62  
63 =head2 created_at
64  
65 data_type: 'datetime'
66 is_nullable: 0
67  
68 =head2 updated_at
69  
70 data_type: 'datetime'
71 default_value: current_timestamp
72 is_nullable: 0
73  
74 =head2 user_id
75  
76 data_type: 'integer'
77 is_nullable: 0
78  
79 =cut
80  
81 __PACKAGE__->add_columns(
82 "id",
83 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
84 "name",
85 { data_type => "varchar", is_nullable => 1 },
86 "description",
87 { data_type => "varchar", is_nullable => 1 },
88 "amount",
89 { data_type => "real", is_nullable => 0 },
90 "currency_id",
91 { data_type => "integer", default_value => 1, is_nullable => 0 },
92 "created_at",
93 { data_type => "datetime", is_nullable => 0 },
94 "updated_at",
95 {
96 data_type => "datetime",
97 default_value => \"current_timestamp",
98 is_nullable => 0,
99 },
100 "user_id",
101 { data_type => "integer", is_nullable => 0 },
102 );
103  
104 =head1 PRIMARY KEY
105  
106 =over 4
107  
108 =item * L</id>
109  
110 =back
111  
112 =cut
113  
114 __PACKAGE__->set_primary_key("id");
115  
116  
117 # Created by DBIx::Class::Schema::Loader v0.07017 @ 2012-07-08 11:25:25
118 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:fLlnmXdfwwvpOJboKwSPUQ
119  
120  
121 # You can replace this text with custom code or comments, and it will be preserved on regeneration
122  
123 __PACKAGE__->has_many(operations_category => 'ExpenseTracker::Models::Result::OperationsCategory', 'operation_id');
124 __PACKAGE__->many_to_many(categories => 'operations_category', 'category');
125  
126 __PACKAGE__->belongs_to(user => 'ExpenseTracker::Models::Result::User', 'user_id');
127 __PACKAGE__->belongs_to(currency => 'ExpenseTracker::Models::Result::Currency', 'currency_id');
128  
129 1;