lib/Test2/Harness/UI/Schema/MySQL/SessionHost.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/Session.pm ↑ Summary lib/Test2/Harness/UI/Schema/MySQL/SourceFile.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Test2::Harness::UI::Schema::Result::SessionHost;
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("session_hosts");
19 1 __PACKAGE__->add_columns(
20 "session_host_id",
21 { data_type => "binary", is_nullable => 0, size => 16 },
22 "session_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 => 1, size => 16 },
26 "created",
27 {
28 data_type => "timestamp",
29 datetime_undef_if_invalid => 1,
30 default_value => \"current_timestamp",
31 is_nullable => 0,
32 },
33 "accessed",
34 {
35 data_type => "timestamp",
36 datetime_undef_if_invalid => 1,
37 default_value => \"current_timestamp",
38 is_nullable => 0,
39 },
40 "address",
41 { data_type => "varchar", is_nullable => 0, size => 128 },
42 "agent",
43 { data_type => "varchar", is_nullable => 0, size => 128 },
44 );
45 1 __PACKAGE__->set_primary_key("session_host_id");
46 1 __PACKAGE__->add_unique_constraint("session_id", ["session_id", "address", "agent"]);
47 1 __PACKAGE__->belongs_to(
48 "session",
49 "Test2::Harness::UI::Schema::Result::Session",
50 { session_id => "session_id" },
51 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
52 );
53 1 __PACKAGE__->belongs_to(
54 "user",
55 "Test2::Harness::UI::Schema::Result::User",
56 { user_id => "user_id" },
57 {
58 is_deferrable => 1,
59 join_type => "LEFT",
60 on_delete => "RESTRICT",
61 on_update => "RESTRICT",
62 },
63 );
64  
65  
66 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:14
67 1 ▶use Test2::Harness::UI::UUID qw/uuid_inflate uuid_deflate/;
Subroutine BEGIN: called CC=1 SCAR=0.0
68 1 __PACKAGE__->inflate_column('session_host_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
69 1 __PACKAGE__->inflate_column('user_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
70 1 __PACKAGE__->inflate_column('session_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate });
71 # DO NOT MODIFY ANY PART OF THIS FILE
72  
73 1 1;
« lib/Test2/Harness/UI/Schema/MySQL/Session.pm ↑ Summary lib/Test2/Harness/UI/Schema/MySQL/SourceFile.pm »