lib/Test2/Harness/UI/Schema/PostgreSQL/Run.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/Test2/Harness/UI/Schema/PostgreSQL/ResourceBatch.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/RunField.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 package Test2::Harness::UI::Schema::Result::Run;
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("runs");
19 1 __PACKAGE__->add_columns(
20 "run_id",
21 {
22 data_type => "uuid",
23 default_value => \"uuid_generate_v4()",
24 is_nullable => 0,
25 size => 16,
26 },
27 "run_ord",
28 {
29 data_type => "bigint",
30 is_auto_increment => 1,
31 is_nullable => 0,
32 sequence => "runs_run_ord_seq",
33 },
34 "user_id",
35 { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 },
36 "status",
37 {
38 data_type => "enum",
39 default_value => "pending",
40 extra => {
41 custom_type_name => "queue_status",
42 list => ["pending", "running", "complete", "broken", "canceled"],
43 },
44 is_nullable => 0,
45 },
46 "worker_id",
47 { data_type => "text", is_nullable => 1 },
48 "error",
49 { data_type => "text", is_nullable => 1 },
50 "project_id",
51 { data_type => "uuid", is_foreign_key => 1, is_nullable => 0, size => 16 },
52 "pinned",
53 { data_type => "boolean", default_value => \"false", is_nullable => 0 },
54 "has_coverage",
55 { data_type => "boolean", default_value => \"false", is_nullable => 0 },
56 "added",
57 {
58 data_type => "timestamp",
59 default_value => \"current_timestamp",
60 is_nullable => 0,
61 original => { default_value => \"now()" },
62 },
63 "duration",
64 { data_type => "text", is_nullable => 1 },
65 "mode",
66 {
67 data_type => "enum",
68 default_value => "qvfd",
69 extra => {
70 custom_type_name => "run_modes",
71 list => ["summary", "qvfds", "qvfd", "qvf", "complete"],
72 },
73 is_nullable => 0,
74 },
75 "buffer",
76 {
77 data_type => "enum",
78 default_value => "job",
79 extra => {
80 custom_type_name => "run_buffering",
81 list => ["none", "diag", "job", "run"],
82 },
83 is_nullable => 0,
84 },
85 "log_file_id",
86 { data_type => "uuid", is_foreign_key => 1, is_nullable => 1, size => 16 },
87 "passed",
88 { data_type => "integer", is_nullable => 1 },
89 "failed",
90 { data_type => "integer", is_nullable => 1 },
91 "retried",
92 { data_type => "integer", is_nullable => 1 },
93 "concurrency",
94 { data_type => "integer", is_nullable => 1 },
95 "parameters",
96 { data_type => "jsonb", is_nullable => 1 },
97 );
98 1 __PACKAGE__->set_primary_key("run_id");
99 1 __PACKAGE__->add_unique_constraint("runs_run_ord_key", ["run_ord"]);
100 1 __PACKAGE__->has_many(
101 "coverages",
102 "Test2::Harness::UI::Schema::Result::Coverage",
103 { "foreign.run_id" => "self.run_id" },
104 { cascade_copy => 0, cascade_delete => 0 },
105 );
106 1 __PACKAGE__->has_many(
107 "jobs",
108 "Test2::Harness::UI::Schema::Result::Job",
109 { "foreign.run_id" => "self.run_id" },
110 { cascade_copy => 0, cascade_delete => 0 },
111 );
112 1 __PACKAGE__->belongs_to(
113 "log_file",
114 "Test2::Harness::UI::Schema::Result::LogFile",
115 { log_file_id => "log_file_id" },
116 {
117 is_deferrable => 0,
118 join_type => "LEFT",
119 on_delete => "NO ACTION",
120 on_update => "NO ACTION",
121 },
122 );
123 1 __PACKAGE__->belongs_to(
124 "project",
125 "Test2::Harness::UI::Schema::Result::Project",
126 { project_id => "project_id" },
127 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
128 );
129 1 __PACKAGE__->has_many(
130 "reportings",
131 "Test2::Harness::UI::Schema::Result::Reporting",
132 { "foreign.run_id" => "self.run_id" },
133 { cascade_copy => 0, cascade_delete => 0 },
134 );
135 1 __PACKAGE__->has_many(
136 "resource_batches",
137 "Test2::Harness::UI::Schema::Result::ResourceBatch",
138 { "foreign.run_id" => "self.run_id" },
139 { cascade_copy => 0, cascade_delete => 0 },
140 );
141 1 __PACKAGE__->has_many(
142 "run_fields",
143 "Test2::Harness::UI::Schema::Result::RunField",
144 { "foreign.run_id" => "self.run_id" },
145 { cascade_copy => 0, cascade_delete => 0 },
146 );
147 1 __PACKAGE__->has_many(
148 "sweeps",
149 "Test2::Harness::UI::Schema::Result::Sweep",
150 { "foreign.run_id" => "self.run_id" },
151 { cascade_copy => 0, cascade_delete => 0 },
152 );
153 1 __PACKAGE__->belongs_to(
154 "user",
155 "Test2::Harness::UI::Schema::Result::User",
156 { user_id => "user_id" },
157 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
158 );
159  
160  
161 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-03-02 16:05:20
162 # DO NOT MODIFY ANY PART OF THIS FILE
163  
164 1 1;
« lib/Test2/Harness/UI/Schema/PostgreSQL/ResourceBatch.pm ↑ Summary lib/Test2/Harness/UI/Schema/PostgreSQL/RunField.pm »