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"]}
129 __PACKAGE__
->add_columns(
131 { data_type
=> "text", is_nullable
=> 0 },
133 { data_type
=> "text", is_nullable
=> 1 },
137 extra
=> { custom_type_name
=> "generator", list
=> ["File", "Run", "Undef"] },
143 extra
=> { custom_type_name
=> "judge", list
=> ["Absolute", "Points"] },
150 custom_type_name
=> "plevel",
151 list
=> ["beginner", "easy", "medium", "hard"],
156 { data_type
=> "text", is_nullable
=> 0 },
158 { data_type
=> "integer", is_nullable
=> 1 },
160 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 0 },
162 { data_type
=> "boolean", default_value
=> \"false
", is_nullable => 0 },
167 custom_type_name => "runner
",
168 list => ["File
", "Verifier
", "Interactive
"],
173 { data_type => "text
", is_nullable => 0 },
175 { data_type => "integer
", is_nullable => 0 },
177 { data_type => "text
", is_nullable => 1 },
179 { data_type => "real
", is_nullable => 0 },
181 { data_type => "integer
", is_nullable => 1 },
183 { data_type => "text
", is_nullable => 1 },
185 { data_type => "text
", is_nullable => 1 },
187 { data_type => "text
", is_nullable => 1 },
189 { data_type => "text
", is_nullable => 1 },
202 __PACKAGE__->set_primary_key("id
");
206 =head2 contest_problems
210 Related object: L<Gruntmaster::Data::Result::ContestProblem>
214 __PACKAGE__->has_many(
216 "Gruntmaster
::Data
::Result
::ContestProblem
",
217 { "foreign
.problem
" => "self
.id
" },
218 { cascade_copy => 0, cascade_delete => 0 },
225 Related object: L<Gruntmaster::Data::Result::Job>
229 __PACKAGE__->has_many(
231 "Gruntmaster
::Data
::Result
::Job
",
232 { "foreign
.problem
" => "self
.id
" },
233 { cascade_copy => 0, cascade_delete => 0 },
240 Related object: L<Gruntmaster::Data::Result::Open>
244 __PACKAGE__->has_many(
246 "Gruntmaster
::Data
::Result
::Open
",
247 { "foreign
.problem
" => "self
.id
" },
248 { cascade_copy => 0, cascade_delete => 0 },
255 Related object: L<Gruntmaster::Data::Result::User>
259 __PACKAGE__->belongs_to(
261 "Gruntmaster
::Data
::Result
::User
",
263 { is_deferrable => 0, on_delete => "NO ACTION
", on_update => "NO ACTION
" },
270 Composing rels: L</contest_problems> -> contest
274 __PACKAGE__->many_to_many("contests
", "contest_problems
", "contest
");
277 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-26 15:24:46
278 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QeM8iOMQE3lqG2tXKbpRxw
281 # You can replace this text with custom code or comments, and it will be preserved on regeneration
This page took 0.03204 seconds and 4 git commands to generate.