1 package SGN
::Schema
::Organism
;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base
'DBIx::Class::Core';
18 __PACKAGE__
->table("organism");
27 sequence: 'organism_organism_id_seq'
41 =head2 organism_descrip
87 =head2 genom_size_gnmc
93 =head2 genom_proj_gnmc
98 =head2 est_attribution_tqmc
103 =head2 chado_organism_id
110 __PACKAGE__
->add_columns(
113 data_type
=> "integer",
114 is_auto_increment
=> 1,
116 sequence
=> "organism_organism_id_seq",
119 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
121 { data_type
=> "bigint", is_foreign_key
=> 1, is_nullable
=> 0 },
123 { data_type
=> "text", is_nullable
=> 1 },
125 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
127 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
129 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
131 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
133 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
135 { data_type
=> "integer", is_nullable
=> 1 },
137 { data_type
=> "varchar", is_nullable
=> 1, size
=> 50 },
139 { data_type
=> "varchar", is_nullable
=> 1, size
=> 50 },
141 { data_type
=> "text", is_nullable
=> 1 },
142 "est_attribution_tqmc",
143 { data_type
=> "text", is_nullable
=> 1 },
145 { data_type
=> "integer", is_nullable
=> 1 },
147 __PACKAGE__
->set_primary_key("organism_id");
148 __PACKAGE__
->add_unique_constraint("unique_organism_name", ["organism_name"]);
156 Related object: L<SGN::Schema::Accession>
160 __PACKAGE__
->has_many(
162 "SGN::Schema::Accession",
163 { "foreign.organism_id" => "self.organism_id" },
164 { cascade_copy
=> 0, cascade_delete
=> 0 },
167 =head2 deprecated_map_crosses
171 Related object: L<SGN::Schema::DeprecatedMapCross>
175 __PACKAGE__
->has_many(
176 "deprecated_map_crosses",
177 "SGN::Schema::DeprecatedMapCross",
178 { "foreign.organism_id" => "self.organism_id" },
179 { cascade_copy
=> 0, cascade_delete
=> 0 },
186 Related object: L<SGN::Schema::Taxonomy>
190 __PACKAGE__
->belongs_to(
192 "SGN::Schema::Taxonomy",
193 { tax_id
=> "order_tax" },
197 on_delete
=> "CASCADE",
198 on_update
=> "CASCADE",
206 Related object: L<SGN::Schema::Taxonomy>
210 __PACKAGE__
->belongs_to(
212 "SGN::Schema::Taxonomy",
213 { tax_id
=> "family_tax" },
217 on_delete
=> "CASCADE",
218 on_update
=> "CASCADE",
226 Related object: L<SGN::Schema::Taxonomy>
230 __PACKAGE__
->belongs_to(
232 "SGN::Schema::Taxonomy",
233 { tax_id
=> "genus_tax" },
237 on_delete
=> "CASCADE",
238 on_update
=> "CASCADE",
246 Related object: L<SGN::Schema::Taxonomy>
250 __PACKAGE__
->belongs_to(
252 "SGN::Schema::Taxonomy",
253 { tax_id
=> "subfamily_tax" },
257 on_delete
=> "CASCADE",
258 on_update
=> "CASCADE",
266 Related object: L<SGN::Schema::CommonName>
270 __PACKAGE__
->belongs_to(
272 "SGN::Schema::CommonName",
273 { common_name_id
=> "common_name_id" },
274 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
278 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
279 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:P659Eo8bylRSynQff1O2mg
282 # You can replace this text with custom content, and it will be preserved on regeneration