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

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 24 / 24 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/PostgreSQL/LogFile.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/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 {
22 data_type => "uuid",
23 default_value => \"uuid_generate_v4()",
24 is_nullable => 0,
25 size => 16,
26 },
27 "project_id",
28 { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 },
29 "user_id",
30 { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 },
31 "updated",
32 {
33 data_type => "timestamp",
34 default_value => \"current_timestamp",
35 is_nullable => 0,
36 original => { default_value => \"now()" },
37 },
38 "cpan_batch",
39 { data_type => "bigint", is_nullable => 1 },
40 );
41 1 __PACKAGE__->set_primary_key("permission_id");
42 1 __PACKAGE__->add_unique_constraint(
43 "permissions_project_id_user_id_key",
44 ["project_id", "user_id"],
45 );
46 1 __PACKAGE__->belongs_to(
47 "project",
48 "Test2::Harness::UI::Schema::Result::Project",
49 { project_id => "project_id" },
50 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
51 );
52 1 __PACKAGE__->belongs_to(
53 "user",
54 "Test2::Harness::UI::Schema::Result::User",
55 { user_id => "user_id" },
56 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
57 );
58  
59  
60 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:20
61 # DO NOT MODIFY ANY PART OF THIS FILE
62  
63 1 1;
« lib/Test2/Harness/UI/Schema/PostgreSQL/LogFile.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/PrimaryEmail.pm »