fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / DeprecatedMapdata.pm
blob5caf3a97a174c7e430e0cc2311395ab4c4679d2d
1 package SGN::Schema::DeprecatedMapdata;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("deprecated_mapdata");
10 __PACKAGE__->add_columns(
11 "loc_id",
13 data_type => "integer",
14 default_value => "nextval('deprecated_mapdata_loc_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "map_id",
21 data_type => "bigint",
22 default_value => "(0)::bigint",
23 is_foreign_key => 1,
24 is_nullable => 0,
25 size => 8,
27 "lg_id",
29 data_type => "bigint",
30 default_value => undef,
31 is_foreign_key => 1,
32 is_nullable => 1,
33 size => 8,
35 "offset",
37 data_type => "numeric",
38 default_value => undef,
39 is_nullable => 1,
40 size => "5,8",
42 "loc_type",
44 data_type => "bigint",
45 default_value => "(0)::bigint",
46 is_nullable => 0,
47 size => 8,
49 "loc_order",
51 data_type => "bigint",
52 default_value => "(0)::bigint",
53 is_nullable => 0,
54 size => 8,
57 __PACKAGE__->set_primary_key("loc_id");
58 __PACKAGE__->belongs_to("map", "SGN::Schema::DeprecatedMap", { map_id => "map_id" });
59 __PACKAGE__->belongs_to(
60 "lg",
61 "SGN::Schema::DeprecatedLinkageGroup",
62 { lg_id => "lg_id" },
63 { join_type => "LEFT" },
65 __PACKAGE__->has_many(
66 "deprecated_marker_locations",
67 "SGN::Schema::DeprecatedMarkerLocation",
68 { "foreign.loc_id" => "self.loc_id" },
72 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
73 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:h90SRjb5LA8LUlGbg0tQqg
76 # You can replace this text with custom content, and it will be preserved on regeneration