fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / MarkerLocation.pm
blob233f3dae832d4ec7998fa1be8b37c15b9a884e59
1 package SGN::Schema::MarkerLocation;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("marker_location");
10 __PACKAGE__->add_columns(
11 "location_id",
13 data_type => "integer",
14 default_value => "nextval('marker_location_location_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "lg_id",
21 data_type => "integer",
22 default_value => undef,
23 is_foreign_key => 1,
24 is_nullable => 0,
25 size => 4,
27 "map_version_id",
29 data_type => "integer",
30 default_value => undef,
31 is_foreign_key => 1,
32 is_nullable => 0,
33 size => 4,
35 "position",
37 data_type => "numeric",
38 default_value => undef,
39 is_nullable => 0,
40 size => "5,8",
42 "confidence_id",
44 data_type => "integer",
45 default_value => undef,
46 is_foreign_key => 1,
47 is_nullable => 0,
48 size => 4,
50 "subscript",
52 data_type => "character",
53 default_value => undef,
54 is_nullable => 1,
55 size => 1,
58 __PACKAGE__->set_primary_key("location_id");
59 __PACKAGE__->has_many(
60 "linkage_group_north_location_ids",
61 "SGN::Schema::LinkageGroup",
62 { "foreign.north_location_id" => "self.location_id" },
64 __PACKAGE__->has_many(
65 "linkage_group_south_location_ids",
66 "SGN::Schema::LinkageGroup",
67 { "foreign.south_location_id" => "self.location_id" },
69 __PACKAGE__->has_many(
70 "marker_experiments",
71 "SGN::Schema::MarkerExperiment",
72 { "foreign.location_id" => "self.location_id" },
74 __PACKAGE__->belongs_to("lg", "SGN::Schema::LinkageGroup", { lg_id => "lg_id" });
75 __PACKAGE__->belongs_to(
76 "confidence",
77 "SGN::Schema::MarkerConfidence",
78 { confidence_id => "confidence_id" },
80 __PACKAGE__->belongs_to(
81 "map_version",
82 "SGN::Schema::MapVersion",
83 { map_version_id => "map_version_id" },
87 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
88 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:hU7wmPdERZMKq01VIQMbXw
91 # You can replace this text with custom content, and it will be preserved on regeneration