X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FData%2FResult%2FUser.pm;h=73fe6abae0088e7d0c7229e875139fff209110c6;hb=de7226ca2f77bf5d6fab57c61a6fdeb4fcc52c28;hp=c5547c1f776c3b179e54f292600ce7edf26289ad;hpb=adb42d4d148fdb3dd145e4a7452b7b7eda88f66c;p=gruntmaster-data.git diff --git a/lib/Gruntmaster/Data/Result/User.pm b/lib/Gruntmaster/Data/Result/User.pm index c5547c1..73fe6ab 100644 --- a/lib/Gruntmaster/Data/Result/User.pm +++ b/lib/Gruntmaster/Data/Result/User.pm @@ -6,7 +6,7 @@ package Gruntmaster::Data::Result::User; =head1 NAME -Gruntmaster::Data::Result::User +Gruntmaster::Data::Result::User - List of users =cut @@ -33,6 +33,8 @@ __PACKAGE__->table("users"); data_type: 'text' is_nullable: 1 +RFC2307-encoded passphrase + =head2 admin data_type: 'boolean' @@ -44,6 +46,8 @@ __PACKAGE__->table("users"); data_type: 'text' is_nullable: 1 +Full name of user + =head2 email data_type: 'text' @@ -69,11 +73,15 @@ __PACKAGE__->table("users"); 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( @@ -204,8 +212,16 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-12-11 23:51:27 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JcVHC/n8J+NgJge9LkckYA +# 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;