]> iEval git - gruntmaster-data.git/blobdiff - lib/Gruntmaster/Data/Result/Job.pm
From Redis to Postgres - Part 1
[gruntmaster-data.git] / lib / Gruntmaster / Data / Result / Job.pm
diff --git a/lib/Gruntmaster/Data/Result/Job.pm b/lib/Gruntmaster/Data/Result/Job.pm
new file mode 100644 (file)
index 0000000..6f1084f
--- /dev/null
@@ -0,0 +1,205 @@
+use utf8;
+package Gruntmaster::Data::Result::Job;
+
+# Created by DBIx::Class::Schema::Loader
+# DO NOT MODIFY THE FIRST PART OF THIS FILE
+
+=head1 NAME
+
+Gruntmaster::Data::Result::Job
+
+=cut
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Core';
+
+=head1 TABLE: C<jobs>
+
+=cut
+
+__PACKAGE__->table("jobs");
+
+=head1 ACCESSORS
+
+=head2 id
+
+  data_type: 'integer'
+  is_auto_increment: 1
+  is_nullable: 0
+  sequence: 'jobs_id_seq'
+
+=head2 contest
+
+  data_type: 'text'
+  is_foreign_key: 1
+  is_nullable: 0
+
+=head2 daemon
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 date
+
+  data_type: 'bigint'
+  is_nullable: 0
+
+=head2 errors
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 extension
+
+  data_type: 'text'
+  is_nullable: 0
+
+=head2 format
+
+  data_type: 'text'
+  is_nullable: 0
+
+=head2 private
+
+  data_type: 'boolean'
+  default_value: false
+  is_nullable: 0
+
+=head2 problem
+
+  data_type: 'text'
+  is_foreign_key: 1
+  is_nullable: 0
+
+=head2 result
+
+  data_type: 'integer'
+  is_nullable: 1
+
+=head2 result_text
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 results
+
+  data_type: 'json'
+  is_nullable: 1
+
+=head2 source
+
+  data_type: 'text'
+  is_nullable: 0
+
+=head2 owner
+
+  data_type: 'text'
+  is_foreign_key: 1
+  is_nullable: 0
+
+=cut
+
+__PACKAGE__->add_columns(
+  "id",
+  {
+    data_type         => "integer",
+    is_auto_increment => 1,
+    is_nullable       => 0,
+    sequence          => "jobs_id_seq",
+  },
+  "contest",
+  { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
+  "daemon",
+  { data_type => "text", is_nullable => 1 },
+  "date",
+  { data_type => "bigint", is_nullable => 0 },
+  "errors",
+  { data_type => "text", is_nullable => 1 },
+  "extension",
+  { data_type => "text", is_nullable => 0 },
+  "format",
+  { data_type => "text", is_nullable => 0 },
+  "private",
+  { data_type => "boolean", default_value => \"false", is_nullable => 0 },
+  "problem",
+  { data_type => "text", is_foreign_key => 1, is_nullable => 0 },
+  "result",
+  { data_type => "integer", is_nullable => 1 },
+  "result_text",
+  { data_type => "text", is_nullable => 1 },
+  "results",
+  { data_type => "json", is_nullable => 1 },
+  "source",
+  { data_type => "text", 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
+
+Type: belongs_to
+
+Related object: L<Gruntmaster::Data::Result::Contest>
+
+=cut
+
+__PACKAGE__->belongs_to(
+  "contest",
+  "Gruntmaster::Data::Result::Contest",
+  { id => "contest" },
+  { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
+);
+
+=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 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 => "NO ACTION", on_update => "NO ACTION" },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:lIETgGgMTSOUUuDuFa/+SQ
+
+
+# You can replace this text with custom code or comments, and it will be preserved on regeneration
+1;
This page took 0.029089 seconds and 4 git commands to generate.