1use utf8;
2package Test2::Harness::UI::Schema::Result::Job;
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("jobs");
19__PACKAGE__->add_columns(
20  "job_key",
21  { data_type => "char", is_nullable => 0, size => 36 },
22  "job_id",
23  { data_type => "char", is_nullable => 0, size => 36 },
24  "job_try",
25  { data_type => "integer", default_value => 0, is_nullable => 0 },
26  "job_ord",
27  { data_type => "bigint", is_nullable => 0 },
28  "run_id",
29  { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 },
30  "is_harness_out",
31  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
32  "status",
33  {
34    data_type => "enum",
35    extra => {
36      list => ["pending", "running", "complete", "broken", "canceled"],
37    },
38    is_nullable => 0,
39  },
40  "parameters",
41  { data_type => "json", is_nullable => 1 },
42  "fields",
43  { data_type => "json", is_nullable => 1 },
44  "test_file_id",
45  { data_type => "char", is_foreign_key => 1, is_nullable => 1, size => 36 },
46  "name",
47  { data_type => "text", is_nullable => 1 },
48  "fail",
49  { data_type => "tinyint", is_nullable => 1 },
50  "retry",
51  { data_type => "tinyint", is_nullable => 1 },
52  "exit_code",
53  { data_type => "integer", is_nullable => 1 },
54  "launch",
55  {
56    data_type => "timestamp",
57    datetime_undef_if_invalid => 1,
58    is_nullable => 1,
59  },
60  "start",
61  {
62    data_type => "timestamp",
63    datetime_undef_if_invalid => 1,
64    is_nullable => 1,
65  },
66  "ended",
67  {
68    data_type => "timestamp",
69    datetime_undef_if_invalid => 1,
70    is_nullable => 1,
71  },
72  "duration",
73  { data_type => "double precision", is_nullable => 1 },
74  "pass_count",
75  { data_type => "bigint", is_nullable => 1 },
76  "fail_count",
77  { data_type => "bigint", is_nullable => 1 },
78  "coverage_manager",
79  { data_type => "text", is_nullable => 1 },
80  "stdout",
81  { data_type => "longtext", is_nullable => 1 },
82  "stderr",
83  { data_type => "longtext", is_nullable => 1 },
84);
85__PACKAGE__->set_primary_key("job_key");
86__PACKAGE__->add_unique_constraint("job_id", ["job_id", "job_try"]);
87__PACKAGE__->has_many(
88  "coverages",
89  "Test2::Harness::UI::Schema::Result::Coverage",
90  { "foreign.job_key" => "self.job_key" },
91  { cascade_copy => 0, cascade_delete => 0 },
92);
93__PACKAGE__->has_many(
94  "events",
95  "Test2::Harness::UI::Schema::Result::Event",
96  { "foreign.job_key" => "self.job_key" },
97  { cascade_copy => 0, cascade_delete => 0 },
98);
99__PACKAGE__->has_many(
100  "job_fields",
101  "Test2::Harness::UI::Schema::Result::JobField",
102  { "foreign.job_key" => "self.job_key" },
103  { cascade_copy => 0, cascade_delete => 0 },
104);
105__PACKAGE__->belongs_to(
106  "run",
107  "Test2::Harness::UI::Schema::Result::Run",
108  { run_id => "run_id" },
109  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
110);
111__PACKAGE__->belongs_to(
112  "test_file",
113  "Test2::Harness::UI::Schema::Result::TestFile",
114  { test_file_id => "test_file_id" },
115  {
116    is_deferrable => 1,
117    join_type     => "LEFT",
118    on_delete     => "RESTRICT",
119    on_update     => "RESTRICT",
120  },
121);
122
123
124# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-26 13:48:31
125# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:TuMhs0tvQUceEC6HaLXy6A
126
127
128# You can replace this text with custom code or comments, and it will be preserved on regeneration
1291;
130