Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / MarkerCollectible.pm
blob99f454d8f84e442f85348357577a5e4f1e147fc6
1 package SGN::Schema::MarkerCollectible;
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::MarkerCollectible
16 =cut
18 __PACKAGE__->table("marker_collectible");
20 =head1 ACCESSORS
22 =head2 marker_collectible_dummy_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'marker_collectible_marker_collectible_dummy_id_seq'
29 =head2 marker_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 0
35 =head2 mc_id
37 data_type: 'integer'
38 is_foreign_key: 1
39 is_nullable: 0
41 =cut
43 __PACKAGE__->add_columns(
44 "marker_collectible_dummy_id",
46 data_type => "integer",
47 is_auto_increment => 1,
48 is_nullable => 0,
49 sequence => "marker_collectible_marker_collectible_dummy_id_seq",
51 "marker_id",
52 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
53 "mc_id",
54 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
56 __PACKAGE__->set_primary_key("marker_collectible_dummy_id");
57 __PACKAGE__->add_unique_constraint("marker_collectible_marker_id_key", ["marker_id", "mc_id"]);
59 =head1 RELATIONS
61 =head2 mc
63 Type: belongs_to
65 Related object: L<SGN::Schema::MarkerCollection>
67 =cut
69 __PACKAGE__->belongs_to(
70 "mc",
71 "SGN::Schema::MarkerCollection",
72 { mc_id => "mc_id" },
73 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
76 =head2 marker
78 Type: belongs_to
80 Related object: L<SGN::Schema::Marker>
82 =cut
84 __PACKAGE__->belongs_to(
85 "marker",
86 "SGN::Schema::Marker",
87 { marker_id => "marker_id" },
88 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
92 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Jx+9+xVR4fa6jp7x3Q6hZg
96 # You can replace this text with custom content, and it will be preserved on regeneration