Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / MapVersion.pm
blobe9eb274540239150aaf782d6cb9445633ec1e0a5
1 package SGN::Schema::MapVersion;
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::MapVersion
16 =cut
18 __PACKAGE__->table("map_version");
20 =head1 ACCESSORS
22 =head2 map_version_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'map_version_map_version_id_seq'
29 =head2 map_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 date_loaded
37 data_type: 'date'
38 is_nullable: 1
40 =head2 current_version
42 data_type: 'boolean'
43 is_nullable: 1
45 =head2 default_threshold
47 data_type: 'integer'
48 is_foreign_key: 1
49 is_nullable: 1
51 =head2 has_il
53 data_type: 'boolean'
54 is_nullable: 1
56 =head2 has_physical
58 data_type: 'boolean'
59 is_nullable: 1
61 =head2 metadata_id
63 data_type: 'integer'
64 is_nullable: 1
66 =cut
68 __PACKAGE__->add_columns(
69 "map_version_id",
71 data_type => "integer",
72 is_auto_increment => 1,
73 is_nullable => 0,
74 sequence => "map_version_map_version_id_seq",
76 "map_id",
77 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
78 "date_loaded",
79 { data_type => "date", is_nullable => 1 },
80 "current_version",
81 { data_type => "boolean", is_nullable => 1 },
82 "default_threshold",
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
84 "has_il",
85 { data_type => "boolean", is_nullable => 1 },
86 "has_physical",
87 { data_type => "boolean", is_nullable => 1 },
88 "metadata_id",
89 { data_type => "integer", is_nullable => 1 },
91 __PACKAGE__->set_primary_key("map_version_id");
93 =head1 RELATIONS
95 =head2 linkage_groups
97 Type: has_many
99 Related object: L<SGN::Schema::LinkageGroup>
101 =cut
103 __PACKAGE__->has_many(
104 "linkage_groups",
105 "SGN::Schema::LinkageGroup",
106 { "foreign.map_version_id" => "self.map_version_id" },
107 { cascade_copy => 0, cascade_delete => 0 },
110 =head2 map
112 Type: belongs_to
114 Related object: L<SGN::Schema::Map>
116 =cut
118 __PACKAGE__->belongs_to(
119 "map",
120 "SGN::Schema::Map",
121 { map_id => "map_id" },
123 is_deferrable => 1,
124 join_type => "LEFT",
125 on_delete => "CASCADE",
126 on_update => "CASCADE",
130 =head2 default_threshold
132 Type: belongs_to
134 Related object: L<SGN::Schema::DeprecatedMarkerConfidence>
136 =cut
138 __PACKAGE__->belongs_to(
139 "default_threshold",
140 "SGN::Schema::DeprecatedMarkerConfidence",
141 { confidence_id => "default_threshold" },
143 is_deferrable => 1,
144 join_type => "LEFT",
145 on_delete => "CASCADE",
146 on_update => "CASCADE",
150 =head2 marker_locations
152 Type: has_many
154 Related object: L<SGN::Schema::MarkerLocation>
156 =cut
158 __PACKAGE__->has_many(
159 "marker_locations",
160 "SGN::Schema::MarkerLocation",
161 { "foreign.map_version_id" => "self.map_version_id" },
162 { cascade_copy => 0, cascade_delete => 0 },
165 =head2 temp_map_correspondences
167 Type: has_many
169 Related object: L<SGN::Schema::TempMapCorrespondence>
171 =cut
173 __PACKAGE__->has_many(
174 "temp_map_correspondences",
175 "SGN::Schema::TempMapCorrespondence",
176 { "foreign.map_version_id" => "self.map_version_id" },
177 { cascade_copy => 0, cascade_delete => 0 },
181 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
182 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8cm9eQqw3sOvPHi6hveD2A
185 # You can replace this text with custom content, and it will be preserved on regeneration