From a7cc690ced15e1a0191d27034006bfb17a0deeb5 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 23 Jan 2010 19:36:24 +0100 Subject: basic github crawler using api --- lib/githubexplorer/Schema/Result/Follow.pm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lib/githubexplorer/Schema/Result/Follow.pm (limited to 'lib/githubexplorer/Schema/Result/Follow.pm') diff --git a/lib/githubexplorer/Schema/Result/Follow.pm b/lib/githubexplorer/Schema/Result/Follow.pm new file mode 100644 index 0000000..735980b --- /dev/null +++ b/lib/githubexplorer/Schema/Result/Follow.pm @@ -0,0 +1,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; -- cgit v1.2.3