TaskPipe/SchemaTemplate_Project_Test/Result/Company.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 23 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 TaskPipe::SchemaTemplate_Project_Test::Result::Company;
3  
4 use strict;
5 use warnings;
6  
7 use base 'DBIx::Class::Core';
8  
9 __PACKAGE__->load_components("InflateColumn::DateTime");
10 __PACKAGE__->table("company");
11 __PACKAGE__->add_columns(
12 "id",
13 { data_type => "bigint", is_auto_increment => 1, is_nullable => 0 },
14 "city_id",
15 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
16 "label",
17 { data_type => "varchar", is_nullable => 1, size => 255 },
18 "modified_dt",
19 { data_type => "datetime", is_nullable => 1 },
20 "created_dt",
21 { data_type => "datetime", is_nullable => 1 },
22 );
23  
24 __PACKAGE__->set_primary_key("id");
25 __PACKAGE__->belongs_to(
26 "city",
27 "TaskPipe::SchemaTemplate_Project_Test::Result::City",
28 { id => "city_id" },
29 {
30 is_deferrable => 0,
31 join_type => "LEFT",
32 on_delete => "NO ACTION",
33 on_update => "NO ACTION",
34 },
35 );
36  
37 __PACKAGE__->has_many(
38 "employees",
39 "TaskPipe::SchemaTemplate_Project_Test::Result::Employee",
40 { "foreign.company_id" => "self.id" },
41 { cascade_copy => 0, cascade_delete => 0 },
42 );
43  
44 1;