##
## Physemp2/DB/Employee.pm
##
package Physemp2::DB::Employee;
use base qw/Physemp2::DB::Base/;

use strict;

__PACKAGE__->table('physemp2.employee');
__PACKAGE__->columns(Primary => qw/id/);
__PACKAGE__->columns(Essential => qw/email password name username/);

__PACKAGE__->untaint_columns(
  email => [ qw/email/ ],
  integer => [ qw/id/ ],
  printable => [ qw/password name username/ ],
);

## constants used by local constraints methods

## define constraints 
__PACKAGE__->add_constraint('email_length_64', email => \&Physemp2::DB::Base::length_64);
__PACKAGE__->add_constraint('password_length_32', password => \&Physemp2::DB::Base::length_32);
__PACKAGE__->add_constraint('name_length_64', name => \&Physemp2::DB::Base::length_64);
__PACKAGE__->add_constraint('id_not_null', id => \&Physemp2::DB::Base::not_null);
__PACKAGE__->add_constraint('id_unsigned_int', id => \&Physemp2::DB::Base::unsigned_int);
__PACKAGE__->add_constraint('username_length_16', username => \&Physemp2::DB::Base::length_16);

## define has_a relationships
__PACKAGE__->has_a(name => 'Physemp2::DB::Name');

## define has many relationships

## define might have relationships here

## put other customzations here 

1;
__END__
