Bio::Chado::Schema::Result::Contact::Contact - Model persons, institutes, groups, organizations, etc.


Bio-Chado-Schema documentation Contained in the Bio-Chado-Schema distribution.

Index


Code Index:

NAME

Top

Bio::Chado::Schema::Result::Contact::Contact

NAME

Top

Bio::Chado::Schema::Result::Contact::Contact - Model persons, institutes, groups, organizations, etc.

ACCESSORS

Top

contact_id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0
  sequence: 'contact_contact_id_seq'

type_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

What type of contact is this? E.g. "person", "lab".

name

  data_type: 'varchar'
  is_nullable: 0
  size: 255

description

  data_type: 'varchar'
  is_nullable: 1
  size: 255

RELATIONS

Top

arraydesigns

Type: has_many

Related object: Bio::Chado::Schema::Result::Mage::Arraydesign

assays

Type: has_many

Related object: Bio::Chado::Schema::Result::Mage::Assay

biomaterials

Type: has_many

Related object: Bio::Chado::Schema::Result::Mage::Biomaterial

type

Type: belongs_to

Related object: Bio::Chado::Schema::Result::Cv::Cvterm

contact_relationship_objects

Type: has_many

Related object: Bio::Chado::Schema::Result::Contact::ContactRelationship

contact_relationship_subjects

Type: has_many

Related object: Bio::Chado::Schema::Result::Contact::ContactRelationship

nd_experiment_contacts

Type: has_many

Related object: Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentContact

project_contacts

Type: has_many

Related object: Bio::Chado::Schema::Result::Project::ProjectContact

quantifications

Type: has_many

Related object: Bio::Chado::Schema::Result::Mage::Quantification

stockcollections

Type: has_many

Related object: Bio::Chado::Schema::Result::Stock::Stockcollection

studies

Type: has_many

Related object: Bio::Chado::Schema::Result::Mage::Study

AUTHOR

Top

Robert Buels <rbuels@cpan.org>

COPYRIGHT AND LICENSE

Top


Bio-Chado-Schema documentation Contained in the Bio-Chado-Schema distribution.

package Bio::Chado::Schema::Result::Contact::Contact;
BEGIN {
  $Bio::Chado::Schema::Result::Contact::Contact::AUTHORITY = 'cpan:RBUELS';
}
BEGIN {
  $Bio::Chado::Schema::Result::Contact::Contact::VERSION = '0.08100';
}

# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE

use strict;
use warnings;

use base 'DBIx::Class::Core';



__PACKAGE__->table("contact");


__PACKAGE__->add_columns(
  "contact_id",
  {
    data_type         => "integer",
    is_auto_increment => 1,
    is_nullable       => 0,
    sequence          => "contact_contact_id_seq",
  },
  "type_id",
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
  "name",
  { data_type => "varchar", is_nullable => 0, size => 255 },
  "description",
  { data_type => "varchar", is_nullable => 1, size => 255 },
);
__PACKAGE__->set_primary_key("contact_id");
__PACKAGE__->add_unique_constraint("contact_c1", ["name"]);


__PACKAGE__->has_many(
  "arraydesigns",
  "Bio::Chado::Schema::Result::Mage::Arraydesign",
  { "foreign.manufacturer_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "assays",
  "Bio::Chado::Schema::Result::Mage::Assay",
  { "foreign.operator_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "biomaterials",
  "Bio::Chado::Schema::Result::Mage::Biomaterial",
  { "foreign.biosourceprovider_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->belongs_to(
  "type",
  "Bio::Chado::Schema::Result::Cv::Cvterm",
  { cvterm_id => "type_id" },
  {
    cascade_copy   => 0,
    cascade_delete => 0,
    is_deferrable  => 1,
    join_type      => "LEFT",
    on_delete      => "CASCADE",
    on_update      => "CASCADE",
  },
);


__PACKAGE__->has_many(
  "contact_relationship_objects",
  "Bio::Chado::Schema::Result::Contact::ContactRelationship",
  { "foreign.object_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "contact_relationship_subjects",
  "Bio::Chado::Schema::Result::Contact::ContactRelationship",
  { "foreign.subject_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "nd_experiment_contacts",
  "Bio::Chado::Schema::Result::NaturalDiversity::NdExperimentContact",
  { "foreign.contact_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "project_contacts",
  "Bio::Chado::Schema::Result::Project::ProjectContact",
  { "foreign.contact_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "quantifications",
  "Bio::Chado::Schema::Result::Mage::Quantification",
  { "foreign.operator_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "stockcollections",
  "Bio::Chado::Schema::Result::Stock::Stockcollection",
  { "foreign.contact_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


__PACKAGE__->has_many(
  "studies",
  "Bio::Chado::Schema::Result::Mage::Study",
  { "foreign.contact_id" => "self.contact_id" },
  { cascade_copy => 0, cascade_delete => 0 },
);


# Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:58
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7KIOnPWNyVs/NPhRJ3bFYg


# You can replace this text with custom content, and it will be preserved on regeneration
1;

__END__