The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
package TestSchema::Result::User;

use strict;
use warnings;

use parent 'DBIx::Class::Core';

__PACKAGE__->table("user");

__PACKAGE__->add_columns(
    id => { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
    name => { data_type => "varchar", size => 255 },
    login => { data_type => "varchar", size => 32, is_nullable => 0 },
    password => { data_type => "varchar", size => 32 },
);
__PACKAGE__->set_primary_key("id");
__PACKAGE__->add_unique_constraint("login", ["login"]);

1;