| 1 | package Bio::Chado::Schema::Result::Mage::Treatmentscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Mage/Treatment/; |
| 2 | BEGIN { |
| 3 | $Bio::Chado::Schema::Result::Mage::Treatment::AUTHORITYscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Mage/Treatment/$AUTHORITY. = 'cpan:RBUELS'; |
| 4 | } |
| 5 | { |
| 6 | $Bio::Chado::Schema::Result::Mage::Treatment::VERSIONscip-perl cpan Bio-Chado-Schema 0.20000 Bio/Chado/Schema/Result/Mage/Treatment/$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::Treatment |
| 21 | |
| 22 | =head1 DESCRIPTION |
| 23 | |
| 24 | A biomaterial may undergo multiple |
| 25 | treatments. Examples of treatments: apoxia, fluorophore and biotin labeling. |
| 26 | |
| 27 | =cut |
| 28 | |
| 29 | __PACKAGE__->tablescip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/table().("treatment"); |
| 30 | |
| 31 | =head1 ACCESSORS |
| 32 | |
| 33 | =head2 treatment_id |
| 34 | |
| 35 | data_type: 'integer' |
| 36 | is_auto_increment: 1 |
| 37 | is_nullable: 0 |
| 38 | sequence: 'treatment_treatment_id_seq' |
| 39 | |
| 40 | =head2 rank |
| 41 | |
| 42 | data_type: 'integer' |
| 43 | default_value: 0 |
| 44 | is_nullable: 0 |
| 45 | |
| 46 | =head2 biomaterial_id |
| 47 | |
| 48 | data_type: 'integer' |
| 49 | is_foreign_key: 1 |
| 50 | is_nullable: 0 |
| 51 | |
| 52 | =head2 type_id |
| 53 | |
| 54 | data_type: 'integer' |
| 55 | is_foreign_key: 1 |
| 56 | is_nullable: 0 |
| 57 | |
| 58 | =head2 protocol_id |
| 59 | |
| 60 | data_type: 'integer' |
| 61 | is_foreign_key: 1 |
| 62 | is_nullable: 1 |
| 63 | |
| 64 | =head2 name |
| 65 | |
| 66 | data_type: 'text' |
| 67 | is_nullable: 1 |
| 68 | |
| 69 | =cut |
| 70 | |
| 71 | __PACKAGE__->add_columnsscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/add_columns().( |
| 72 | "treatment_id", |
| 73 | { |
| 74 | data_type => "integer", |
| 75 | is_auto_increment => 1, |
| 76 | is_nullable => 0, |
| 77 | sequence => "treatment_treatment_id_seq", |
| 78 | }, |
| 79 | "rank", |
| 80 | { data_type => "integer", default_value => 0, is_nullable => 0 }, |
| 81 | "biomaterial_id", |
| 82 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 83 | "type_id", |
| 84 | { data_type => "integer", is_foreign_key => 1, is_nullable => 0 }, |
| 85 | "protocol_id", |
| 86 | { data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
| 87 | "name", |
| 88 | { data_type => "text", is_nullable => 1 }, |
| 89 | ); |
| 90 | __PACKAGE__->set_primary_keyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/set_primary_key().("treatment_id"); |
| 91 | |
| 92 | =head1 RELATIONS |
| 93 | |
| 94 | =head2 biomaterial_treatments |
| 95 | |
| 96 | Type: has_many |
| 97 | |
| 98 | Related object: L<Bio::Chado::Schema::Result::Mage::BiomaterialTreatment> |
| 99 | |
| 100 | =cut |
| 101 | |
| 102 | __PACKAGE__->has_manyscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/has_many().( |
| 103 | "biomaterial_treatments", |
| 104 | "Bio::Chado::Schema::Result::Mage::BiomaterialTreatment", |
| 105 | { "foreign.treatment_id" => "self.treatment_id" }, |
| 106 | { cascade_copy => 0, cascade_delete => 0 }, |
| 107 | ); |
| 108 | |
| 109 | =head2 type |
| 110 | |
| 111 | Type: belongs_to |
| 112 | |
| 113 | Related object: L<Bio::Chado::Schema::Result::Cv::Cvterm> |
| 114 | |
| 115 | =cut |
| 116 | |
| 117 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 118 | "type", |
| 119 | "Bio::Chado::Schema::Result::Cv::Cvterm", |
| 120 | { cvterm_id => "type_id" }, |
| 121 | { |
| 122 | cascade_copy => 0, |
| 123 | cascade_delete => 0, |
| 124 | is_deferrable => 1, |
| 125 | on_delete => "CASCADE", |
| 126 | on_update => "CASCADE", |
| 127 | }, |
| 128 | ); |
| 129 | |
| 130 | =head2 protocol |
| 131 | |
| 132 | Type: belongs_to |
| 133 | |
| 134 | Related object: L<Bio::Chado::Schema::Result::Mage::Protocol> |
| 135 | |
| 136 | =cut |
| 137 | |
| 138 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 139 | "protocol", |
| 140 | "Bio::Chado::Schema::Result::Mage::Protocol", |
| 141 | { protocol_id => "protocol_id" }, |
| 142 | { |
| 143 | cascade_copy => 0, |
| 144 | cascade_delete => 0, |
| 145 | is_deferrable => 1, |
| 146 | join_type => "LEFT", |
| 147 | on_delete => "CASCADE", |
| 148 | on_update => "CASCADE", |
| 149 | }, |
| 150 | ); |
| 151 | |
| 152 | =head2 biomaterial |
| 153 | |
| 154 | Type: belongs_to |
| 155 | |
| 156 | Related object: L<Bio::Chado::Schema::Result::Mage::Biomaterial> |
| 157 | |
| 158 | =cut |
| 159 | |
| 160 | __PACKAGE__->belongs_toscip-perl cpan Bio-Chado-Schema 0.20000 __PACKAGE__/belongs_to().( |
| 161 | "biomaterial", |
| 162 | "Bio::Chado::Schema::Result::Mage::Biomaterial", |
| 163 | { biomaterial_id => "biomaterial_id" }, |
| 164 | { |
| 165 | cascade_copy => 0, |
| 166 | cascade_delete => 0, |
| 167 | is_deferrable => 1, |
| 168 | on_delete => "CASCADE", |
| 169 | on_update => "CASCADE", |
| 170 | }, |
| 171 | ); |
| 172 | |
| 173 | |
| 174 | # Created by DBIx::Class::Schema::Loader v0.07010 @ 2011-03-16 23:09:59 |
| 175 | # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WPwU6fqrHkdVhvYZc69hsQ |
| 176 | |
| 177 | |
| 178 | # You can replace this text with custom content, and it will be preserved on regeneration |
| 179 | 1; |