AproJo/DB/Schema/Result/Unit.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« AproJo/DB/Schema/Result/TimeEntry.pm ↑ Summary AproJo/DB/Schema/Result/User.pm »
1 package AproJo::DB::Schema::Result::Unit;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 2 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 2 __PACKAGE__->table('units');
9  
10 2 __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 2 __PACKAGE__->set_primary_key('unit_id');
20  
21 2 __PACKAGE__->has_many(
22 'articles' => 'AproJo::DB::Schema::Result::Article',
23 'unit_id'
24 );
25 2 __PACKAGE__->has_many(
26 'orderitems' => 'AproJo::DB::Schema::Result::Orderitem',
27 'unit_id'
28 );
29  
30 2 1;
« AproJo/DB/Schema/Result/TimeEntry.pm ↑ Summary AproJo/DB/Schema/Result/User.pm »