Guest User

Untitled

a guest
Jul 25th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3.  
  4. package Tegami::Schema::Result::User::Local;
  5.  
  6. use parent 'Tegami::Schema::ResultBase::User';
  7.  
  8. __PACKAGE__->table('user_local');
  9.  
  10. __PACKAGE__->add_columns(
  11. localpart => {
  12. data_type => 'varchar',
  13. is_nullable => 0,
  14. },
  15. password => {
  16. data_type => 'varchar',
  17. is_nullable => 0,
  18. },
  19. );
  20.  
  21. __PACKAGE__->set_primary_key(qw(domain localpart));
  22.  
  23. __PACKAGE__->might_have(
  24. forwarding => 'Tegami::Schema::Result::Forwarding',
  25. { 'foreign.domain' => 'self.domain',
  26. 'foreign.localpart' => 'self.localpart' },
  27. );
  28.  
  29. 1;
Add Comment
Please, Sign In to add comment