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

filter: Statementstmt 100% 22 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 26 / 26 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/PrimaryEmail.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/Reporting.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Test2::Harness::UI::Schema::Result::Project;
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("projects");
19 1 __PACKAGE__->add_columns(
20 "project_id",
21 {
22 data_type => "uuid",
23 default_value => \"uuid_generate_v4()",
24 is_nullable => 0,
25 size => 16,
26 },
27 "name",
28 { data_type => "citext", is_nullable => 0 },
29 "owner",
30 { data_type => "uuid", is_foreign_key => 1, is_nullable => 1, size => 16 },
31 );
32 1 __PACKAGE__->set_primary_key("project_id");
33 1 __PACKAGE__->add_unique_constraint("projects_name_key", ["name"]);
34 1 __PACKAGE__->belongs_to(
35 "owner",
36 "Test2::Harness::UI::Schema::Result::User",
37 { user_id => "owner" },
38 {
39 is_deferrable => 0,
40 join_type => "LEFT",
41 on_delete => "NO ACTION",
42 on_update => "NO ACTION",
43 },
44 );
45 1 __PACKAGE__->has_many(
46 "permissions",
47 "Test2::Harness::UI::Schema::Result::Permission",
48 { "foreign.project_id" => "self.project_id" },
49 { cascade_copy => 0, cascade_delete => 0 },
50 );
51 1 __PACKAGE__->has_many(
52 "reportings",
53 "Test2::Harness::UI::Schema::Result::Reporting",
54 { "foreign.project_id" => "self.project_id" },
55 { cascade_copy => 0, cascade_delete => 0 },
56 );
57 1 __PACKAGE__->has_many(
58 "runs",
59 "Test2::Harness::UI::Schema::Result::Run",
60 { "foreign.project_id" => "self.project_id" },
61 { cascade_copy => 0, cascade_delete => 0 },
62 );
63  
64  
65 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:20
66 # DO NOT MODIFY ANY PART OF THIS FILE
67  
68 1 1;
« lib/Test2/Harness/UI/Schema/PostgreSQL/PrimaryEmail.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/Reporting.pm »