--- /dev/null
+use utf8;
+package Gruntmaster::Data::Result::Contest;
+
+# Created by DBIx::Class::Schema::Loader
+# DO NOT MODIFY THE FIRST PART OF THIS FILE
+
+=head1 NAME
+
+Gruntmaster::Data::Result::Contest
+
+=cut
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Core';
+
+=head1 TABLE: C<contests>
+
+=cut
+
+__PACKAGE__->table("contests");
+
+=head1 ACCESSORS
+
+=head2 id
+
+ data_type: 'text'
+ is_nullable: 0
+
+=head2 name
+
+ data_type: 'text'
+ is_nullable: 0
+
+=head2 start
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 stop
+
+ data_type: 'integer'
+ is_nullable: 0
+
+=head2 owner
+
+ data_type: 'text'
+ is_foreign_key: 1
+ is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+ "id",
+ { data_type => "text", is_nullable => 0 },
+ "name",
+ { data_type => "text", is_nullable => 0 },
+ "start",
+ { data_type => "integer", is_nullable => 0 },
+ "stop",
+ { data_type => "integer", is_nullable => 0 },
+ "owner",
+ { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
+);
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("id");
+
+=head1 RELATIONS
+
+=head2 contest_problems
+
+Type: has_many
+
+Related object: L<Gruntmaster::Data::Result::ContestProblem>
+
+=cut
+
+__PACKAGE__->has_many(
+ "contest_problems",
+ "Gruntmaster::Data::Result::ContestProblem",
+ { "foreign.contest" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 jobs
+
+Type: has_many
+
+Related object: L<Gruntmaster::Data::Result::Job>
+
+=cut
+
+__PACKAGE__->has_many(
+ "jobs",
+ "Gruntmaster::Data::Result::Job",
+ { "foreign.contest" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 opens
+
+Type: has_many
+
+Related object: L<Gruntmaster::Data::Result::Open>
+
+=cut
+
+__PACKAGE__->has_many(
+ "opens",
+ "Gruntmaster::Data::Result::Open",
+ { "foreign.contest" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 owner
+
+Type: belongs_to
+
+Related object: L<Gruntmaster::Data::Result::User>
+
+=cut
+
+__PACKAGE__->belongs_to(
+ "owner",
+ "Gruntmaster::Data::Result::User",
+ { id => "owner" },
+ { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
+);
+
+=head2 problems
+
+Type: many_to_many
+
+Composing rels: L</contest_problems> -> problem
+
+=cut
+
+__PACKAGE__->many_to_many("problems", "contest_problems", "problem");
+
+
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:T5tUpU1TOahLKzx9iVie3A
+
+
+# You can replace this text with custom code or comments, and it will be preserved on regeneration
+1;