Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Map.pm
blobad7566fda21ba9259dd2c193c867400227a014a9
1 package SGN::Schema::Map;
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::Map
16 =cut
18 __PACKAGE__->table("map");
20 =head1 ACCESSORS
22 =head2 map_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'map_map_id_seq'
29 =head2 short_name
31 data_type: 'text'
32 is_nullable: 0
34 =head2 long_name
36 data_type: 'text'
37 is_nullable: 1
39 =head2 abstract
41 data_type: 'text'
42 is_nullable: 1
44 =head2 map_type
46 data_type: 'text'
47 is_nullable: 1
49 =head2 parent_1
51 data_type: 'integer'
52 is_foreign_key: 1
53 is_nullable: 1
55 =head2 parent_2
57 data_type: 'integer'
58 is_foreign_key: 1
59 is_nullable: 1
61 =head2 units
63 data_type: 'text'
64 default_value: 'cM'
65 is_nullable: 1
67 =head2 ancestor
69 data_type: 'integer'
70 is_foreign_key: 1
71 is_nullable: 1
73 =head2 population_id
75 data_type: 'integer'
76 is_nullable: 1
78 =head2 parent1_stock_id
80 data_type: 'bigint'
81 is_nullable: 1
83 =head2 parent2_stock_id
85 data_type: 'bigint'
86 is_nullable: 1
88 =head2 population_stock_id
90 data_type: 'bigint'
91 is_nullable: 1
93 =cut
95 __PACKAGE__->add_columns(
96 "map_id",
98 data_type => "integer",
99 is_auto_increment => 1,
100 is_nullable => 0,
101 sequence => "map_map_id_seq",
103 "short_name",
104 { data_type => "text", is_nullable => 0 },
105 "long_name",
106 { data_type => "text", is_nullable => 1 },
107 "abstract",
108 { data_type => "text", is_nullable => 1 },
109 "map_type",
110 { data_type => "text", is_nullable => 1 },
111 "parent_1",
112 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
113 "parent_2",
114 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
115 "units",
116 { data_type => "text", default_value => "cM", is_nullable => 1 },
117 "ancestor",
118 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
119 "population_id",
120 { data_type => "integer", is_nullable => 1 },
121 "parent1_stock_id",
122 { data_type => "bigint", is_nullable => 1 },
123 "parent2_stock_id",
124 { data_type => "bigint", is_nullable => 1 },
125 "population_stock_id",
126 { data_type => "bigint", is_nullable => 1 },
128 __PACKAGE__->set_primary_key("map_id");
130 =head1 RELATIONS
132 =head2 ancestor
134 Type: belongs_to
136 Related object: L<SGN::Schema::Accession>
138 =cut
140 __PACKAGE__->belongs_to(
141 "ancestor",
142 "SGN::Schema::Accession",
143 { accession_id => "ancestor" },
145 is_deferrable => 1,
146 join_type => "LEFT",
147 on_delete => "CASCADE",
148 on_update => "CASCADE",
152 =head2 parent_2
154 Type: belongs_to
156 Related object: L<SGN::Schema::Accession>
158 =cut
160 __PACKAGE__->belongs_to(
161 "parent_2",
162 "SGN::Schema::Accession",
163 { accession_id => "parent_2" },
165 is_deferrable => 1,
166 join_type => "LEFT",
167 on_delete => "CASCADE",
168 on_update => "CASCADE",
172 =head2 parent_1
174 Type: belongs_to
176 Related object: L<SGN::Schema::Accession>
178 =cut
180 __PACKAGE__->belongs_to(
181 "parent_1",
182 "SGN::Schema::Accession",
183 { accession_id => "parent_1" },
185 is_deferrable => 1,
186 join_type => "LEFT",
187 on_delete => "CASCADE",
188 on_update => "CASCADE",
192 =head2 map_versions
194 Type: has_many
196 Related object: L<SGN::Schema::MapVersion>
198 =cut
200 __PACKAGE__->has_many(
201 "map_versions",
202 "SGN::Schema::MapVersion",
203 { "foreign.map_id" => "self.map_id" },
204 { cascade_copy => 0, cascade_delete => 0 },
207 =head2 pcr_experiments
209 Type: has_many
211 Related object: L<SGN::Schema::PcrExperiment>
213 =cut
215 __PACKAGE__->has_many(
216 "pcr_experiments",
217 "SGN::Schema::PcrExperiment",
218 { "foreign.map_id" => "self.map_id" },
219 { cascade_copy => 0, cascade_delete => 0 },
223 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
224 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:AYZYWOx5WJ4XydpNX0pWIw
227 # You can replace this text with custom content, and it will be preserved on regeneration