fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / CommonName.pm
blobfe20cb4e28ad17896bf794fffe04cade3c752d89
1 package SGN::Schema::CommonName;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("common_name");
10 __PACKAGE__->add_columns(
11 "common_name_id",
13 data_type => "bigint",
14 default_value => "nextval('common_name_common_name_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 8,
19 "common_name",
21 data_type => "character varying",
22 default_value => undef,
23 is_nullable => 0,
24 size => 255,
27 __PACKAGE__->set_primary_key("common_name_id");
28 __PACKAGE__->add_unique_constraint("common_name_unique", ["common_name"]);
29 __PACKAGE__->has_many(
30 "organisms",
31 "SGN::Schema::Organism",
32 { "foreign.common_name_id" => "self.common_name_id" },
34 __PACKAGE__->has_many(
35 "organismprops",
36 "SGN::Schema::Organismprop",
37 { "foreign.common_name_id" => "self.common_name_id" },
41 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
42 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tbYoxZDGDjT/Ofi+4PbgIA
45 # You can replace this text with custom content, and it will be preserved on regeneration