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

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