« lib/Test2/Harness/UI/Schema/PostgreSQL/Binary.pm
↑ Summary
lib/Test2/Harness/UI/Schema/PostgreSQL/CoverageManager.pm »
| 1 | 1 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Test2::Harness::UI::Schema::Result::Coverage; | ||
| 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("coverage"); | |
| 19 | 1 | __PACKAGE__->add_columns( | |
| 20 | "coverage_id", | ||
| 21 | { data_type => "uuid", is_nullable => 0, size => 16 }, | ||
| 22 | "run_id", | ||
| 23 | { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 24 | "test_file_id", | ||
| 25 | { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 26 | "source_file_id", | ||
| 27 | { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 28 | "source_sub_id", | ||
| 29 | { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 30 | "coverage_manager_id", | ||
| 31 | { data_type => "uuid", is_foreign_key => 1, is_nullable => 1, size => 16 }, | ||
| 32 | "job_key", | ||
| 33 | { data_type => "uuid", is_foreign_key => 1, is_nullable => 1, size => 16 }, | ||
| 34 | "metadata", | ||
| 35 | { data_type => "jsonb", is_nullable => 1 }, | ||
| 36 | ); | ||
| 37 | 1 | __PACKAGE__->set_primary_key("coverage_id"); | |
| 38 | 1 | __PACKAGE__->add_unique_constraint( | |
| 39 | "coverage_run_id_test_file_id_source_file_id_source_sub_id_key", | ||
| 40 | ["run_id", "test_file_id", "source_file_id", "source_sub_id"], | ||
| 41 | ); | ||
| 42 | 1 | __PACKAGE__->belongs_to( | |
| 43 | "coverage_manager", | ||
| 44 | "Test2::Harness::UI::Schema::Result::CoverageManager", | ||
| 45 | { coverage_manager_id => "coverage_manager_id" }, | ||
| 46 | { | ||
| 47 | is_deferrable => 0, | ||
| 48 | join_type => "LEFT", | ||
| 49 | on_delete => "NO ACTION", | ||
| 50 | on_update => "NO ACTION", | ||
| 51 | }, | ||
| 52 | ); | ||
| 53 | 1 | __PACKAGE__->belongs_to( | |
| 54 | "job_key", | ||
| 55 | "Test2::Harness::UI::Schema::Result::Job", | ||
| 56 | { job_key => "job_key" }, | ||
| 57 | { | ||
| 58 | is_deferrable => 0, | ||
| 59 | join_type => "LEFT", | ||
| 60 | on_delete => "NO ACTION", | ||
| 61 | on_update => "NO ACTION", | ||
| 62 | }, | ||
| 63 | ); | ||
| 64 | 1 | __PACKAGE__->belongs_to( | |
| 65 | "run", | ||
| 66 | "Test2::Harness::UI::Schema::Result::Run", | ||
| 67 | { run_id => "run_id" }, | ||
| 68 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | ||
| 69 | ); | ||
| 70 | 1 | __PACKAGE__->belongs_to( | |
| 71 | "source_file", | ||
| 72 | "Test2::Harness::UI::Schema::Result::SourceFile", | ||
| 73 | { source_file_id => "source_file_id" }, | ||
| 74 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | ||
| 75 | ); | ||
| 76 | 1 | __PACKAGE__->belongs_to( | |
| 77 | "source_sub", | ||
| 78 | "Test2::Harness::UI::Schema::Result::SourceSub", | ||
| 79 | { source_sub_id => "source_sub_id" }, | ||
| 80 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | ||
| 81 | ); | ||
| 82 | 1 | __PACKAGE__->belongs_to( | |
| 83 | "test_file", | ||
| 84 | "Test2::Harness::UI::Schema::Result::TestFile", | ||
| 85 | { test_file_id => "test_file_id" }, | ||
| 86 | { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" }, | ||
| 87 | ); | ||
| 88 | |||
| 89 | |||
| 90 | # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:20 | ||
| 91 | # DO NOT MODIFY ANY PART OF THIS FILE | ||
| 92 | |||
| 93 | 1 | 1; | |