5359df72997d8ffa633b618aa7e0f13feb0715b4
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"]}
78 extra: {custom_type_name => "runner",list => ["File","Verifier","Interactive"]}
113 __PACKAGE__
->add_columns(
115 { data_type
=> "text", is_nullable
=> 0 },
117 { data_type
=> "text", is_nullable
=> 0 },
121 extra
=> { custom_type_name
=> "generator", list
=> ["File", "Run", "Undef"] },
127 extra
=> { custom_type_name
=> "judge", list
=> ["Absolute", "Points"] },
134 custom_type_name
=> "plevel",
135 list
=> ["beginner", "easy", "medium", "hard"],
140 { data_type
=> "text", is_nullable
=> 0 },
142 { data_type
=> "integer", is_nullable
=> 1 },
144 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 0 },
146 { data_type
=> "boolean", is_nullable
=> 0 },
151 custom_type_name
=> "runner",
152 list
=> ["File", "Verifier", "Interactive"],
157 { data_type
=> "text", is_nullable
=> 0 },
159 { data_type
=> "integer", is_nullable
=> 0 },
161 { data_type
=> "real", is_nullable
=> 0 },
163 { data_type
=> "integer", is_nullable
=> 1 },
165 { data_type
=> "text", is_nullable
=> 1 },
167 { data_type
=> "text", is_nullable
=> 1 },
180 __PACKAGE__
->set_primary_key("id");
184 =head2 contest_problems
188 Related object: L<Gruntmaster::Data::Result::ContestProblem>
192 __PACKAGE__
->has_many(
194 "Gruntmaster::Data::Result::ContestProblem",
195 { "foreign.problem" => "self.id" },
196 { cascade_copy
=> 0, cascade_delete
=> 0 },
203 Related object: L<Gruntmaster::Data::Result::Job>
207 __PACKAGE__
->has_many(
209 "Gruntmaster::Data::Result::Job",
210 { "foreign.problem" => "self.id" },
211 { cascade_copy
=> 0, cascade_delete
=> 0 },
218 Related object: L<Gruntmaster::Data::Result::Open>
222 __PACKAGE__
->has_many(
224 "Gruntmaster::Data::Result::Open",
225 { "foreign.problem" => "self.id" },
226 { cascade_copy
=> 0, cascade_delete
=> 0 },
233 Related object: L<Gruntmaster::Data::Result::User>
237 __PACKAGE__
->belongs_to(
239 "Gruntmaster::Data::Result::User",
241 { is_deferrable
=> 0, on_delete
=> "NO ACTION", on_update
=> "NO ACTION" },
248 Composing rels: L</contest_problems> -> contest
252 __PACKAGE__
->many_to_many("contests", "contest_problems", "contest");
255 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
256 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:y1LUGcxNJxUMgMXqvAkKYQ
259 # You can replace this text with custom code or comments, and it will be preserved on regeneration
This page took 0.031654 seconds and 3 git commands to generate.