Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / TempMapCorrespondence.pm
blobe1763f080b21551dbbf610ce92123908c8e29ffc
1 package SGN::Schema::TempMapCorrespondence;
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::TempMapCorrespondence
16 =cut
18 __PACKAGE__->table("temp_map_correspondence");
20 =head1 ACCESSORS
22 =head2 tmc_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'temp_map_correspondence_tmc_id_seq'
29 =head2 old_map_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 map_version_id
37 data_type: 'integer'
38 is_foreign_key: 1
39 is_nullable: 1
41 =cut
43 __PACKAGE__->add_columns(
44 "tmc_id",
46 data_type => "integer",
47 is_auto_increment => 1,
48 is_nullable => 0,
49 sequence => "temp_map_correspondence_tmc_id_seq",
51 "old_map_id",
52 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
53 "map_version_id",
54 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
56 __PACKAGE__->set_primary_key("tmc_id");
58 =head1 RELATIONS
60 =head2 old_map
62 Type: belongs_to
64 Related object: L<SGN::Schema::DeprecatedMap>
66 =cut
68 __PACKAGE__->belongs_to(
69 "old_map",
70 "SGN::Schema::DeprecatedMap",
71 { map_id => "old_map_id" },
73 is_deferrable => 1,
74 join_type => "LEFT",
75 on_delete => "CASCADE",
76 on_update => "CASCADE",
80 =head2 map_version
82 Type: belongs_to
84 Related object: L<SGN::Schema::MapVersion>
86 =cut
88 __PACKAGE__->belongs_to(
89 "map_version",
90 "SGN::Schema::MapVersion",
91 { map_version_id => "map_version_id" },
93 is_deferrable => 1,
94 join_type => "LEFT",
95 on_delete => "CASCADE",
96 on_update => "CASCADE",
101 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
102 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mGOVLygbNyVF5q7Z0F/yfw
105 # You can replace this text with custom content, and it will be preserved on regeneration