Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / MarkerCollection.pm
blob9b145bd6e7367a74b391f1b92183a1dc0892ff58
1 package SGN::Schema::MarkerCollection;
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::MarkerCollection
16 =cut
18 __PACKAGE__->table("marker_collection");
20 =head1 ACCESSORS
22 =head2 mc_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'marker_collection_mc_id_seq'
29 =head2 mc_name
31 data_type: 'text'
32 is_nullable: 0
34 =head2 mc_description
36 data_type: 'text'
37 is_nullable: 1
39 =cut
41 __PACKAGE__->add_columns(
42 "mc_id",
44 data_type => "integer",
45 is_auto_increment => 1,
46 is_nullable => 0,
47 sequence => "marker_collection_mc_id_seq",
49 "mc_name",
50 { data_type => "text", is_nullable => 0 },
51 "mc_description",
52 { data_type => "text", is_nullable => 1 },
54 __PACKAGE__->set_primary_key("mc_id");
55 __PACKAGE__->add_unique_constraint("marker_collection_mc_name_key", ["mc_name"]);
57 =head1 RELATIONS
59 =head2 marker_collectibles
61 Type: has_many
63 Related object: L<SGN::Schema::MarkerCollectible>
65 =cut
67 __PACKAGE__->has_many(
68 "marker_collectibles",
69 "SGN::Schema::MarkerCollectible",
70 { "foreign.mc_id" => "self.mc_id" },
71 { cascade_copy => 0, cascade_delete => 0 },
75 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
76 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ZLN5hiKV+Bxhzzzdbeq75Q
79 # You can replace this text with custom content, and it will be preserved on regeneration