Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / SsrRepeat.pm
blobe7925d6b7b02736d734775a02afd958c5687e37a
1 package SGN::Schema::SsrRepeat;
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::SsrRepeat
16 =cut
18 __PACKAGE__->table("ssr_repeats");
20 =head1 ACCESSORS
22 =head2 repeat_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'ssr_repeats_repeat_id_seq'
29 =head2 ssr_id
31 data_type: 'bigint'
32 default_value: '0)::bigint'
33 is_foreign_key: 1
34 is_nullable: 0
36 =head2 repeat_motif
38 data_type: 'varchar'
39 default_value: (empty string)
40 is_nullable: 0
41 size: 32
43 =head2 reapeat_nr
45 data_type: 'bigint'
46 is_nullable: 1
48 =head2 marker_id
50 data_type: 'integer'
51 is_foreign_key: 1
52 is_nullable: 0
54 =cut
56 __PACKAGE__->add_columns(
57 "repeat_id",
59 data_type => "integer",
60 is_auto_increment => 1,
61 is_nullable => 0,
62 sequence => "ssr_repeats_repeat_id_seq",
64 "ssr_id",
66 data_type => "bigint",
67 default_value => "0)::bigint",
68 is_foreign_key => 1,
69 is_nullable => 0,
71 "repeat_motif",
72 { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 },
73 "reapeat_nr",
74 { data_type => "bigint", is_nullable => 1 },
75 "marker_id",
76 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
78 __PACKAGE__->set_primary_key("repeat_id");
80 =head1 RELATIONS
82 =head2 ssr
84 Type: belongs_to
86 Related object: L<SGN::Schema::Ssr>
88 =cut
90 __PACKAGE__->belongs_to(
91 "ssr",
92 "SGN::Schema::Ssr",
93 { ssr_id => "ssr_id" },
94 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
97 =head2 marker
99 Type: belongs_to
101 Related object: L<SGN::Schema::Marker>
103 =cut
105 __PACKAGE__->belongs_to(
106 "marker",
107 "SGN::Schema::Marker",
108 { marker_id => "marker_id" },
109 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
113 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
114 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eqJ7PQCJuJpBf57paZCwMA
117 # You can replace this text with custom content, and it will be preserved on regeneration