Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / MarkerLocation.pm
blobde8e0c214e75b0eff12bcf372eeb06da5c16d71a
1 package SGN::Schema::MarkerLocation;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6 use strict;
7 use warnings;
9 use base 'DBIx::Class::Core';
12 =head1 NAME
14 SGN::Schema::MarkerLocation
16 =cut
18 __PACKAGE__->table("marker_location");
20 =head1 ACCESSORS
22 =head2 location_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'marker_location_location_id_seq'
29 =head2 lg_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 0
35 =head2 map_version_id
37 data_type: 'integer'
38 is_foreign_key: 1
39 is_nullable: 0
41 =head2 position
43 data_type: 'numeric'
44 is_nullable: 0
45 size: [9,6]
47 =head2 confidence_id
49 data_type: 'integer'
50 is_foreign_key: 1
51 is_nullable: 0
53 =head2 subscript
55 data_type: 'char'
56 is_nullable: 1
57 size: 1
59 =head2 position_north
61 data_type: 'numeric'
62 is_nullable: 1
63 size: [8,5]
65 =head2 position_south
67 data_type: 'numeric'
68 is_nullable: 1
69 size: [8,5]
71 =cut
73 __PACKAGE__->add_columns(
74 "location_id",
76 data_type => "integer",
77 is_auto_increment => 1,
78 is_nullable => 0,
79 sequence => "marker_location_location_id_seq",
81 "lg_id",
82 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
83 "map_version_id",
84 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
85 "position",
86 { data_type => "numeric", is_nullable => 0, size => [9, 6] },
87 "confidence_id",
88 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
89 "subscript",
90 { data_type => "char", is_nullable => 1, size => 1 },
91 "position_north",
92 { data_type => "numeric", is_nullable => 1, size => [8, 5] },
93 "position_south",
94 { data_type => "numeric", is_nullable => 1, size => [8, 5] },
96 __PACKAGE__->set_primary_key("location_id");
98 =head1 RELATIONS
100 =head2 linkage_group_north_locations
102 Type: has_many
104 Related object: L<SGN::Schema::LinkageGroup>
106 =cut
108 __PACKAGE__->has_many(
109 "linkage_group_north_locations",
110 "SGN::Schema::LinkageGroup",
111 { "foreign.north_location_id" => "self.location_id" },
112 { cascade_copy => 0, cascade_delete => 0 },
115 =head2 linkage_group_south_locations
117 Type: has_many
119 Related object: L<SGN::Schema::LinkageGroup>
121 =cut
123 __PACKAGE__->has_many(
124 "linkage_group_south_locations",
125 "SGN::Schema::LinkageGroup",
126 { "foreign.south_location_id" => "self.location_id" },
127 { cascade_copy => 0, cascade_delete => 0 },
130 =head2 marker_experiments
132 Type: has_many
134 Related object: L<SGN::Schema::MarkerExperiment>
136 =cut
138 __PACKAGE__->has_many(
139 "marker_experiments",
140 "SGN::Schema::MarkerExperiment",
141 { "foreign.location_id" => "self.location_id" },
142 { cascade_copy => 0, cascade_delete => 0 },
145 =head2 lg
147 Type: belongs_to
149 Related object: L<SGN::Schema::LinkageGroup>
151 =cut
153 __PACKAGE__->belongs_to(
154 "lg",
155 "SGN::Schema::LinkageGroup",
156 { lg_id => "lg_id" },
157 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
160 =head2 confidence
162 Type: belongs_to
164 Related object: L<SGN::Schema::MarkerConfidence>
166 =cut
168 __PACKAGE__->belongs_to(
169 "confidence",
170 "SGN::Schema::MarkerConfidence",
171 { confidence_id => "confidence_id" },
172 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
175 =head2 map_version
177 Type: belongs_to
179 Related object: L<SGN::Schema::MapVersion>
181 =cut
183 __PACKAGE__->belongs_to(
184 "map_version",
185 "SGN::Schema::MapVersion",
186 { map_version_id => "map_version_id" },
187 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
191 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
192 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2P4PX4+ciHl38fLPp715fQ
195 # You can replace this text with custom content, and it will be preserved on regeneration