From Redis to Postgres - Part 1
[gruntmaster-data.git] / lib / Gruntmaster / Data / Result / Job.pm
1 use utf8;
2 package Gruntmaster::Data::Result::Job;
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::Job
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 TABLE: C<jobs>
19
20 =cut
21
22 __PACKAGE__->table("jobs");
23
24 =head1 ACCESSORS
25
26 =head2 id
27
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
31 sequence: 'jobs_id_seq'
32
33 =head2 contest
34
35 data_type: 'text'
36 is_foreign_key: 1
37 is_nullable: 0
38
39 =head2 daemon
40
41 data_type: 'text'
42 is_nullable: 1
43
44 =head2 date
45
46 data_type: 'bigint'
47 is_nullable: 0
48
49 =head2 errors
50
51 data_type: 'text'
52 is_nullable: 1
53
54 =head2 extension
55
56 data_type: 'text'
57 is_nullable: 0
58
59 =head2 format
60
61 data_type: 'text'
62 is_nullable: 0
63
64 =head2 private
65
66 data_type: 'boolean'
67 default_value: false
68 is_nullable: 0
69
70 =head2 problem
71
72 data_type: 'text'
73 is_foreign_key: 1
74 is_nullable: 0
75
76 =head2 result
77
78 data_type: 'integer'
79 is_nullable: 1
80
81 =head2 result_text
82
83 data_type: 'text'
84 is_nullable: 1
85
86 =head2 results
87
88 data_type: 'json'
89 is_nullable: 1
90
91 =head2 source
92
93 data_type: 'text'
94 is_nullable: 0
95
96 =head2 owner
97
98 data_type: 'text'
99 is_foreign_key: 1
100 is_nullable: 0
101
102 =cut
103
104 __PACKAGE__->add_columns(
105 "id",
106 {
107 data_type => "integer",
108 is_auto_increment => 1,
109 is_nullable => 0,
110 sequence => "jobs_id_seq",
111 },
112 "contest",
113 { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
114 "daemon",
115 { data_type => "text", is_nullable => 1 },
116 "date",
117 { data_type => "bigint", is_nullable => 0 },
118 "errors",
119 { data_type => "text", is_nullable => 1 },
120 "extension",
121 { data_type => "text", is_nullable => 0 },
122 "format",
123 { data_type => "text", is_nullable => 0 },
124 "private",
125 { data_type => "boolean", default_value => \"false", is_nullable => 0 },
126 "problem",
127 { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
128 "result",
129 { data_type => "integer", is_nullable => 1 },
130 "result_text",
131 { data_type => "text", is_nullable => 1 },
132 "results",
133 { data_type => "json", is_nullable => 1 },
134 "source",
135 { data_type => "text", is_nullable => 0 },
136 "owner",
137 { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
138 );
139
140 =head1 PRIMARY KEY
141
142 =over 4
143
144 =item * L</id>
145
146 =back
147
148 =cut
149
150 __PACKAGE__->set_primary_key("id");
151
152 =head1 RELATIONS
153
154 =head2 contest
155
156 Type: belongs_to
157
158 Related object: L<Gruntmaster::Data::Result::Contest>
159
160 =cut
161
162 __PACKAGE__->belongs_to(
163 "contest",
164 "Gruntmaster::Data::Result::Contest",
165 { id => "contest" },
166 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
167 );
168
169 =head2 owner
170
171 Type: belongs_to
172
173 Related object: L<Gruntmaster::Data::Result::User>
174
175 =cut
176
177 __PACKAGE__->belongs_to(
178 "owner",
179 "Gruntmaster::Data::Result::User",
180 { id => "owner" },
181 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
182 );
183
184 =head2 problem
185
186 Type: belongs_to
187
188 Related object: L<Gruntmaster::Data::Result::Problem>
189
190 =cut
191
192 __PACKAGE__->belongs_to(
193 "problem",
194 "Gruntmaster::Data::Result::Problem",
195 { id => "problem" },
196 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
197 );
198
199
200 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
201 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lIETgGgMTSOUUuDuFa/+SQ
202
203
204 # You can replace this text with custom code or comments, and it will be preserved on regeneration
205 1;
This page took 0.028821 seconds and 4 git commands to generate.