Chinook/DB/Result/Customer.pm untested

filter: Statementstmt 0.0% 0 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 33 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 Rapi::Demo::Chinook::DB::Result::Customer;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6  
7 use strict;
8 use warnings;
9  
10 use Moose;
11 use MooseX::NonMoose;
12 use MooseX::MarkAsMethods autoclean => 1;
13 extends 'DBIx::Class::Core';
14 __PACKAGE__->load_components("InflateColumn::DateTime");
15 __PACKAGE__->table("Customer");
16 __PACKAGE__->add_columns(
17 "customerid",
18 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
19 "firstname",
20 { data_type => "nvarchar", is_nullable => 0, size => 40 },
21 "lastname",
22 { data_type => "nvarchar", is_nullable => 0, size => 20 },
23 "company",
24 { data_type => "nvarchar", is_nullable => 1, size => 80 },
25 "address",
26 { data_type => "nvarchar", is_nullable => 1, size => 70 },
27 "city",
28 { data_type => "nvarchar", is_nullable => 1, size => 40 },
29 "state",
30 { data_type => "nvarchar", is_nullable => 1, size => 40 },
31 "country",
32 { data_type => "nvarchar", is_nullable => 1, size => 40 },
33 "postalcode",
34 { data_type => "nvarchar", is_nullable => 1, size => 10 },
35 "phone",
36 { data_type => "nvarchar", is_nullable => 1, size => 24 },
37 "fax",
38 { data_type => "nvarchar", is_nullable => 1, size => 24 },
39 "email",
40 { data_type => "nvarchar", is_nullable => 0, size => 60 },
41 "supportrepid",
42 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
43 );
44 __PACKAGE__->set_primary_key("customerid");
45 __PACKAGE__->has_many(
46 "invoices",
47 "Rapi::Demo::Chinook::DB::Result::Invoice",
48 { "foreign.customerid" => "self.customerid" },
49 { cascade_copy => 0, cascade_delete => 0 },
50 );
51 __PACKAGE__->belongs_to(
52 "supportrepid",
53 "Rapi::Demo::Chinook::DB::Result::Employee",
54 { employeeid => "supportrepid" },
55 {
56 is_deferrable => 0,
57 join_type => "LEFT",
58 on_delete => "NO ACTION",
59 on_update => "NO ACTION",
60 },
61 );
62  
63  
64 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-09-12 15:36:29
65 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3WdAq+vRAFXbRXBhHpK3TQ
66  
67  
68 # You can replace this text with custom code or comments, and it will be preserved on regeneration
69 __PACKAGE__->meta->make_immutable;
70 1;