blob: 735980be3883a7aac1fa4205a09ed469b7119cd5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package githubexplorer::Schema::Result::Follow;
use base qw/DBIx::Class/;
__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('follow');
__PACKAGE__->add_columns(
id_follower => { data_type => 'int', },
id_following => { data_type => 'int' },
);
__PACKAGE__->set_primary_key(qw/id_follower id_following/);
__PACKAGE__->belongs_to( 'id_follower',
'githubexplorer::Schema::Result::Profiles' );
__PACKAGE__->belongs_to( 'id_following',
'githubexplorer::Schema::Result::Profiles' );
1;
|