fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / Interpro.pm
blob34dacd81b1955cffb185bc93306a5cacfc798787
1 package SGN::Schema::Interpro;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("interpro");
10 __PACKAGE__->add_columns(
11 "interpro_id",
13 data_type => "bigint",
14 default_value => "nextval('interpro_interpro_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 8,
19 "interpro_accession",
21 data_type => "character varying",
22 default_value => undef,
23 is_nullable => 1,
24 size => 20,
26 "description",
28 data_type => "text",
29 default_value => undef,
30 is_nullable => 1,
31 size => undef,
33 "description_fulltext",
35 data_type => "tsvector",
36 default_value => undef,
37 is_nullable => 1,
38 size => undef,
41 __PACKAGE__->set_primary_key("interpro_id");
42 __PACKAGE__->add_unique_constraint("interpro_interpro_accession_key", ["interpro_accession"]);
43 __PACKAGE__->has_many(
44 "interpro_goes",
45 "SGN::Schema::InterproGo",
46 { "foreign.interpro_accession" => "self.interpro_accession" },
50 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
51 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eOKpm49x0BGacxaavYLf2Q
54 # You can replace this text with custom content, and it will be preserved on regeneration