lib/App/DrivePlayer/Schema/Result/ScanFolder.pm

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 18 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/App/DrivePlayer.pm ↑ Summary lib/App/DrivePlayer/Setup.pm »
1 package App::DrivePlayer::Schema::Result::ScanFolder;
2  
3 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use base 'DBIx::Class::Core';
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 2 __PACKAGE__->table('scan_folders');
8  
9 2 __PACKAGE__->add_columns(
10 id => {
11 data_type => 'integer',
12 is_auto_increment => 1,
13 is_nullable => 0,
14 },
15 drive_id => {
16 data_type => 'text',
17 is_nullable => 0,
18 },
19 name => {
20 data_type => 'text',
21 is_nullable => 0,
22 },
23 );
24  
25 2 __PACKAGE__->set_primary_key('id');
26 2 __PACKAGE__->add_unique_constraint( unique_drive_id => ['drive_id'] );
27  
28 2 __PACKAGE__->has_many(
29 folders => 'App::DrivePlayer::Schema::Result::Folder',
30 'scan_folder_id',
31 { cascade_delete => 1 },
32 );
33  
34 2 1;
35  
36 __END__
« lib/App/DrivePlayer.pm ↑ Summary lib/App/DrivePlayer/Setup.pm »