blob: 4fce47484889bc0b0454c1a3f09ac9104f360204 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package githubexplorer::Schema::Result::RepoLang;
use base qw/DBIx::Class/;
__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('repolang');
__PACKAGE__->add_columns(
repository => { data_type => 'int', },
language => { data_type => 'varchar', },
size => { data_type => 'int' },
);
__PACKAGE__->set_primary_key(qw/repository language/);
__PACKAGE__->belongs_to( 'repository',
'githubexplorer::Schema::Result::Repositories' );
__PACKAGE__->belongs_to( 'language',
'githubexplorer::Schema::Result::Language' );
1;
|