Class/Example/Schema/Result/Job.pm

filter: Statementstmt 100% 12 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 1 / 1 Podpod n/a totaltotal 100% 13 / 13 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
CRAP 1.0
« Class/Example/Schema/Result/GermanPhone.pm ↑ Summary Class/Example/Schema/Result/Person.pm »
1 package Test::DBIx::Class::Example::Schema::Result::Job; {
2 15 ▶ use base 'Test::DBIx::Class::Example::Schema::Result';
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 15 __PACKAGE__->table('job');
5  
6 15 __PACKAGE__->add_columns(
7 job_id => {
8 data_type => 'varchar',
9 size => '36',
10 is_nullable => 0,
11 },
12 name => {
13 data_type => 'varchar',
14 size => '20',
15 is_nullable => 0,
16 },
17 description => {
18 data_type => 'varchar',
19 size => '100',
20 is_nullable => 0,
21 },
22 );
23  
24 15 __PACKAGE__->set_primary_key('job_id');
25 15 __PACKAGE__->uuid_columns('job_id');
26  
27 15 __PACKAGE__->has_many(
28 company_employee_rs => 'Test::DBIx::Class::Example::Schema::Result::Company::Employee',
29 { 'foreign.fk_job_id' => 'self.job_id'}
30 );
31  
32 15 __PACKAGE__->many_to_many(
33 companies => 'company_job_rs', 'company',
34 );
35  
36 15 __PACKAGE__->many_to_many(
37 employees => 'company_job_rs', 'employee',
38 );
39  
40 } 1
41  
42 15 __END__
« Class/Example/Schema/Result/GermanPhone.pm ↑ Summary Class/Example/Schema/Result/Person.pm »