lib/Test2/Harness/UI/Schema/MySQL/Permission.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Test2/Harness/UI/Schema/MySQL/LogFile.pm ↑ Summary lib/Test2/Harness/UI/Schema/MySQL/PrimaryEmail.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Test2::Harness::UI::Schema::Result::Permission;
3  
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY ANY PART OF THIS FILE
6  
7 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use base 'Test2::Harness::UI::Schema::ResultBase';
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 __PACKAGE__->load_components(
12 "InflateColumn::DateTime",
13 "InflateColumn::Serializer",
14 "InflateColumn::Serializer::JSON",
15 "Tree::AdjacencyList",
16 "UUIDColumns",
17 );
18 1 __PACKAGE__->table("permissions");
19 1 __PACKAGE__->add_columns(
20 "permission_id",
21 { data_type => "binary", is_nullable => 0, size => 16 },
22 "project_id",
23 { data_type => "binary", is_foreign_key => 1, is_nullable => 0, size => 16 },
24 "user_id",
25 { data_type => "binary", is_foreign_key => 1, is_nullable => 0, size => 16 },
26 "updated",
27 {
28 data_type => "timestamp",
29 datetime_undef_if_invalid => 1,
30 default_value => \"current_timestamp",
31 is_nullable => 0,
32 },
33 "cpan_batch",
34 { data_type => "bigint", is_nullable => 1 },
35 );
36 1 __PACKAGE__->set_primary_key("permission_id");
37 1 __PACKAGE__->add_unique_constraint("project_id", ["project_id", "user_id"]);
38 1 __PACKAGE__->belongs_to(
39 "project",
40 "Test2::Harness::UI::Schema::Result::Project",
41 { project_id => "project_id" },
42 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
43 );
44 1 __PACKAGE__->belongs_to(
45 "user",
46 "Test2::Harness::UI::Schema::Result::User",
47 { user_id => "user_id" },
48 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
49 );
50  
51  
52 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:14
53 1 ▶use Test2::Harness::UI::UUID qw/uuid_inflate uuid_deflate/;
Subroutine BEGIN: called CC=1 SCAR=0.0
54 1 __PACKAGE__->inflate_column('user_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
55 1 __PACKAGE__->inflate_column('project_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
56 1 __PACKAGE__->inflate_column('permission_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
57 # DO NOT MODIFY ANY PART OF THIS FILE
58  
59 1 1;
« lib/Test2/Harness/UI/Schema/MySQL/LogFile.pm ↑ Summary lib/Test2/Harness/UI/Schema/MySQL/PrimaryEmail.pm »