fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / DerivedFromSource.pm
blob04d3950b4ea7ae22cd1b5ced7becf787921d9727
1 package SGN::Schema::DerivedFromSource;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("derived_from_source");
10 __PACKAGE__->add_columns(
11 "derived_from_source_id",
13 data_type => "integer",
14 default_value => "nextval('derived_from_source_derived_from_source_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "source_name",
21 data_type => "text",
22 default_value => undef,
23 is_nullable => 1,
24 size => undef,
25 accessor => 'src_name',
27 "source_schema",
29 data_type => "text",
30 default_value => undef,
31 is_nullable => 1,
32 size => undef,
34 "source_table",
36 data_type => "text",
37 default_value => undef,
38 is_nullable => 1,
39 size => undef,
41 "source_col",
43 data_type => "text",
44 default_value => undef,
45 is_nullable => 1,
46 size => undef,
49 __PACKAGE__->set_primary_key("derived_from_source_id");
50 __PACKAGE__->add_unique_constraint(
51 "derived_from_source_source_schema_key",
52 ["source_schema", "source_table", "source_col"],
54 __PACKAGE__->has_many(
55 "marker_derived_froms",
56 "SGN::Schema::MarkerDerivedFrom",
58 "foreign.derived_from_source_id" => "self.derived_from_source_id",
63 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
64 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iO+7Ly1A1UJAl8Me2IPnEg
67 # You can replace this text with custom content, and it will be preserved on regeneration