=head1 NAME
-Gruntmaster::Data::Result::User
+Gruntmaster::Data::Result::User - List of users
=cut
data_type: 'text'
is_nullable: 1
+RFC2307-encoded passphrase
+
=head2 admin
data_type: 'boolean'
data_type: 'text'
is_nullable: 1
+Full name of user
+
=head2 email
data_type: 'text'
data_type: 'text'
is_nullable: 1
+Highschool, Undergraduate, Master, Doctorate or Other
+
=head2 lastjob
data_type: 'bigint'
is_nullable: 1
+Unix time when this user last submitted a job
+
=cut
__PACKAGE__->add_columns(
=head1 RELATIONS
+=head2 contest_statuses
+
+Type: has_many
+
+Related object: L<Gruntmaster::Data::Result::ContestStatus>
+
+=cut
+
+__PACKAGE__->has_many(
+ "contest_statuses",
+ "Gruntmaster::Data::Result::ContestStatus",
+ { "foreign.owner" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 contests
Type: has_many
{ cascade_copy => 0, cascade_delete => 0 },
);
+=head2 problem_statuses
+
+Type: has_many
+
+Related object: L<Gruntmaster::Data::Result::ProblemStatus>
+
+=cut
+
+__PACKAGE__->has_many(
+ "problem_statuses",
+ "Gruntmaster::Data::Result::ProblemStatus",
+ { "foreign.owner" => "self.id" },
+ { cascade_copy => 0, cascade_delete => 0 },
+);
+
=head2 problems
Type: has_many
);
-# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-05-16 15:23:08
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Cho4zmn58Mytf2jHvgP+4g
+# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-12-19 16:54:00
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LiA2+ZpTTelwZJtFpZRsbw
+
+use Class::Method::Modifiers qw/after/;
+
+after qw/insert update delete/ => sub {
+ my ($self) = @_;
+ Gruntmaster::Data::purge '/us/';
+ Gruntmaster::Data::purge '/us/' . $self->id;
+};
use Authen::Passphrase;
use Authen::Passphrase::BlowfishCrypt;
cost => 10,
passphrase => $pw,
salt_random => 1,
- )})->as_rfc2307;
+ )->as_rfc2307});
}
1;