Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / DeprecatedMapdata.pm
blobcbc9ab7088479607eefc9d0d1664b6edc46538ce
1 package SGN::Schema::DeprecatedMapdata;
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::DeprecatedMapdata
16 =cut
18 __PACKAGE__->table("deprecated_mapdata");
20 =head1 ACCESSORS
22 =head2 loc_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'deprecated_mapdata_loc_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 lg_id
38 data_type: 'bigint'
39 is_foreign_key: 1
40 is_nullable: 1
42 =head2 offset
44 data_type: 'numeric'
45 is_nullable: 1
46 size: [8,5]
48 =head2 loc_type
50 data_type: 'bigint'
51 default_value: '0)::bigint'
52 is_nullable: 0
54 =head2 loc_order
56 data_type: 'bigint'
57 default_value: '0)::bigint'
58 is_nullable: 0
60 =cut
62 __PACKAGE__->add_columns(
63 "loc_id",
65 data_type => "integer",
66 is_auto_increment => 1,
67 is_nullable => 0,
68 sequence => "deprecated_mapdata_loc_id_seq",
70 "map_id",
72 data_type => "bigint",
73 default_value => "0)::bigint",
74 is_foreign_key => 1,
75 is_nullable => 0,
77 "lg_id",
78 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
79 "offset",
80 { data_type => "numeric", is_nullable => 1, size => [8, 5] },
81 "loc_type",
82 { data_type => "bigint", default_value => "0)::bigint", is_nullable => 0 },
83 "loc_order",
84 { data_type => "bigint", default_value => "0)::bigint", is_nullable => 0 },
86 __PACKAGE__->set_primary_key("loc_id");
88 =head1 RELATIONS
90 =head2 map
92 Type: belongs_to
94 Related object: L<SGN::Schema::DeprecatedMap>
96 =cut
98 __PACKAGE__->belongs_to(
99 "map",
100 "SGN::Schema::DeprecatedMap",
101 { map_id => "map_id" },
102 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
105 =head2 lg
107 Type: belongs_to
109 Related object: L<SGN::Schema::DeprecatedLinkageGroup>
111 =cut
113 __PACKAGE__->belongs_to(
114 "lg",
115 "SGN::Schema::DeprecatedLinkageGroup",
116 { lg_id => "lg_id" },
118 is_deferrable => 1,
119 join_type => "LEFT",
120 on_delete => "CASCADE",
121 on_update => "CASCADE",
125 =head2 deprecated_marker_locations
127 Type: has_many
129 Related object: L<SGN::Schema::DeprecatedMarkerLocation>
131 =cut
133 __PACKAGE__->has_many(
134 "deprecated_marker_locations",
135 "SGN::Schema::DeprecatedMarkerLocation",
136 { "foreign.loc_id" => "self.loc_id" },
137 { cascade_copy => 0, cascade_delete => 0 },
141 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
142 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:orOD30Vq4ddEG6GH3KNMSw
145 # You can replace this text with custom content, and it will be preserved on regeneration