Class/Example/Schema/Result/CD/Track.pm

filter: Statementstmt 100% 10 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Class/Example/Schema/Result/CD/Artist.pm ↑ Summary Class/Example/Schema/Result/Company.pm »
1 package Test::DBIx::Class::Example::Schema::Result::CD::Track; {
2 15 ▶ use base 'Test::DBIx::Class::Example::Schema::Result';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 15 __PACKAGE__->table('cd_track');
5  
6 15 __PACKAGE__->add_columns(
7 track_id => {
8 data_type => 'varchar',
9 size => '36',
10 is_nullable => 0,
11 },
12 fk_cd_id => {
13 data_type => 'varchar',
14 size => '36',
15 is_nullable => 0,
16 },
17 position => {
18 data_type => 'integer',
19 is_nullable => 0,
20 },
21 title => {
22 data_type => 'varchar',
23 size => '50',
24 is_nullable => 0,
25 },
26 created => {
27 data_type => 'timestamp',
28 set_on_create => 1,
29 is_nullable => 0,
30 },
31 );
32  
33 15 __PACKAGE__->set_primary_key('track_id');
34 15 __PACKAGE__->uuid_columns('track_id');
35  
36  
37 15 __PACKAGE__->belongs_to(
38 cd => 'Test::DBIx::Class::Example::Schema::Result::CD',
39 { 'foreign.cd_id' => 'self.fk_cd_id'},
40 );
41 } 1
42  
43 15 __END__
« Class/Example/Schema/Result/CD/Artist.pm ↑ Summary Class/Example/Schema/Result/Company.pm »