AproJo/DB/Schema/Result/Article.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 17 / 17 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/Address.pm ↑ Summary AproJo/DB/Schema/Result/Configuration.pm »
1 package AproJo::DB::Schema::Result::Article;
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('articles');
9  
10 2 __PACKAGE__->add_columns(
11 'article_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 'unit_id',
18 {
19 data_type => 'integer',
20 default_value => 1,
21 is_nullable => 0,
22 is_foreign_key => 1
23 },
24 'price',
25 {
26 data_type => 'decimal',
27 default_value => '0.00',
28 is_nullable => 0,
29 size => [10, 2],
30 },
31 'timeable',
32 {data_type => 'tinyint', default_value => 0, is_nullable => 1},
33 );
34  
35 2 __PACKAGE__->set_primary_key('article_id');
36  
37 2 __PACKAGE__->belongs_to(
38 'unit' => 'AproJo::DB::Schema::Result::Unit',
39 'unit_id'
40 );
41  
42 2 1;
« AproJo/DB/Schema/Result/Address.pm ↑ Summary AproJo/DB/Schema/Result/Configuration.pm »