fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / FamilyTree.pm
blobab6bac8f46c589fa3ad03b9e16b233e4a1e406e9
1 package SGN::Schema::FamilyTree;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("family_tree");
10 __PACKAGE__->add_columns(
11 "family_tree_id",
13 data_type => "integer",
14 default_value => "nextval('family_tree_family_tree_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "family_id",
21 data_type => "integer",
22 default_value => undef,
23 is_foreign_key => 1,
24 is_nullable => 0,
25 size => 4,
27 "tree_nr",
28 { data_type => "integer", default_value => undef, is_nullable => 1, size => 4 },
29 "newick_cds",
31 data_type => "character varying",
32 default_value => undef,
33 is_nullable => 1,
34 size => undef,
36 "newick_unigene",
38 data_type => "character varying",
39 default_value => undef,
40 is_nullable => 1,
41 size => undef,
44 __PACKAGE__->set_primary_key("family_tree_id");
45 __PACKAGE__->belongs_to("family", "SGN::Schema::Family", { family_id => "family_id" });
48 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
49 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:96Pb3uKjjqxmmtCCzval2Q
52 # You can replace this text with custom content, and it will be preserved on regeneration