]>
Commit | Line | Data |
---|---|---|
1 | use utf8; | |
2 | package Gruntmaster::Data::Result::Limit; | |
3 | ||
4 | # Created by DBIx::Class::Schema::Loader | |
5 | # DO NOT MODIFY THE FIRST PART OF THIS FILE | |
6 | ||
7 | =head1 NAME | |
8 | ||
9 | Gruntmaster::Data::Result::Limit - Time limit overrides for certain problem/format pairs | |
10 | ||
11 | =cut | |
12 | ||
13 | use strict; | |
14 | use warnings; | |
15 | ||
16 | use base 'DBIx::Class::Core'; | |
17 | ||
18 | =head1 TABLE: C<limits> | |
19 | ||
20 | =cut | |
21 | ||
22 | __PACKAGE__->table("limits"); | |
23 | ||
24 | =head1 ACCESSORS | |
25 | ||
26 | =head2 problem | |
27 | ||
28 | data_type: 'text' | |
29 | is_foreign_key: 1 | |
30 | is_nullable: 0 | |
31 | ||
32 | =head2 format | |
33 | ||
34 | data_type: 'text' | |
35 | is_nullable: 0 | |
36 | ||
37 | =head2 timeout | |
38 | ||
39 | data_type: 'real' | |
40 | is_nullable: 0 | |
41 | ||
42 | =cut | |
43 | ||
44 | __PACKAGE__->add_columns( | |
45 | "problem", | |
46 | { data_type => "text", is_foreign_key => 1, is_nullable => 0 }, | |
47 | "format", | |
48 | { data_type => "text", is_nullable => 0 }, | |
49 | "timeout", | |
50 | { data_type => "real", is_nullable => 0 }, | |
51 | ); | |
52 | ||
53 | =head1 PRIMARY KEY | |
54 | ||
55 | =over 4 | |
56 | ||
57 | =item * L</problem> | |
58 | ||
59 | =item * L</format> | |
60 | ||
61 | =back | |
62 | ||
63 | =cut | |
64 | ||
65 | __PACKAGE__->set_primary_key("problem", "format"); | |
66 | ||
67 | =head1 RELATIONS | |
68 | ||
69 | =head2 problem | |
70 | ||
71 | Type: belongs_to | |
72 | ||
73 | Related object: L<Gruntmaster::Data::Result::Problem> | |
74 | ||
75 | =cut | |
76 | ||
77 | __PACKAGE__->belongs_to( | |
78 | "problem", | |
79 | "Gruntmaster::Data::Result::Problem", | |
80 | { id => "problem" }, | |
81 | { is_deferrable => 0, on_delete => "CASCADE", on_update => "NO ACTION" }, | |
82 | ); | |
83 | ||
84 | ||
85 | # Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-03-16 17:16:58 | |
86 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ewngP+tVnk4GZ5K+ygUpLg | |
87 | ||
88 | ||
89 | # You can replace this text with custom code or comments, and it will be preserved on regeneration | |
90 | 1; |