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

use base qw/DBIx::Class/;

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

__PACKAGE__->add_columns(
    profile => { data_type => 'int', },
    repos   => { data_type => 'int' },
);

__PACKAGE__->set_primary_key(qw/repos profile/);

__PACKAGE__->belongs_to( 'profile',
    'githubexplorer::Schema::Result::Profiles' );

__PACKAGE__->belongs_to( 'repos',
    'githubexplorer::Schema::Result::Repositories' );

1;