Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / MarkerExperiment.pm
blob123aaced3eceb8bc40bf1f8fba1e6385a23651fa
1 package SGN::Schema::MarkerExperiment;
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::MarkerExperiment
16 =cut
18 __PACKAGE__->table("marker_experiment");
20 =head1 ACCESSORS
22 =head2 marker_experiment_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'marker_experiment_marker_experiment_id_seq'
29 =head2 marker_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 pcr_experiment_id
37 data_type: 'integer'
38 is_foreign_key: 1
39 is_nullable: 1
41 =head2 rflp_experiment_id
43 data_type: 'integer'
44 is_foreign_key: 1
45 is_nullable: 1
47 =head2 location_id
49 data_type: 'integer'
50 is_foreign_key: 1
51 is_nullable: 1
53 =head2 protocol
55 data_type: 'text'
56 is_nullable: 0
58 =cut
60 __PACKAGE__->add_columns(
61 "marker_experiment_id",
63 data_type => "integer",
64 is_auto_increment => 1,
65 is_nullable => 0,
66 sequence => "marker_experiment_marker_experiment_id_seq",
68 "marker_id",
69 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
70 "pcr_experiment_id",
71 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
72 "rflp_experiment_id",
73 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
74 "location_id",
75 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
76 "protocol",
77 { data_type => "text", is_nullable => 0 },
79 __PACKAGE__->set_primary_key("marker_experiment_id");
80 __PACKAGE__->add_unique_constraint(
81 "marker_experiment_pcr_experiment_id_key",
82 ["pcr_experiment_id", "rflp_experiment_id", "location_id"],
85 =head1 RELATIONS
87 =head2 pcr_experiment
89 Type: belongs_to
91 Related object: L<SGN::Schema::PcrExperiment>
93 =cut
95 __PACKAGE__->belongs_to(
96 "pcr_experiment",
97 "SGN::Schema::PcrExperiment",
98 { pcr_experiment_id => "pcr_experiment_id" },
100 is_deferrable => 1,
101 join_type => "LEFT",
102 on_delete => "CASCADE",
103 on_update => "CASCADE",
107 =head2 location
109 Type: belongs_to
111 Related object: L<SGN::Schema::MarkerLocation>
113 =cut
115 __PACKAGE__->belongs_to(
116 "location",
117 "SGN::Schema::MarkerLocation",
118 { location_id => "location_id" },
120 is_deferrable => 1,
121 join_type => "LEFT",
122 on_delete => "CASCADE",
123 on_update => "CASCADE",
127 =head2 rflp_experiment
129 Type: belongs_to
131 Related object: L<SGN::Schema::RflpMarker>
133 =cut
135 __PACKAGE__->belongs_to(
136 "rflp_experiment",
137 "SGN::Schema::RflpMarker",
138 { rflp_id => "rflp_experiment_id" },
140 is_deferrable => 1,
141 join_type => "LEFT",
142 on_delete => "CASCADE",
143 on_update => "CASCADE",
147 =head2 marker
149 Type: belongs_to
151 Related object: L<SGN::Schema::Marker>
153 =cut
155 __PACKAGE__->belongs_to(
156 "marker",
157 "SGN::Schema::Marker",
158 { marker_id => "marker_id" },
160 is_deferrable => 1,
161 join_type => "LEFT",
162 on_delete => "CASCADE",
163 on_update => "CASCADE",
168 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
169 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LACXBxVUAZwsF+fcMy8Y3g
172 # You can replace this text with custom content, and it will be preserved on regeneration