Chinook/DB/Result/Invoice.pm untested

filter: Statementstmt 0.0% 0 / 28 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 34 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::Invoice;
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("Invoice");
16 __PACKAGE__->add_columns(
17 "invoiceid",
18 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
19 "customerid",
20 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
21 "invoicedate",
22 { data_type => "datetime", is_nullable => 0 },
23 "billingaddress",
24 { data_type => "nvarchar", is_nullable => 1, size => 70 },
25 "billingcity",
26 { data_type => "nvarchar", is_nullable => 1, size => 40 },
27 "billingstate",
28 { data_type => "nvarchar", is_nullable => 1, size => 40 },
29 "billingcountry",
30 { data_type => "nvarchar", is_nullable => 1, size => 40 },
31 "billingpostalcode",
32 { data_type => "nvarchar", is_nullable => 1, size => 10 },
33 "total",
34 { data_type => "numeric", is_nullable => 0, size => [10, 2] },
35 );
36 __PACKAGE__->set_primary_key("invoiceid");
37 __PACKAGE__->belongs_to(
38 "customerid",
39 "Rapi::Demo::Chinook::DB::Result::Customer",
40 { customerid => "customerid" },
41 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
42 );
43 __PACKAGE__->has_many(
44 "invoice_lines",
45 "Rapi::Demo::Chinook::DB::Result::InvoiceLine",
46 { "foreign.invoiceid" => "self.invoiceid" },
47 { cascade_copy => 0, cascade_delete => 0 },
48 );
49  
50  
51 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-09-12 15:36:29
52 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:J8wpjsKmVyoFQnEzPmQDtw
53  
54  
55 # You can replace this text with custom code or comments, and it will be preserved on regeneration
56 __PACKAGE__->meta->make_immutable;
57 1;