Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Taxonomy.pm
blobce67c2cff56c74319207b22a38ad396d18b1ade0
1 package SGN::Schema::Taxonomy;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6 use strict;
7 use warnings;
9 use base 'DBIx::Class::Core';
12 =head1 NAME
14 SGN::Schema::Taxonomy
16 =cut
18 __PACKAGE__->table("taxonomy");
20 =head1 ACCESSORS
22 =head2 tax_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'taxonomy_tax_id_seq'
29 =head2 tax_name
31 data_type: 'varchar'
32 is_nullable: 0
33 size: 50
35 =head2 tax_type
37 data_type: 'varchar'
38 is_nullable: 1
39 size: 50
41 =cut
43 __PACKAGE__->add_columns(
44 "tax_id",
46 data_type => "integer",
47 is_auto_increment => 1,
48 is_nullable => 0,
49 sequence => "taxonomy_tax_id_seq",
51 "tax_name",
52 { data_type => "varchar", is_nullable => 0, size => 50 },
53 "tax_type",
54 { data_type => "varchar", is_nullable => 1, size => 50 },
56 __PACKAGE__->set_primary_key("tax_id");
58 =head1 RELATIONS
60 =head2 organism_order_taxes
62 Type: has_many
64 Related object: L<SGN::Schema::Organism>
66 =cut
68 __PACKAGE__->has_many(
69 "organism_order_taxes",
70 "SGN::Schema::Organism",
71 { "foreign.order_tax" => "self.tax_id" },
72 { cascade_copy => 0, cascade_delete => 0 },
75 =head2 organism_family_taxes
77 Type: has_many
79 Related object: L<SGN::Schema::Organism>
81 =cut
83 __PACKAGE__->has_many(
84 "organism_family_taxes",
85 "SGN::Schema::Organism",
86 { "foreign.family_tax" => "self.tax_id" },
87 { cascade_copy => 0, cascade_delete => 0 },
90 =head2 organism_genus_taxes
92 Type: has_many
94 Related object: L<SGN::Schema::Organism>
96 =cut
98 __PACKAGE__->has_many(
99 "organism_genus_taxes",
100 "SGN::Schema::Organism",
101 { "foreign.genus_tax" => "self.tax_id" },
102 { cascade_copy => 0, cascade_delete => 0 },
105 =head2 organism_subfamily_taxes
107 Type: has_many
109 Related object: L<SGN::Schema::Organism>
111 =cut
113 __PACKAGE__->has_many(
114 "organism_subfamily_taxes",
115 "SGN::Schema::Organism",
116 { "foreign.subfamily_tax" => "self.tax_id" },
117 { cascade_copy => 0, cascade_delete => 0 },
121 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
122 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oDr8F1joqs5Q8VT/s0g9Ow
125 # You can replace this text with custom content, and it will be preserved on regeneration