| 1 | package Bio::Chado::Schema::Result::Mage::BiomaterialRelationshipscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Mage/BiomaterialRelationship/; |
| 2 | BEGIN { |
| 3 | $Bio::Chado::Schema::Result::Mage::BiomaterialRelationship::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Mage/BiomaterialRelationship/$AUTHORITY. = 'cpan:RBUELS'; |
| 4 | } |
| 5 | { |
| 6 | $Bio::Chado::Schema::Result::Mage::BiomaterialRelationship::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Mage/BiomaterialRelationship/$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::Mage::BiomaterialRelationship |
| 21 | |
| 22 | =head1 DESCRIPTION |
| 23 | |
| 24 | Relate biomaterials to one another. This is a way to track a series of treatments or material splits/merges, for instance. |
| 25 | |
| 26 | =cut |
| 27 | |
| 28 | __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("biomaterial_relationship"); |
| 29 | |
| 30 | =head1 ACCESSORS |
| 31 | |
| 32 | =head2 biomaterial_relationship_id |
| 33 | |
| 34 | data_type: 'integer' |
| 35 | is_auto_increment: 1 |
| 36 | is_nullable: 0 |
| 37 | sequence: 'biomaterial_relationship_biomaterial_relationship_id_seq' |
| 38 | |
| 39 | =head2 subject_id |
| 40 | |
| 41 | data_type: 'integer' |
| 42 | is_foreign_key: 1 |
| 43 | is_nullable: 0 |
| 44 | |
| 45 | =head2 type_id |
| 46 | |
| 47 | data_type: 'integer' |
| 48 | is_foreign_key: 1 |
| 49 | is_nullable: 0 |
| 50 | |
| 51 | =head2 object_id |
| 52 | |
| 53 | data_type: 'integer' |
| 54 | is_foreign_key: 1 |
| 55 | is_nullable: 0 |
| 56 | |
| 57 | =cut |
| 58 | |
| 59 | __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().( |
| 60 | "biomaterial_relationship_id", |
| 61 | { |
| 62 | data_type => "integer", |
| 63 | is_auto_increment => 1, |
| 64 | is_nullable => 0, |
| 65 | sequence => "biomaterial_relationship_biomaterial_relationship_id_seq", |
| 66 | }, |
| 67 | "subject_id", |
| 68 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 69 | "type_id", |
| 70 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 71 | "object_id", |
| 72 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 73 | ); |
| 74 | __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("biomaterial_relationship_id"); |
| 75 | __PACKAGE__->add_unique_constraintscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_unique_constraint().( |
| 76 | "biomaterial_relationship_c1", |
| 77 | ["subject_id", "object_id", "type_id"], |
| 78 | ); |
| 79 | |
| 80 | =head1 RELATIONS |
| 81 | |
| 82 | =head2 subject |
| 83 | |
| 84 | Type: belongs_to |
| 85 | |
| 86 | Related object: L<Bio::Chado::Schema::Result::Mage::Biomaterial> |
| 87 | |
| 88 | =cut |
| 89 | |
| 90 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 91 | "subject", |
| 92 | "Bio::Chado::Schema::Result::Mage::Biomaterial", |
| 93 | { biomaterial_id => "subject_id" }, |
| 94 | { |
| 95 | cascade_copy => 0, |
| 96 | cascade_delete => 0, |
| 97 | is_deferrable => 1, |
| 98 | on_delete => "CASCADE", |
| 99 | on_update => "CASCADE", |
| 100 | }, |
| 101 | ); |
| 102 | |
| 103 | =head2 object |
| 104 | |
| 105 | Type: belongs_to |
| 106 | |
| 107 | Related object: L<Bio::Chado::Schema::Result::Mage::Biomaterial> |
| 108 | |
| 109 | =cut |
| 110 | |
| 111 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 112 | "object", |
| 113 | "Bio::Chado::Schema::Result::Mage::Biomaterial", |
| 114 | { biomaterial_id => "object_id" }, |
| 115 | { |
| 116 | cascade_copy => 0, |
| 117 | cascade_delete => 0, |
| 118 | is_deferrable => 1, |
| 119 | on_delete => "CASCADE", |
| 120 | on_update => "CASCADE", |
| 121 | }, |
| 122 | ); |
| 123 | |
| 124 | =head2 type |
| 125 | |
| 126 | Type: belongs_to |
| 127 | |
| 128 | Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm> |
| 129 | |
| 130 | =cut |
| 131 | |
| 132 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 133 | "type", |
| 134 | "Bio::Chado::Schema::Result::Cv::Cvterm", |
| 135 | { cvterm_id => "type_id" }, |
| 136 | { |
| 137 | cascade_copy => 0, |
| 138 | cascade_delete => 0, |
| 139 | is_deferrable => 1, |
| 140 | on_delete => "CASCADE", |
| 141 | on_update => "CASCADE", |
| 142 | }, |
| 143 | ); |
| 144 | |
| 145 | |
| 146 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:58 |
| 147 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qsN36Ia/mniZTEyqDXkTcg |
| 148 | |
| 149 | |
| 150 | # You can replace this text with custom content, and it will be preserved on regeneration |
| 151 | 1; |