1use utf8; 2package Test2::Harness::UI::Schema::Result::Coverage; 3 4# Created by DBIx::Class::Schema::Loader 5# DO NOT MODIFY THE FIRST PART OF THIS FILE 6 7use strict; 8use warnings; 9 10use base 'DBIx::Class::Core'; 11__PACKAGE__->load_components( 12 "InflateColumn::DateTime", 13 "InflateColumn::Serializer", 14 "InflateColumn::Serializer::JSON", 15 "Tree::AdjacencyList", 16 "UUIDColumns", 17); 18__PACKAGE__->table("coverage"); 19__PACKAGE__->add_columns( 20 "coverage_id", 21 { data_type => "char", is_nullable => 0, size => 36 }, 22 "run_id", 23 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 }, 24 "test_file_id", 25 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 }, 26 "source_file_id", 27 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 }, 28 "source_sub_id", 29 { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 }, 30 "coverage_manager_id", 31 { data_type => "char", is_foreign_key => 1, is_nullable => 1, size => 36 }, 32 "job_key", 33 { data_type => "char", is_foreign_key => 1, is_nullable => 1, size => 36 }, 34 "metadata", 35 { data_type => "longtext", is_nullable => 1 }, 36); 37__PACKAGE__->set_primary_key("coverage_id"); 38__PACKAGE__->add_unique_constraint( 39 "run_id", 40 ["run_id", "test_file_id", "source_file_id", "source_sub_id"], 41); 42__PACKAGE__->belongs_to( 43 "coverage_manager", 44 "Test2::Harness::UI::Schema::Result::CoverageManager", 45 { coverage_manager_id => "coverage_manager_id" }, 46 { 47 is_deferrable => 1, 48 join_type => "LEFT", 49 on_delete => "RESTRICT", 50 on_update => "RESTRICT", 51 }, 52); 53__PACKAGE__->belongs_to( 54 "job_key", 55 "Test2::Harness::UI::Schema::Result::Job", 56 { job_key => "job_key" }, 57 { 58 is_deferrable => 1, 59 join_type => "LEFT", 60 on_delete => "RESTRICT", 61 on_update => "RESTRICT", 62 }, 63); 64__PACKAGE__->belongs_to( 65 "run", 66 "Test2::Harness::UI::Schema::Result::Run", 67 { run_id => "run_id" }, 68 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, 69); 70__PACKAGE__->belongs_to( 71 "source_file", 72 "Test2::Harness::UI::Schema::Result::SourceFile", 73 { source_file_id => "source_file_id" }, 74 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, 75); 76__PACKAGE__->belongs_to( 77 "source_sub", 78 "Test2::Harness::UI::Schema::Result::SourceSub", 79 { source_sub_id => "source_sub_id" }, 80 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, 81); 82__PACKAGE__->belongs_to( 83 "test_file", 84 "Test2::Harness::UI::Schema::Result::TestFile", 85 { test_file_id => "test_file_id" }, 86 { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, 87); 88 89 90# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-26 13:48:35 91# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QyhF6kM+ttsSGDz25rYkug 92 93 94# You can replace this text with custom code or comments, and it will be preserved on regeneration 951; 96