Skip to content
Snippets Groups Projects
Testaccount.pm 609 B
Newer Older
package IdPAccountManager::Data::Testaccount;

use strict;

use base qw(IdPAccountManager::Data::DB::Object::AutoBase2);

__PACKAGE__->meta->setup(
    table   => 'testaccounts',

    columns => [
        id              => { type => 'bigserial', not_null => 1 },
        user_id         => { type => 'varchar', length => 50, not_null => 1 },
        user_password   => { type => 'varchar', length => 50, not_null => 1 },
        creation_date   => { type => 'integer' },
        expiration_date => { type => 'integer' },
    ],

    primary_key_columns => [ 'id' ],

    unique_key => [ 'user_id' ],
);

1;