]>
iEval git - gruntmaster-data.git/blob - lib/Gruntmaster/Data/Result/Contest.pm
2 package Gruntmaster
::Data
::Result
::Contest
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Gruntmaster::Data::Result::Contest
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<contests>
22 __PACKAGE__
->table("contests");
54 __PACKAGE__
->add_columns(
56 { data_type
=> "text", is_nullable
=> 0 },
58 { data_type
=> "text", is_nullable
=> 0 },
60 { data_type
=> "integer", is_nullable
=> 0 },
62 { data_type
=> "integer", is_nullable
=> 0 },
64 { data_type
=> "text", is_foreign_key
=> 1, is_nullable
=> 0 },
77 __PACKAGE__
->set_primary_key("id");
81 =head2 contest_problems
85 Related object: L<Gruntmaster::Data::Result::ContestProblem>
89 __PACKAGE__
->has_many(
91 "Gruntmaster::Data::Result::ContestProblem",
92 { "foreign.contest" => "self.id" },
93 { cascade_copy
=> 0, cascade_delete
=> 0 },
100 Related object: L<Gruntmaster::Data::Result::Job>
104 __PACKAGE__
->has_many(
106 "Gruntmaster::Data::Result::Job",
107 { "foreign.contest" => "self.id" },
108 { cascade_copy
=> 0, cascade_delete
=> 0 },
115 Related object: L<Gruntmaster::Data::Result::Open>
119 __PACKAGE__
->has_many(
121 "Gruntmaster::Data::Result::Open",
122 { "foreign.contest" => "self.id" },
123 { cascade_copy
=> 0, cascade_delete
=> 0 },
130 Related object: L<Gruntmaster::Data::Result::User>
134 __PACKAGE__
->belongs_to(
136 "Gruntmaster::Data::Result::User",
138 { is_deferrable
=> 0, on_delete
=> "NO ACTION", on_update
=> "NO ACTION" },
145 Composing rels: L</contest_problems> -> problem
149 __PACKAGE__
->many_to_many("problems", "contest_problems", "problem");
152 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
153 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T5tUpU1TOahLKzx9iVie3A
156 # You can replace this text with custom code or comments, and it will be preserved on regeneration
This page took 0.048645 seconds and 4 git commands to generate.