fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / DeprecatedMap.pm
blob838122ea3cc4ef160c855849b6cb49d59c9ff8bb
1 package SGN::Schema::DeprecatedMap;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("deprecated_maps");
10 __PACKAGE__->add_columns(
11 "map_id",
13 data_type => "integer",
14 default_value => "nextval('deprecated_maps_map_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "legacy_id",
21 data_type => "bigint",
22 default_value => "(0)::bigint",
23 is_nullable => 0,
24 size => 8,
26 "short_name",
28 data_type => "character varying",
29 default_value => "''::character varying",
30 is_nullable => 0,
31 size => 50,
33 "long_name",
35 data_type => "character varying",
36 default_value => "''::character varying",
37 is_nullable => 0,
38 size => 250,
40 "number_chromosomes",
42 data_type => "bigint",
43 default_value => "(0)::bigint",
44 is_nullable => 0,
45 size => 8,
47 "default_threshold",
49 data_type => "bigint",
50 default_value => "(0)::bigint",
51 is_nullable => 0,
52 size => 8,
54 "header",
56 data_type => "text",
57 default_value => undef,
58 is_nullable => 0,
59 size => undef,
61 "abstract",
63 data_type => "text",
64 default_value => undef,
65 is_nullable => 0,
66 size => undef,
68 "genetic_cross",
70 data_type => "character varying",
71 default_value => undef,
72 is_nullable => 1,
73 size => 250,
75 "population_type",
77 data_type => "character varying",
78 default_value => undef,
79 is_nullable => 1,
80 size => 250,
82 "population_size",
83 { data_type => "bigint", default_value => undef, is_nullable => 1, size => 8 },
84 "seed_available",
85 { data_type => "bigint", default_value => undef, is_nullable => 1, size => 8 },
86 "seed_url",
88 data_type => "character varying",
89 default_value => undef,
90 is_nullable => 1,
91 size => 250,
93 "deprecated_by",
95 data_type => "bigint",
96 default_value => "(0)::bigint",
97 is_nullable => 1,
98 size => 8,
100 "map_type",
102 data_type => "character varying",
103 default_value => undef,
104 is_nullable => 1,
105 size => 7,
108 __PACKAGE__->set_primary_key("map_id");
109 __PACKAGE__->has_many(
110 "deprecated_linkage_groups",
111 "SGN::Schema::DeprecatedLinkageGroup",
112 { "foreign.map_id" => "self.map_id" },
114 __PACKAGE__->has_many(
115 "deprecated_map_crosses",
116 "SGN::Schema::DeprecatedMapCross",
117 { "foreign.map_id" => "self.map_id" },
119 __PACKAGE__->has_many(
120 "deprecated_mapdatas",
121 "SGN::Schema::DeprecatedMapdata",
122 { "foreign.map_id" => "self.map_id" },
124 __PACKAGE__->has_many(
125 "fish_results",
126 "SGN::Schema::FishResult",
127 { "foreign.map_id" => "self.map_id" },
129 __PACKAGE__->has_many(
130 "temp_map_correspondences",
131 "SGN::Schema::TempMapCorrespondence",
132 { "foreign.old_map_id" => "self.map_id" },
136 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
137 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZOA9St2Q2s4BDPphigt3FA
140 # You can replace this text with custom content, and it will be preserved on regeneration