fix foreign key name in blast_db_blast_db_group table schema.
[cxgn-corelibs.git] / lib / SGN / Schema / TempMarkerCorrespondence.pm
blobbc9297246cd3d080af4d8bef706bcddcf644b3c4
1 package SGN::Schema::TempMarkerCorrespondence;
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::TempMarkerCorrespondence
16 =cut
18 __PACKAGE__->table("temp_marker_correspondence");
20 =head1 ACCESSORS
22 =head2 tmc_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'temp_marker_correspondence_tmc_id_seq'
29 =head2 old_marker_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 new_marker_id
37 data_type: 'integer'
38 is_nullable: 1
40 =cut
42 __PACKAGE__->add_columns(
43 "tmc_id",
45 data_type => "integer",
46 is_auto_increment => 1,
47 is_nullable => 0,
48 sequence => "temp_marker_correspondence_tmc_id_seq",
50 "old_marker_id",
51 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
52 "new_marker_id",
53 { data_type => "integer", is_nullable => 1 },
55 __PACKAGE__->set_primary_key("tmc_id");
57 =head1 RELATIONS
59 =head2 old_marker
61 Type: belongs_to
63 Related object: L<SGN::Schema::DeprecatedMarker>
65 =cut
67 __PACKAGE__->belongs_to(
68 "old_marker",
69 "SGN::Schema::DeprecatedMarker",
70 { marker_id => "old_marker_id" },
72 is_deferrable => 1,
73 join_type => "LEFT",
74 on_delete => "CASCADE",
75 on_update => "CASCADE",
80 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
81 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jzcHg9xbTPXMZOuGDihMRw
84 # You can replace this text with custom content, and it will be preserved on regeneration