Chinook/DB/Result/Track.pm untested

filter: Statementstmt 0.0% 0 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 6 Podpod n/a totaltotal 0.0% 0 / 39 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::Track;
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("Track");
16 __PACKAGE__->add_columns(
17 "trackid",
18 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
19 "name",
20 { data_type => "nvarchar", is_nullable => 0, size => 200 },
21 "albumid",
22 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
23 "mediatypeid",
24 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
25 "genreid",
26 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
27 "composer",
28 { data_type => "nvarchar", is_nullable => 1, size => 220 },
29 "milliseconds",
30 { data_type => "integer", is_nullable => 0 },
31 "bytes",
32 { data_type => "integer", is_nullable => 1 },
33 "unitprice",
34 { data_type => "numeric", is_nullable => 0, size => [10, 2] },
35 );
36 __PACKAGE__->set_primary_key("trackid");
37 __PACKAGE__->belongs_to(
38 "albumid",
39 "Rapi::Demo::Chinook::DB::Result::Album",
40 { albumid => "albumid" },
41 {
42 is_deferrable => 0,
43 join_type => "LEFT",
44 on_delete => "NO ACTION",
45 on_update => "NO ACTION",
46 },
47 );
48 __PACKAGE__->belongs_to(
49 "genreid",
50 "Rapi::Demo::Chinook::DB::Result::Genre",
51 { genreid => "genreid" },
52 {
53 is_deferrable => 0,
54 join_type => "LEFT",
55 on_delete => "NO ACTION",
56 on_update => "NO ACTION",
57 },
58 );
59 __PACKAGE__->has_many(
60 "invoice_lines",
61 "Rapi::Demo::Chinook::DB::Result::InvoiceLine",
62 { "foreign.trackid" => "self.trackid" },
63 { cascade_copy => 0, cascade_delete => 0 },
64 );
65 __PACKAGE__->belongs_to(
66 "mediatypeid",
67 "Rapi::Demo::Chinook::DB::Result::MediaType",
68 { mediatypeid => "mediatypeid" },
69 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
70 );
71 __PACKAGE__->has_many(
72 "playlist_tracks",
73 "Rapi::Demo::Chinook::DB::Result::PlaylistTrack",
74 { "foreign.trackid" => "self.trackid" },
75 { cascade_copy => 0, cascade_delete => 0 },
76 );
77 __PACKAGE__->many_to_many("playlistids", "playlist_tracks", "playlistid");
78  
79  
80 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-09-12 15:36:29
81 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LL9b6tXK9jLBIgjhimty4g
82  
83  
84 # You can replace this text with custom code or comments, and it will be preserved on regeneration
85 __PACKAGE__->meta->make_immutable;
86 1;