]> iEval git - gruntmaster-data.git/blobdiff - lib/Gruntmaster/Data/Result/User.pm
From Redis to Postgres - Part 1
[gruntmaster-data.git] / lib / Gruntmaster / Data / Result / User.pm
diff --git a/lib/Gruntmaster/Data/Result/User.pm b/lib/Gruntmaster/Data/Result/User.pm
new file mode 100644 (file)
index 0000000..740d87a
--- /dev/null
@@ -0,0 +1,160 @@
+use utf8;
+package Gruntmaster::Data::Result::User;
+
+# Created by DBIx::Class::Schema::Loader
+# DO NOT MODIFY THE FIRST PART OF THIS FILE
+
+=head1 NAME
+
+Gruntmaster::Data::Result::User
+
+=cut
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Core';
+
+=head1 TABLE: C<users>
+
+=cut
+
+__PACKAGE__->table("users");
+
+=head1 ACCESSORS
+
+=head2 id
+
+  data_type: 'text'
+  is_nullable: 0
+
+=head2 name
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 email
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 town
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 university
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 level
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 lastjob
+
+  data_type: 'bigint'
+  is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+  "id",
+  { data_type => "text", is_nullable => 0 },
+  "name",
+  { data_type => "text", is_nullable => 1 },
+  "email",
+  { data_type => "text", is_nullable => 1 },
+  "town",
+  { data_type => "text", is_nullable => 1 },
+  "university",
+  { data_type => "text", is_nullable => 1 },
+  "level",
+  { data_type => "text", is_nullable => 1 },
+  "lastjob",
+  { data_type => "bigint", is_nullable => 1 },
+);
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("id");
+
+=head1 RELATIONS
+
+=head2 contests
+
+Type: has_many
+
+Related object: L<Gruntmaster::Data::Result::Contest>
+
+=cut
+
+__PACKAGE__->has_many(
+  "contests",
+  "Gruntmaster::Data::Result::Contest",
+  { "foreign.owner" => "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.owner" => "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.owner" => "self.id" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 problems
+
+Type: has_many
+
+Related object: L<Gruntmaster::Data::Result::Problem>
+
+=cut
+
+__PACKAGE__->has_many(
+  "problems",
+  "Gruntmaster::Data::Result::Problem",
+  { "foreign.owner" => "self.id" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-03-06 12:41:16
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CHRtUlZf3hs+lg6Nqi2LPA
+
+
+# You can replace this text with custom code or comments, and it will be preserved on regeneration
+1;
This page took 0.026939 seconds and 4 git commands to generate.