Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / DeprecatedLinkageGroup.pm
blob24a17c6d64064a5a6e5a35151fbef58292f50305
1 package SGN::Schema::DeprecatedLinkageGroup;
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::DeprecatedLinkageGroup
16 =cut
18 __PACKAGE__->table("deprecated_linkage_groups");
20 =head1 ACCESSORS
22 =head2 lg_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'deprecated_linkage_groups_lg_id_seq'
29 =head2 map_id
31 data_type: 'bigint'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 lg_order
37 data_type: 'bigint'
38 is_nullable: 1
40 =head2 lg_name
42 data_type: 'varchar'
43 is_nullable: 1
44 size: 255
46 =cut
48 __PACKAGE__->add_columns(
49 "lg_id",
51 data_type => "bigint",
52 is_auto_increment => 1,
53 is_nullable => 0,
54 sequence => "deprecated_linkage_groups_lg_id_seq",
56 "map_id",
57 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
58 "lg_order",
59 { data_type => "bigint", is_nullable => 1 },
60 "lg_name",
61 { data_type => "varchar", is_nullable => 1, size => 255 },
63 __PACKAGE__->set_primary_key("lg_id");
65 =head1 RELATIONS
67 =head2 map
69 Type: belongs_to
71 Related object: L<SGN::Schema::DeprecatedMap>
73 =cut
75 __PACKAGE__->belongs_to(
76 "map",
77 "SGN::Schema::DeprecatedMap",
78 { map_id => "map_id" },
80 is_deferrable => 1,
81 join_type => "LEFT",
82 on_delete => "CASCADE",
83 on_update => "CASCADE",
87 =head2 deprecated_mapdatas
89 Type: has_many
91 Related object: L<SGN::Schema::DeprecatedMapdata>
93 =cut
95 __PACKAGE__->has_many(
96 "deprecated_mapdatas",
97 "SGN::Schema::DeprecatedMapdata",
98 { "foreign.lg_id" => "self.lg_id" },
99 { cascade_copy => 0, cascade_delete => 0 },
103 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
104 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9dFb1FK633Dd6TcghBivCA
107 # You can replace this text with custom content, and it will be preserved on regeneration