fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / Group.pm
blob781173cf320097a8a6611a09866ee5cef0c26162
1 package SGN::Schema::Group;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("groups");
10 __PACKAGE__->add_columns(
11 "group_id",
13 data_type => "integer",
14 default_value => "nextval('groups_group_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "type",
20 { data_type => "integer", default_value => undef, is_nullable => 1, size => 4 },
21 "comment",
23 data_type => "text",
24 default_value => undef,
25 is_nullable => 1,
26 size => undef,
29 __PACKAGE__->set_primary_key("group_id");
30 __PACKAGE__->has_many(
31 "unigene_builds",
32 "SGN::Schema::UnigeneBuild",
33 { "foreign.organism_group_id" => "self.group_id" },
37 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
38 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yOXQC5bAqXvLNXXk/+buAQ
41 # You can replace this text with custom content, and it will be preserved on regeneration