package LIMS::DB::Session;
use base qw(LIMS::RDBO);
__PACKAGE__->meta->setup (
table => 'sessions',
columns => [
id => { type => 'serial', not_null => 1 },
userid => { type => 'varchar', length => 50 },
a_session => { type => 'text', length => 65535, not_null => 1 },
time => { type => 'timestamp', not_null => 1 },
],
primary_key_columns => [ 'id' ],
unique_keys => [ 'userid' ],
);
__PACKAGE__->meta->make_manager_class('sessions');
1;