]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/Data/Result/Problem.pm
2 package Gruntmaster
::Data
::Result
::Problem
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Gruntmaster::Data::Result::Problem
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<problems>
22 __PACKAGE__
->table("problems");
39 extra: {custom_type_name => "generator",list => ["File","Run","Undef"]}
45 extra: {custom_type_name => "judge",list => ["Absolute","Points"]}
51 extra: {custom_type_name => "plevel",list => ["beginner","easy","medium","hard"]}
79 extra: {custom_type_name => "runner",list => ["File","Verifier","Interactive"]}
119 __PACKAGE__
->add_columns(
121 { data_type
=> "text", is_nullable
=> 0 },
123 { data_type
=> "text", is_nullable
=> 0 },
127 extra
=> { custom_type_name
=> "generator", list
=> ["File", "Run", "Undef"] },
133 extra
=> { custom_type_name
=> "judge", list
=> ["Absolute", "Points"] },
140 custom_type_name
=> "plevel",
141 list
=> ["beginner", "easy", "medium", "hard"],
146 { data_type
=> "text", is_nullable
=> 0 },
148 { data_type
=> "integer", is_nullable
=> 1 },
150 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 0 },
152 { data_type
=> "boolean", default_value
=> \"false
", is_nullable => 0 },
157 custom_type_name => "runner
",
158 list => ["File
", "Verifier
", "Interactive
"],
163 { data_type => "text
", is_nullable => 0 },
165 { data_type => "integer
", is_nullable => 0 },
167 { data_type => "text
", is_nullable => 1 },
169 { data_type => "real
", is_nullable => 0 },
171 { data_type => "integer
", is_nullable => 1 },
173 { data_type => "text
", is_nullable => 1 },
175 { data_type => "text
", is_nullable => 1 },
188 __PACKAGE__->set_primary_key("id
");
192 =head2 contest_problems
196 Related object: L<Gruntmaster::Data::Result::ContestProblem>
200 __PACKAGE__->has_many(
202 "Gruntmaster
::Data
::Result
::ContestProblem
",
203 { "foreign
.problem
" => "self
.id
" },
204 { cascade_copy => 0, cascade_delete => 0 },
211 Related object: L<Gruntmaster::Data::Result::Job>
215 __PACKAGE__->has_many(
217 "Gruntmaster
::Data
::Result
::Job
",
218 { "foreign
.problem
" => "self
.id
" },
219 { cascade_copy => 0, cascade_delete => 0 },
226 Related object: L<Gruntmaster::Data::Result::Open>
230 __PACKAGE__->has_many(
232 "Gruntmaster
::Data
::Result
::Open
",
233 { "foreign
.problem
" => "self
.id
" },
234 { cascade_copy => 0, cascade_delete => 0 },
241 Related object: L<Gruntmaster::Data::Result::User>
245 __PACKAGE__->belongs_to(
247 "Gruntmaster
::Data
::Result
::User
",
249 { is_deferrable => 0, on_delete => "NO ACTION
", on_update => "NO ACTION
" },
256 Composing rels: L</contest_problems> -> contest
260 __PACKAGE__->many_to_many("contests
", "contest_problems
", "contest
");
263 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-24 09:25:07
264 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dZicbasR8lUFGhIabrWxXw
267 # You can replace this text with custom code or comments, and it will be preserved on regeneration
This page took 0.10121 seconds and 4 git commands to generate.