Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / PcrExperiment.pm
blob6353f286622f6ad5f5bb193bf95d12cafcdd900b
1 package SGN::Schema::PcrExperiment;
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::PcrExperiment
16 =cut
18 __PACKAGE__->table("pcr_experiment");
20 =head1 ACCESSORS
22 =head2 pcr_experiment_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'pcr_experiment_pcr_experiment_id_seq'
29 =head2 marker_id
31 data_type: 'bigint'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 mg_concentration
37 data_type: 'real'
38 is_nullable: 1
40 =head2 annealing_temp
42 data_type: 'bigint'
43 is_nullable: 1
45 =head2 primer_id_fwd
47 data_type: 'bigint'
48 is_foreign_key: 1
49 is_nullable: 1
51 =head2 primer_id_rev
53 data_type: 'bigint'
54 is_foreign_key: 1
55 is_nullable: 1
57 =head2 subscript
59 data_type: 'varchar'
60 is_nullable: 1
61 size: 255
63 =head2 experiment_type_id
65 data_type: 'bigint'
66 is_foreign_key: 1
67 is_nullable: 1
69 =head2 map_id
71 data_type: 'bigint'
72 is_foreign_key: 1
73 is_nullable: 1
75 =head2 additional_enzymes
77 data_type: 'varchar'
78 is_nullable: 1
79 size: 1023
81 =head2 primer_type
83 data_type: 'varchar'
84 is_nullable: 1
85 size: 4
87 =head2 predicted
89 data_type: 'boolean'
90 default_value: false
91 is_nullable: 1
93 =head2 primer_id_pd
95 data_type: 'bigint'
96 is_nullable: 1
98 =head2 accession_id
100 data_type: 'varchar'
101 is_nullable: 1
102 size: 7
104 =head2 stock_id
106 data_type: 'integer'
107 is_nullable: 1
109 =cut
111 __PACKAGE__->add_columns(
112 "pcr_experiment_id",
114 data_type => "bigint",
115 is_auto_increment => 1,
116 is_nullable => 0,
117 sequence => "pcr_experiment_pcr_experiment_id_seq",
119 "marker_id",
120 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
121 "mg_concentration",
122 { data_type => "real", is_nullable => 1 },
123 "annealing_temp",
124 { data_type => "bigint", is_nullable => 1 },
125 "primer_id_fwd",
126 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
127 "primer_id_rev",
128 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
129 "subscript",
130 { data_type => "varchar", is_nullable => 1, size => 255 },
131 "experiment_type_id",
132 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
133 "map_id",
134 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
135 "additional_enzymes",
136 { data_type => "varchar", is_nullable => 1, size => 1023 },
137 "primer_type",
138 { data_type => "varchar", is_nullable => 1, size => 4 },
139 "predicted",
140 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
141 "primer_id_pd",
142 { data_type => "bigint", is_nullable => 1 },
143 "accession_id",
144 { data_type => "varchar", is_nullable => 1, size => 7 },
145 "stock_id",
146 { data_type => "integer", is_nullable => 1 },
148 __PACKAGE__->set_primary_key("pcr_experiment_id");
150 =head1 RELATIONS
152 =head2 marker_experiments
154 Type: has_many
156 Related object: L<SGN::Schema::MarkerExperiment>
158 =cut
160 __PACKAGE__->has_many(
161 "marker_experiments",
162 "SGN::Schema::MarkerExperiment",
163 { "foreign.pcr_experiment_id" => "self.pcr_experiment_id" },
164 { cascade_copy => 0, cascade_delete => 0 },
167 =head2 pcr_exp_accessions
169 Type: has_many
171 Related object: L<SGN::Schema::PcrExpAccession>
173 =cut
175 __PACKAGE__->has_many(
176 "pcr_exp_accessions",
177 "SGN::Schema::PcrExpAccession",
178 { "foreign.pcr_experiment_id" => "self.pcr_experiment_id" },
179 { cascade_copy => 0, cascade_delete => 0 },
182 =head2 map
184 Type: belongs_to
186 Related object: L<SGN::Schema::Map>
188 =cut
190 __PACKAGE__->belongs_to(
191 "map",
192 "SGN::Schema::Map",
193 { map_id => "map_id" },
195 is_deferrable => 1,
196 join_type => "LEFT",
197 on_delete => "CASCADE",
198 on_update => "CASCADE",
202 =head2 primer_id_fwd
204 Type: belongs_to
206 Related object: L<SGN::Schema::Sequence>
208 =cut
210 __PACKAGE__->belongs_to(
211 "primer_id_fwd",
212 "SGN::Schema::Sequence",
213 { sequence_id => "primer_id_fwd" },
215 is_deferrable => 1,
216 join_type => "LEFT",
217 on_delete => "CASCADE",
218 on_update => "CASCADE",
222 =head2 marker
224 Type: belongs_to
226 Related object: L<SGN::Schema::Marker>
228 =cut
230 __PACKAGE__->belongs_to(
231 "marker",
232 "SGN::Schema::Marker",
233 { marker_id => "marker_id" },
235 is_deferrable => 1,
236 join_type => "LEFT",
237 on_delete => "CASCADE",
238 on_update => "CASCADE",
242 =head2 primer_id_rev
244 Type: belongs_to
246 Related object: L<SGN::Schema::Sequence>
248 =cut
250 __PACKAGE__->belongs_to(
251 "primer_id_rev",
252 "SGN::Schema::Sequence",
253 { sequence_id => "primer_id_rev" },
255 is_deferrable => 1,
256 join_type => "LEFT",
257 on_delete => "CASCADE",
258 on_update => "CASCADE",
262 =head2 experiment_type
264 Type: belongs_to
266 Related object: L<SGN::Schema::ExperimentType>
268 =cut
270 __PACKAGE__->belongs_to(
271 "experiment_type",
272 "SGN::Schema::ExperimentType",
273 { experiment_type_id => "experiment_type_id" },
275 is_deferrable => 1,
276 join_type => "LEFT",
277 on_delete => "CASCADE",
278 on_update => "CASCADE",
282 =head2 pcr_experiment_sequences
284 Type: has_many
286 Related object: L<SGN::Schema::PcrExperimentSequence>
288 =cut
290 __PACKAGE__->has_many(
291 "pcr_experiment_sequences",
292 "SGN::Schema::PcrExperimentSequence",
293 { "foreign.pcr_experiment_id" => "self.pcr_experiment_id" },
294 { cascade_copy => 0, cascade_delete => 0 },
298 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
299 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Czl2BcSeTOW18DpeUyqtdw
302 # You can replace this text with custom content, and it will be preserved on regeneration