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

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 23 / 23 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/Reporting.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/ResourceBatch.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Test2::Harness::UI::Schema::Result::Resource;
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("resources");
19 1 __PACKAGE__->add_columns(
20 "resource_id",
21 {
22 data_type => "uuid",
23 default_value => \"uuid_generate_v4()",
24 is_nullable => 0,
25 size => 16,
26 },
27 "resource_batch_id",
28 { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 },
29 "batch_ord",
30 { data_type => "integer", is_nullable => 0 },
31 "module",
32 { data_type => "varchar", is_nullable => 0, size => 512 },
33 "data",
34 { data_type => "jsonb", is_nullable => 0 },
35 );
36 1 __PACKAGE__->set_primary_key("resource_id");
37 1 __PACKAGE__->add_unique_constraint(
38 "resources_resource_batch_id_batch_ord_key",
39 ["resource_batch_id", "batch_ord"],
40 );
41 1 __PACKAGE__->belongs_to(
42 "resource_batch",
43 "Test2::Harness::UI::Schema::Result::ResourceBatch",
44 { resource_batch_id => "resource_batch_id" },
45 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
46 );
47  
48  
49 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:20
50 # DO NOT MODIFY ANY PART OF THIS FILE
51  
52 1 1;
« lib/Test2/Harness/UI/Schema/PostgreSQL/Reporting.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/ResourceBatch.pm »