« lib/Test2/Harness/UI/Schema/MySQL/EmailVerificationCode.pm
↑ Summary
lib/Test2/Harness/UI/Schema/MySQL/Host.pm »
| 1 | 1 | ▶ | use utf8; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | package Test2::Harness::UI::Schema::Result::Event; | ||
| 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("events"); | |
| 19 | 1 | __PACKAGE__->add_columns( | |
| 20 | "event_id", | ||
| 21 | { data_type => "binary", is_nullable => 0, size => 16 }, | ||
| 22 | "job_key", | ||
| 23 | { data_type => "binary", is_foreign_key => 1, is_nullable => 0, size => 16 }, | ||
| 24 | "event_ord", | ||
| 25 | { data_type => "bigint", is_nullable => 0 }, | ||
| 26 | "insert_ord", | ||
| 27 | { data_type => "bigint", is_auto_increment => 1, is_nullable => 0 }, | ||
| 28 | "has_binary", | ||
| 29 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||
| 30 | "is_subtest", | ||
| 31 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||
| 32 | "is_diag", | ||
| 33 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||
| 34 | "is_harness", | ||
| 35 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||
| 36 | "is_time", | ||
| 37 | { data_type => "tinyint", default_value => 0, is_nullable => 0 }, | ||
| 38 | "stamp", | ||
| 39 | { | ||
| 40 | data_type => "timestamp", | ||
| 41 | datetime_undef_if_invalid => 1, | ||
| 42 | is_nullable => 1, | ||
| 43 | }, | ||
| 44 | "parent_id", | ||
| 45 | { data_type => "binary", is_nullable => 1, size => 16 }, | ||
| 46 | "trace_id", | ||
| 47 | { data_type => "char", is_nullable => 1, size => 36 }, | ||
| 48 | "nested", | ||
| 49 | { data_type => "integer", default_value => 0, is_nullable => 1 }, | ||
| 50 | "facets", | ||
| 51 | { data_type => "json", is_nullable => 1 }, | ||
| 52 | "facets_line", | ||
| 53 | { data_type => "bigint", is_nullable => 1 }, | ||
| 54 | "orphan", | ||
| 55 | { data_type => "json", is_nullable => 1 }, | ||
| 56 | "orphan_line", | ||
| 57 | { data_type => "bigint", is_nullable => 1 }, | ||
| 58 | ); | ||
| 59 | 1 | __PACKAGE__->set_primary_key("event_id"); | |
| 60 | 1 | __PACKAGE__->add_unique_constraint("insert_ord", ["insert_ord", "job_key"]); | |
| 61 | 1 | __PACKAGE__->has_many( | |
| 62 | "binaries", | ||
| 63 | "Test2::Harness::UI::Schema::Result::Binary", | ||
| 64 | { "foreign.event_id" => "self.event_id" }, | ||
| 65 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 66 | ); | ||
| 67 | 1 | __PACKAGE__->belongs_to( | |
| 68 | "job_key", | ||
| 69 | "Test2::Harness::UI::Schema::Result::Job", | ||
| 70 | { job_key => "job_key" }, | ||
| 71 | { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" }, | ||
| 72 | ); | ||
| 73 | 1 | __PACKAGE__->has_many( | |
| 74 | "reportings", | ||
| 75 | "Test2::Harness::UI::Schema::Result::Reporting", | ||
| 76 | { "foreign.event_id" => "self.event_id" }, | ||
| 77 | { cascade_copy => 0, cascade_delete => 0 }, | ||
| 78 | ); | ||
| 79 | |||
| 80 | |||
| 81 | # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:14 | ||
| 82 | 1 | ▶ | use Test2::Harness::UI::UUID qw/uuid_inflate uuid_deflate/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 83 | 1 | __PACKAGE__->inflate_column('job_key' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 84 | 1 | __PACKAGE__->inflate_column('event_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 85 | 1 | __PACKAGE__->inflate_column('parent_id' => { inflate => \&uuid_inflate, deflate => \&uuid_deflate }); | |
| 86 | # DO NOT MODIFY ANY PART OF THIS FILE | ||
| 87 | |||
| 88 | 1 | 1; | |