The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
package Awesome::DB::User;
use base 'DBIx::Class::Bootstrap::Simple';
use strict;

__PACKAGE__->init(
    table       => 'users',
    primary_key => 'user_id',
    definition  => [
        {
            key     => 'user_id',
            type    => 'INT(11)',
            special => 'AUTO_INCREMENT',
            null    => 0,
            primary => 1,
        },
        {
            key     => 'password_id',
            type    => 'INT(11)',
        },
        {
            key     => 'name',
            type    => 'VARHCAR(255)',
        },
    ],
    references  => {
        password => {
            class  => 'Awesome::DB::Password',
            column => 'password_id',
        },
    },
);

1;