line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AproJo::DB::Schema::Result::Unit; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1140
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
52
|
|
4
|
2
|
|
|
2
|
|
7
|
use warnings; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
41
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
6
|
use base 'DBIx::Class::Core'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
254
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
__PACKAGE__->table('units'); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__->add_columns( |
11
|
|
|
|
|
|
|
'unit_id', |
12
|
|
|
|
|
|
|
{data_type => 'integer', is_auto_increment => 1, is_nullable => 0}, |
13
|
|
|
|
|
|
|
'description_short', |
14
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 0, size => 50}, |
15
|
|
|
|
|
|
|
'description_long', |
16
|
|
|
|
|
|
|
{data_type => 'varchar', default_value => '', is_nullable => 1, size => 255}, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__PACKAGE__->set_primary_key('unit_id'); |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
22
|
|
|
|
|
|
|
'articles' => 'AproJo::DB::Schema::Result::Article', |
23
|
|
|
|
|
|
|
'unit_id' |
24
|
|
|
|
|
|
|
); |
25
|
|
|
|
|
|
|
__PACKAGE__->has_many( |
26
|
|
|
|
|
|
|
'orderitems' => 'AproJo::DB::Schema::Result::Orderitem', |
27
|
|
|
|
|
|
|
'unit_id' |
28
|
|
|
|
|
|
|
); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |