Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / MarkerDerivedFrom.pm
blobf4b379ad4323c268c7d339387846ef9fba58e6e6
1 package SGN::Schema::MarkerDerivedFrom;
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::MarkerDerivedFrom
16 =cut
18 __PACKAGE__->table("marker_derived_from");
20 =head1 ACCESSORS
22 =head2 marker_derived_dummy_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'marker_derived_from_marker_derived_dummy_id_seq'
29 =head2 marker_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 derived_from_source_id
37 data_type: 'integer'
38 is_foreign_key: 1
39 is_nullable: 1
41 =head2 id_in_source
43 data_type: 'integer'
44 is_nullable: 1
46 =cut
48 __PACKAGE__->add_columns(
49 "marker_derived_dummy_id",
51 data_type => "integer",
52 is_auto_increment => 1,
53 is_nullable => 0,
54 sequence => "marker_derived_from_marker_derived_dummy_id_seq",
56 "marker_id",
57 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
58 "derived_from_source_id",
59 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
60 "id_in_source",
61 { data_type => "integer", is_nullable => 1 },
63 __PACKAGE__->set_primary_key("marker_derived_dummy_id");
65 =head1 RELATIONS
67 =head2 derived_from_source
69 Type: belongs_to
71 Related object: L<SGN::Schema::DerivedFromSource>
73 =cut
75 __PACKAGE__->belongs_to(
76 "derived_from_source",
77 "SGN::Schema::DerivedFromSource",
78 { "derived_from_source_id" => "derived_from_source_id" },
80 is_deferrable => 1,
81 join_type => "LEFT",
82 on_delete => "CASCADE",
83 on_update => "CASCADE",
87 =head2 marker
89 Type: belongs_to
91 Related object: L<SGN::Schema::DeprecatedMarker>
93 =cut
95 __PACKAGE__->belongs_to(
96 "marker",
97 "SGN::Schema::DeprecatedMarker",
98 { marker_id => "marker_id" },
100 is_deferrable => 1,
101 join_type => "LEFT",
102 on_delete => "CASCADE",
103 on_update => "CASCADE",
108 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:V85eQuoqWZtVfXXxk2r19g
112 # You can replace this text with custom content, and it will be preserved on regeneration