lib/Test2/Harness/UI/Schema/PostgreSQL/ApiKey.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/MySQL/User.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/Binary.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Test2::Harness::UI::Schema::Result::ApiKey;
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("api_keys");
19 1 __PACKAGE__->add_columns(
20 "api_key_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 "name",
30 { data_type => "varchar", is_nullable => 0, size => 128 },
31 "value",
32 { data_type => "varchar", is_nullable => 0, size => 36 },
33 "status",
34 {
35 data_type => "enum",
36 default_value => "active",
37 extra => {
38 custom_type_name => "api_key_status",
39 list => ["active", "disabled", "revoked"],
40 },
41 is_nullable => 0,
42 },
43 );
44 1 __PACKAGE__->set_primary_key("api_key_id");
45 1 __PACKAGE__->add_unique_constraint("api_keys_value_key", ["value"]);
46 1 __PACKAGE__->belongs_to(
47 "user",
48 "Test2::Harness::UI::Schema::Result::User",
49 { user_id => "user_id" },
50 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
51 );
52  
53  
54 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:20
55 # DO NOT MODIFY ANY PART OF THIS FILE
56  
57 1 1;
« lib/Test2/Harness/UI/Schema/MySQL/User.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/Binary.pm »