« lib/Test2/Harness/UI/Schema/MySQL/Project.pm
↑ Summary
lib/Test2/Harness/UI/Schema/MySQL/Resource.pm »
| 1 | 1 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Test2::Harness::UI::Schema::Result::Reporting; | ||
| 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("reporting"); | |
| 19 | 1 | __PACKAGE__->add_columns( | |
| 20 | "reporting_id", | ||
| 21 | { data_type => "binary", is_nullable => 0, size => 16 }, | ||
| 22 | "run_ord", | ||
| 23 | { data_type => "bigint", is_nullable => 0 }, | ||
| 24 | "job_try", | ||
| 25 | { data_type => "integer", is_nullable => 1 }, | ||
| 26 | "subtest", | ||
| 27 | { data_type => "varchar", is_nullable => 1, size => 512 }, | ||
| 28 | "duration", | ||
| 29 | { data_type => "double precision", is_nullable => 0 }, | ||
| 30 | "fail", | ||
| 31 | { data_type => "smallint", default_value => 0, is_nullable => 0 }, | ||
| 32 | "pass", | ||
| 33 | { data_type => "smallint", default_value => 0, is_nullable => 0 }, | ||
| 34 | "retry", | ||
| 35 | { data_type => "smallint", default_value => 0, is_nullable => 0 }, | ||
| 36 | "abort", | ||
| 37 | { data_type => "smallint", default_value => 0, is_nullable => 0 }, | ||
| 38 | "project_id", | ||
| 39 | { data_type => "binary", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 40 | "run_id", | ||
| 41 | { data_type => "binary", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 42 | "user_id", | ||
| 43 | { data_type => "binary", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 44 | "job_key", | ||
| 45 | { data_type => "binary", is_foreign_key => 1, is_nullable => 1, size => 16 }, | ||
| 46 | "test_file_id", | ||
| 47 | { data_type => "binary", is_foreign_key => 1, is_nullable => 1, size => 16 }, | ||
| 48 | "event_id", | ||
| 49 | { data_type => "binary", is_foreign_key => 1, is_nullable => 1, size => 16 }, | ||
| 50 | ); | ||
| 51 | 1 | __PACKAGE__->set_primary_key("reporting_id"); | |
| 52 | 1 | __PACKAGE__->belongs_to( | |
| 53 | "event", | ||
| 54 | "Test2::Harness::UI::Schema::Result::Event", | ||
| 55 | { event_id => "event_id" }, | ||
| 56 | { | ||
| 57 | is_deferrable => 1, | ||
| 58 | join_type => "LEFT", | ||
| 59 | on_delete => "RESTRICT", | ||
| 60 | on_update => "RESTRICT", | ||
| 61 | }, | ||
| 62 | ); | ||
| 63 | 1 | __PACKAGE__->belongs_to( | |
| 64 | "job_key", | ||
| 65 | "Test2::Harness::UI::Schema::Result::Job", | ||
| 66 | { job_key => "job_key" }, | ||
| 67 | { | ||
| 68 | is_deferrable => 1, | ||
| 69 | join_type => "LEFT", | ||
| 70 | on_delete => "RESTRICT", | ||
| 71 | on_update => "RESTRICT", | ||
| 72 | }, | ||
| 73 | ); | ||
| 74 | 1 | __PACKAGE__->belongs_to( | |
| 75 | "project", | ||
| 76 | "Test2::Harness::UI::Schema::Result::Project", | ||
| 77 | { project_id => "project_id" }, | ||
| 78 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 79 | ); | ||
| 80 | 1 | __PACKAGE__->belongs_to( | |
| 81 | "run", | ||
| 82 | "Test2::Harness::UI::Schema::Result::Run", | ||
| 83 | { run_id => "run_id" }, | ||
| 84 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 85 | ); | ||
| 86 | 1 | __PACKAGE__->belongs_to( | |
| 87 | "test_file", | ||
| 88 | "Test2::Harness::UI::Schema::Result::TestFile", | ||
| 89 | { test_file_id => "test_file_id" }, | ||
| 90 | { | ||
| 91 | is_deferrable => 1, | ||
| 92 | join_type => "LEFT", | ||
| 93 | on_delete => "RESTRICT", | ||
| 94 | on_update => "RESTRICT", | ||
| 95 | }, | ||
| 96 | ); | ||
| 97 | 1 | __PACKAGE__->belongs_to( | |
| 98 | "user", | ||
| 99 | "Test2::Harness::UI::Schema::Result::User", | ||
| 100 | { user_id => "user_id" }, | ||
| 101 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 102 | ); | ||
| 103 | |||
| 104 | |||
| 105 | # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:14 | ||
| 106 | 1 | ▶ | use Test2::Harness::UI::UUID qw/uuid_inflate uuid_deflate/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 107 | 1 | __PACKAGE__->inflate_column('run_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 108 | 1 | __PACKAGE__->inflate_column('project_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 109 | 1 | __PACKAGE__->inflate_column('user_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 110 | 1 | __PACKAGE__->inflate_column('test_file_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 111 | 1 | __PACKAGE__->inflate_column('event_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 112 | 1 | __PACKAGE__->inflate_column('job_key' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 113 | 1 | __PACKAGE__->inflate_column('reporting_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 114 | # DO NOT MODIFY ANY PART OF THIS FILE | ||
| 115 | |||
| 116 | 1 | 1; | |