summary refs log tree commit diff
path: root/lib/githubexplorer/Schema/Result/Follow.pm
blob: 69b959690d502a06c4fa2a569561d5a07a103369 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package githubexplorer::Schema::Result::Follow;

use base qw/DBIx::Class/;

__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('follow');

__PACKAGE__->add_columns(
    origin => { data_type => 'int', },
    dest   => { data_type => 'int' },
);
__PACKAGE__->set_primary_key(qw/origin dest/);
__PACKAGE__->belongs_to( 'origin',
    'githubexplorer::Schema::Result::Profiles' );
__PACKAGE__->belongs_to( 'dest', 'githubexplorer::Schema::Result::Profiles' );

1;