Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / DeprecatedMapCross.pm
blob191de2c1f0aacf8cfc4a8b9a515aa8b81d5cbc58
1 package SGN::Schema::DeprecatedMapCross;
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::DeprecatedMapCross
16 =cut
18 __PACKAGE__->table("deprecated_map_cross");
20 =head1 ACCESSORS
22 =head2 map_cross_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'deprecated_map_cross_map_cross_id_seq'
29 =head2 map_id
31 data_type: 'bigint'
32 default_value: '0)::bigint'
33 is_foreign_key: 1
34 is_nullable: 0
36 =head2 organism_id
38 data_type: 'bigint'
39 default_value: '0)::bigint'
40 is_foreign_key: 1
41 is_nullable: 0
43 =cut
45 __PACKAGE__->add_columns(
46 "map_cross_id",
48 data_type => "integer",
49 is_auto_increment => 1,
50 is_nullable => 0,
51 sequence => "deprecated_map_cross_map_cross_id_seq",
53 "map_id",
55 data_type => "bigint",
56 default_value => "0)::bigint",
57 is_foreign_key => 1,
58 is_nullable => 0,
60 "organism_id",
62 data_type => "bigint",
63 default_value => "0)::bigint",
64 is_foreign_key => 1,
65 is_nullable => 0,
68 __PACKAGE__->set_primary_key("map_cross_id");
70 =head1 RELATIONS
72 =head2 organism
74 Type: belongs_to
76 Related object: L<SGN::Schema::Organism>
78 =cut
80 __PACKAGE__->belongs_to(
81 "organism",
82 "SGN::Schema::Organism",
83 { organism_id => "organism_id" },
84 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
87 =head2 map
89 Type: belongs_to
91 Related object: L<SGN::Schema::DeprecatedMap>
93 =cut
95 __PACKAGE__->belongs_to(
96 "map",
97 "SGN::Schema::DeprecatedMap",
98 { map_id => "map_id" },
99 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
103 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
104 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XLQADezENOFU9cyXWoYgsA
107 # You can replace this text with custom content, and it will be preserved on regeneration