Chinook/DB/Result/Employee.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 35 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::Employee;
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("Employee");
16 __PACKAGE__->add_columns(
17 "employeeid",
18 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
19 "lastname",
20 { data_type => "nvarchar", is_nullable => 0, size => 20 },
21 "firstname",
22 { data_type => "nvarchar", is_nullable => 0, size => 20 },
23 "title",
24 { data_type => "nvarchar", is_nullable => 1, size => 30 },
25 "reportsto",
26 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
27 "birthdate",
28 { data_type => "datetime", is_nullable => 1 },
29 "hiredate",
30 { data_type => "datetime", is_nullable => 1 },
31 "address",
32 { data_type => "nvarchar", is_nullable => 1, size => 70 },
33 "city",
34 { data_type => "nvarchar", is_nullable => 1, size => 40 },
35 "state",
36 { data_type => "nvarchar", is_nullable => 1, size => 40 },
37 "country",
38 { data_type => "nvarchar", is_nullable => 1, size => 40 },
39 "postalcode",
40 { data_type => "nvarchar", is_nullable => 1, size => 10 },
41 "phone",
42 { data_type => "nvarchar", is_nullable => 1, size => 24 },
43 "fax",
44 { data_type => "nvarchar", is_nullable => 1, size => 24 },
45 "email",
46 { data_type => "nvarchar", is_nullable => 1, size => 60 },
47 );
48 __PACKAGE__->set_primary_key("employeeid");
49 __PACKAGE__->has_many(
50 "customers",
51 "Rapi::Demo::Chinook::DB::Result::Customer",
52 { "foreign.supportrepid" => "self.employeeid" },
53 { cascade_copy => 0, cascade_delete => 0 },
54 );
55 __PACKAGE__->has_many(
56 "employees",
57 "Rapi::Demo::Chinook::DB::Result::Employee",
58 { "foreign.reportsto" => "self.employeeid" },
59 { cascade_copy => 0, cascade_delete => 0 },
60 );
61 __PACKAGE__->belongs_to(
62 "reportsto",
63 "Rapi::Demo::Chinook::DB::Result::Employee",
64 { employeeid => "reportsto" },
65 {
66 is_deferrable => 0,
67 join_type => "LEFT",
68 on_delete => "NO ACTION",
69 on_update => "NO ACTION",
70 },
71 );
72  
73  
74 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-09-12 15:36:29
75 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wHFFXU19HU2txd7Slmw1vg
76  
77  
78 # You can replace this text with custom code or comments, and it will be preserved on regeneration
79 __PACKAGE__->meta->make_immutable;
80 1;