| 1 | package Bio::Chado::Schema::Result::Contact::ContactRelationshipscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Contact/ContactRelationship/; |
| 2 | BEGIN { |
| 3 | $Bio::Chado::Schema::Result::Contact::ContactRelationship::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Contact/ContactRelationship/$AUTHORITY. = 'cpan:RBUELS'; |
| 4 | } |
| 5 | { |
| 6 | $Bio::Chado::Schema::Result::Contact::ContactRelationship::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Contact/ContactRelationship/$VERSION. = '0.20000'; |
| 7 | } |
| 8 | |
| 9 | # Created by DBIx::Class::Schema::Loader |
| 10 | # DO NOT MODIFY THE FIRST PART OF THIS FILE |
| 11 | |
| 12 | use strictscip-perl cpan Bio-Chado-Schema 0.20000 strict/; |
| 13 | use warningsscip-perl cpan Bio-Chado-Schema 0.20000 warnings/; |
| 14 | |
| 15 | use basescip-perl cpan Bio-Chado-Schema 0.20000 base/ 'DBIx::Class::Core'; |
| 16 | |
| 17 | |
| 18 | =head1 NAME |
| 19 | |
| 20 | Bio::Chado::Schema::Result::Contact::ContactRelationship - Model relationships between contacts |
| 21 | |
| 22 | =cut |
| 23 | |
| 24 | __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("contact_relationship"); |
| 25 | |
| 26 | =head1 ACCESSORS |
| 27 | |
| 28 | =head2 contact_relationship_id |
| 29 | |
| 30 | data_type: 'integer' |
| 31 | is_auto_increment: 1 |
| 32 | is_nullable: 0 |
| 33 | sequence: 'contact_relationship_contact_relationship_id_seq' |
| 34 | |
| 35 | =head2 type_id |
| 36 | |
| 37 | data_type: 'integer' |
| 38 | is_foreign_key: 1 |
| 39 | is_nullable: 0 |
| 40 | |
| 41 | Relationship type between subject and object. This is a cvterm, typically from the OBO relationship ontology, although other relationship types are allowed. |
| 42 | |
| 43 | =head2 subject_id |
| 44 | |
| 45 | data_type: 'integer' |
| 46 | is_foreign_key: 1 |
| 47 | is_nullable: 0 |
| 48 | |
| 49 | The subject of the subj-predicate-obj sentence. In a DAG, this corresponds to the child node. |
| 50 | |
| 51 | =head2 object_id |
| 52 | |
| 53 | data_type: 'integer' |
| 54 | is_foreign_key: 1 |
| 55 | is_nullable: 0 |
| 56 | |
| 57 | The object of the subj-predicate-obj sentence. In a DAG, this corresponds to the parent node. |
| 58 | |
| 59 | =cut |
| 60 | |
| 61 | __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().( |
| 62 | "contact_relationship_id", |
| 63 | { |
| 64 | data_type => "integer", |
| 65 | is_auto_increment => 1, |
| 66 | is_nullable => 0, |
| 67 | sequence => "contact_relationship_contact_relationship_id_seq", |
| 68 | }, |
| 69 | "type_id", |
| 70 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 71 | "subject_id", |
| 72 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 73 | "object_id", |
| 74 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 75 | ); |
| 76 | __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("contact_relationship_id"); |
| 77 | __PACKAGE__->add_unique_constraintscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_unique_constraint().( |
| 78 | "contact_relationship_c1", |
| 79 | ["subject_id", "object_id", "type_id"], |
| 80 | ); |
| 81 | |
| 82 | =head1 RELATIONS |
| 83 | |
| 84 | =head2 type |
| 85 | |
| 86 | Type: belongs_to |
| 87 | |
| 88 | Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm> |
| 89 | |
| 90 | =cut |
| 91 | |
| 92 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 93 | "type", |
| 94 | "Bio::Chado::Schema::Result::Cv::Cvterm", |
| 95 | { cvterm_id => "type_id" }, |
| 96 | { |
| 97 | cascade_copy => 0, |
| 98 | cascade_delete => 0, |
| 99 | is_deferrable => 1, |
| 100 | on_delete => "CASCADE", |
| 101 | on_update => "CASCADE", |
| 102 | }, |
| 103 | ); |
| 104 | |
| 105 | =head2 object |
| 106 | |
| 107 | Type: belongs_to |
| 108 | |
| 109 | Related object: L<Bio::Chado::Schema::Result::Contact::Contact> |
| 110 | |
| 111 | =cut |
| 112 | |
| 113 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 114 | "object", |
| 115 | "Bio::Chado::Schema::Result::Contact::Contact", |
| 116 | { contact_id => "object_id" }, |
| 117 | { |
| 118 | cascade_copy => 0, |
| 119 | cascade_delete => 0, |
| 120 | is_deferrable => 1, |
| 121 | on_delete => "CASCADE", |
| 122 | on_update => "CASCADE", |
| 123 | }, |
| 124 | ); |
| 125 | |
| 126 | =head2 subject |
| 127 | |
| 128 | Type: belongs_to |
| 129 | |
| 130 | Related object: L<Bio::Chado::Schema::Result::Contact::Contact> |
| 131 | |
| 132 | =cut |
| 133 | |
| 134 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 135 | "subject", |
| 136 | "Bio::Chado::Schema::Result::Contact::Contact", |
| 137 | { contact_id => "subject_id" }, |
| 138 | { |
| 139 | cascade_copy => 0, |
| 140 | cascade_delete => 0, |
| 141 | is_deferrable => 1, |
| 142 | on_delete => "CASCADE", |
| 143 | on_update => "CASCADE", |
| 144 | }, |
| 145 | ); |
| 146 | |
| 147 | |
| 148 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:58 |
| 149 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Iy0whmkxLpn38W7f4lZ8cw |
| 150 | |
| 151 | |
| 152 | # You can replace this text with custom content, and it will be preserved on regeneration |
| 153 | 1; |