GOBO::DBIC::GODBModel::Schema::GeneProductHomolset - GOBO::DBIC::GODBModel::Schema::GeneProductHomolset documentation


GOBO documentation Contained in the GOBO distribution.

Index


Code Index:

GOBO::DBIC::GODBModel::Schema::GeneProductHomolset

Top


GOBO documentation Contained in the GOBO distribution.

use utf8;
use strict;

package GOBO::DBIC::GODBModel::Schema::GeneProductHomolset;

## TODO: Make sure that GOBO::DBIC::GODBModel
#use base ("GOBO::DBIC::GODBModel");
use base qw/DBIx::Class/;

##
__PACKAGE__->load_components(qw/ PK::Auto Core /);

__PACKAGE__->table('gene_product_homolset');

__PACKAGE__->add_columns(
			 id =>
			 {
			  accessor  => 'id',#overrides default of 'id' (irony)
			  data_type => 'integer',
			  size      => 11,
			  is_nullable => 0,
			  is_auto_increment => 1,
			  default_value => undef,
			 },
			 gene_product_id =>
			 {
			  data_type => 'integer',
			  size      => 11,
			  is_nullable => 0,
			  is_auto_increment => 0,
			  default_value => '',
			 },
			 homolset_id =>
			 {
			  data_type => 'integer',
			  size      => 11,
			  is_nullable => 0,
			  is_auto_increment => 0,
			  default_value => '',
			 },
			);

##
__PACKAGE__->set_primary_key('id');

__PACKAGE__->belongs_to('gene_product' =>
                        'GOBO::DBIC::GODBModel::Schema::GeneProduct', 'gene_product_id');
__PACKAGE__->belongs_to('homolset' =>
                        'GOBO::DBIC::GODBModel::Schema::Homolset', 'homolset_id');

#__PACKAGE__->add_unique_constraint("g0", ["id"]);


1;