fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / DeprecatedMarker.pm
blob1b25923cc05fcf08e2cc8ec195c71145366f91e6
1 package SGN::Schema::DeprecatedMarker;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("deprecated_markers");
10 __PACKAGE__->add_columns(
11 "marker_id",
13 data_type => "integer",
14 default_value => "nextval('deprecated_markers_marker_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "marker_type",
21 data_type => "bigint",
22 default_value => "(0)::bigint",
23 is_foreign_key => 1,
24 is_nullable => 0,
25 size => 8,
27 "marker_name",
29 data_type => "character varying",
30 default_value => "''::character varying",
31 is_nullable => 0,
32 size => 32,
35 __PACKAGE__->set_primary_key("marker_id");
36 __PACKAGE__->has_many(
37 "deprecated_marker_locations",
38 "SGN::Schema::DeprecatedMarkerLocation",
39 { "foreign.marker_id" => "self.marker_id" },
41 __PACKAGE__->belongs_to(
42 "marker_type",
43 "SGN::Schema::DeprecatedMarkerType",
44 { marker_type_id => "marker_type" },
46 __PACKAGE__->has_many(
47 "marker_derived_froms",
48 "SGN::Schema::MarkerDerivedFrom",
49 { "foreign.marker_id" => "self.marker_id" },
51 __PACKAGE__->has_many(
52 "temp_marker_correspondences",
53 "SGN::Schema::TempMarkerCorrespondence",
54 { "foreign.old_marker_id" => "self.marker_id" },
58 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
59 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:iq+mw1tzL17MWwDwqZaCIQ
62 # You can replace this text with custom content, and it will be preserved on regeneration