use utf8;
package Gruntmaster::Data::Result::Limit;

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

=head1 NAME

Gruntmaster::Data::Result::Limit - Time limit overrides for certain problem/format pairs

=cut

use strict;
use warnings;

use base 'DBIx::Class::Core';

=head1 TABLE: C<limits>

=cut

__PACKAGE__->table("limits");

=head1 ACCESSORS

=head2 problem

  data_type: 'text'
  is_foreign_key: 1
  is_nullable: 0

=head2 format

  data_type: 'text'
  is_nullable: 0

=head2 timeout

  data_type: 'real'
  is_nullable: 0

=cut

__PACKAGE__->add_columns(
  "problem",
  { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
  "format",
  { data_type => "text", is_nullable => 0 },
  "timeout",
  { data_type => "real", is_nullable => 0 },
);

=head1 PRIMARY KEY

=over 4

=item * L</problem>

=item * L</format>

=back

=cut

__PACKAGE__->set_primary_key("problem", "format");

=head1 RELATIONS

=head2 problem

Type: belongs_to

Related object: L<Gruntmaster::Data::Result::Problem>

=cut

__PACKAGE__->belongs_to(
  "problem",
  "Gruntmaster::Data::Result::Problem",
  { id => "problem" },
  { is_deferrable => 0, on_delete => "CASCADE", on_update => "NO ACTION" },
);


# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-03-16 17:16:58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ewngP+tVnk4GZ5K+ygUpLg


# You can replace this text with custom code or comments, and it will be preserved on regeneration
1;
