1use utf8;
2package Test2::Harness::UI::Schema::Result::Run;
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("runs");
19__PACKAGE__->add_columns(
20  "run_id",
21  { data_type => "char", is_nullable => 0, size => 36 },
22  "user_id",
23  { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 },
24  "run_ord",
25  { data_type => "bigint", is_auto_increment => 1, is_nullable => 0 },
26  "status",
27  {
28    data_type => "enum",
29    extra => {
30      list => ["pending", "running", "complete", "broken", "canceled"],
31    },
32    is_nullable => 0,
33  },
34  "worker_id",
35  { data_type => "text", is_nullable => 1 },
36  "error",
37  { data_type => "text", is_nullable => 1 },
38  "project_id",
39  { data_type => "char", is_foreign_key => 1, is_nullable => 0, size => 36 },
40  "pinned",
41  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
42  "has_coverage",
43  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
44  "added",
45  {
46    data_type => "timestamp",
47    datetime_undef_if_invalid => 1,
48    default_value => \"current_timestamp",
49    is_nullable => 0,
50  },
51  "duration",
52  { data_type => "text", is_nullable => 1 },
53  "log_file_id",
54  { data_type => "char", is_foreign_key => 1, is_nullable => 1, size => 36 },
55  "mode",
56  {
57    data_type => "enum",
58    extra => { list => ["qvfds", "qvfd", "qvf", "summary", "complete"] },
59    is_nullable => 0,
60  },
61  "buffer",
62  {
63    data_type => "enum",
64    default_value => "job",
65    extra => { list => ["none", "diag", "job", "run"] },
66    is_nullable => 0,
67  },
68  "passed",
69  { data_type => "integer", is_nullable => 1 },
70  "failed",
71  { data_type => "integer", is_nullable => 1 },
72  "retried",
73  { data_type => "integer", is_nullable => 1 },
74  "concurrency",
75  { data_type => "integer", is_nullable => 1 },
76  "parameters",
77  { data_type => "json", is_nullable => 1 },
78);
79__PACKAGE__->set_primary_key("run_id");
80__PACKAGE__->add_unique_constraint("run_ord", ["run_ord"]);
81__PACKAGE__->has_many(
82  "coverages",
83  "Test2::Harness::UI::Schema::Result::Coverage",
84  { "foreign.run_id" => "self.run_id" },
85  { cascade_copy => 0, cascade_delete => 0 },
86);
87__PACKAGE__->has_many(
88  "jobs",
89  "Test2::Harness::UI::Schema::Result::Job",
90  { "foreign.run_id" => "self.run_id" },
91  { cascade_copy => 0, cascade_delete => 0 },
92);
93__PACKAGE__->belongs_to(
94  "log_file",
95  "Test2::Harness::UI::Schema::Result::LogFile",
96  { log_file_id => "log_file_id" },
97  {
98    is_deferrable => 1,
99    join_type     => "LEFT",
100    on_delete     => "RESTRICT",
101    on_update     => "RESTRICT",
102  },
103);
104__PACKAGE__->belongs_to(
105  "project",
106  "Test2::Harness::UI::Schema::Result::Project",
107  { project_id => "project_id" },
108  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
109);
110__PACKAGE__->has_many(
111  "run_fields",
112  "Test2::Harness::UI::Schema::Result::RunField",
113  { "foreign.run_id" => "self.run_id" },
114  { cascade_copy => 0, cascade_delete => 0 },
115);
116__PACKAGE__->belongs_to(
117  "user",
118  "Test2::Harness::UI::Schema::Result::User",
119  { user_id => "user_id" },
120  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
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:rhpCsmtbrZRYFYzWrUn3uQ
126
127
128# You can replace this text with custom code or comments, and it will be preserved on regeneration
1291;
130