line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AproJo::DB::Schema::Result::Unit; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1557
|
use strict; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
76
|
|
4
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
71
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
10
|
use base 'DBIx::Class::Core'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
429
|
|
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; |