]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/Data/Result/Job.pm
2 package Gruntmaster
::Data
::Result
::Job
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Gruntmaster::Data::Result::Job
16 use base
'DBIx::Class::Core';
22 __PACKAGE__
->table("jobs");
31 sequence: 'jobs_id_seq'
104 __PACKAGE__
->add_columns(
107 data_type
=> "integer",
108 is_auto_increment
=> 1,
110 sequence
=> "jobs_id_seq",
113 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 1 },
115 { data_type
=> "text", is_nullable
=> 1 },
117 { data_type
=> "bigint", is_nullable
=> 0 },
119 { data_type
=> "text", is_nullable
=> 1 },
121 { data_type
=> "text", is_nullable
=> 0 },
123 { data_type
=> "text", is_nullable
=> 0 },
125 { data_type
=> "boolean", default_value
=> \"false
", is_nullable => 0 },
127 { data_type => "text
", is_foreign_key => 1, is_nullable => 0 },
129 { data_type => "integer
", is_nullable => 1 },
131 { data_type => "text
", is_nullable => 1 },
133 { data_type => "text
", is_nullable => 1 },
135 { data_type => "text
", is_nullable => 0 },
137 { data_type => "text
", is_foreign_key => 1, is_nullable => 0 },
150 __PACKAGE__->set_primary_key("id
");
158 Related object: L<Gruntmaster::Data::Result::Contest>
162 __PACKAGE__->belongs_to(
164 "Gruntmaster
::Data
::Result
::Contest
",
169 on_delete => "CASCADE
",
170 on_update => "NO ACTION
",
178 Related object: L<Gruntmaster::Data::Result::User>
182 __PACKAGE__->belongs_to(
184 "Gruntmaster
::Data
::Result
::User
",
186 { is_deferrable => 0, on_delete => "CASCADE
", on_update => "NO ACTION
" },
193 Related object: L<Gruntmaster::Data::Result::Problem>
197 __PACKAGE__->belongs_to(
199 "Gruntmaster
::Data
::Result
::Problem
",
201 { is_deferrable => 0, on_delete => "CASCADE
", on_update => "NO ACTION
" },
204 =head2 problem_statuses
208 Related object: L<Gruntmaster::Data::Result::ProblemStatus>
212 __PACKAGE__->has_many(
214 "Gruntmaster
::Data
::Result
::ProblemStatus
",
215 { "foreign
.job
" => "self
.id
" },
216 { cascade_copy => 0, cascade_delete => 0 },
220 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-12-11 23:51:27
221 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:D49ekK0vGg/7b8xXZoYTWQ
223 sub rawcontest { shift->get_column('contest') }
224 sub rawowner { shift->get_column('owner') }
225 sub rawproblem { shift->get_column('problem') }
228 shift->update({daemon => undef, result => -2, result_text => undef});
243 Marius Gavrilescu E<lt>marius@ieval.roE<gt>
245 =head1 COPYRIGHT AND LICENSE
247 Copyright (C) 2014 by Marius Gavrilescu
249 This library is free software; you can redistribute it and/or modify
250 it under the same terms as Perl itself, either Perl version 5.18.1 or,
251 at your option, any later version of Perl 5 you may have available.
This page took 0.062679 seconds and 4 git commands to generate.