Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / CommonName.pm
blobe359539bdeb442815061511c51efa7b1f92e22f1
1 package SGN::Schema::CommonName;
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::CommonName
16 =cut
18 __PACKAGE__->table("common_name");
20 =head1 ACCESSORS
22 =head2 common_name_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'common_name_common_name_id_seq'
29 =head2 common_name
31 data_type: 'varchar'
32 is_nullable: 0
33 size: 255
35 =cut
37 __PACKAGE__->add_columns(
38 "common_name_id",
40 data_type => "bigint",
41 is_auto_increment => 1,
42 is_nullable => 0,
43 sequence => "common_name_common_name_id_seq",
45 "common_name",
46 { data_type => "varchar", is_nullable => 0, size => 255 },
48 __PACKAGE__->set_primary_key("common_name_id");
49 __PACKAGE__->add_unique_constraint("common_name_unique", ["common_name"]);
51 =head1 RELATIONS
53 =head2 common_nameprops
55 Type: has_many
57 Related object: L<SGN::Schema::CommonNameprop>
59 =cut
61 __PACKAGE__->has_many(
62 "common_nameprops",
63 "SGN::Schema::CommonNameprop",
64 { "foreign.common_name_id" => "self.common_name_id" },
65 { cascade_copy => 0, cascade_delete => 0 },
68 =head2 organisms
70 Type: has_many
72 Related object: L<SGN::Schema::Organism>
74 =cut
76 __PACKAGE__->has_many(
77 "organisms",
78 "SGN::Schema::Organism",
79 { "foreign.common_name_id" => "self.common_name_id" },
80 { cascade_copy => 0, cascade_delete => 0 },
84 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
85 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OZwtKEhvlAoHbT+X5USNAA
88 # You can replace this text with custom content, and it will be preserved on regeneration