Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use strict;
- use warnings;
- package Tegami::Schema::Result::User::Local;
- use parent 'Tegami::Schema::ResultBase::User';
- __PACKAGE__->table('user_local');
- __PACKAGE__->add_columns(
- localpart => {
- data_type => 'varchar',
- is_nullable => 0,
- },
- password => {
- data_type => 'varchar',
- is_nullable => 0,
- },
- );
- __PACKAGE__->set_primary_key(qw(domain localpart));
- __PACKAGE__->might_have(
- forwarding => 'Tegami::Schema::Result::Forwarding',
- { 'foreign.domain' => 'self.domain',
- 'foreign.localpart' => 'self.localpart' },
- );
- 1;
Add Comment
Please, Sign In to add comment