Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Cd.pm
blob4e2d5866e8ce077391b745e6bcce91b165207b5c
1 package SGN::Schema::Cd;
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::Cd
16 =cut
18 __PACKAGE__->table("cds");
20 =head1 ACCESSORS
22 =head2 cds_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'cds_cds_id_seq'
29 =head2 unigene_id
31 data_type: 'bigint'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 seq_text
37 data_type: 'text'
38 is_nullable: 1
40 =head2 seq_edits
42 data_type: 'text'
43 is_nullable: 1
45 =head2 protein_seq
47 data_type: 'text'
48 is_nullable: 1
50 =head2 begin
52 data_type: 'integer'
53 is_nullable: 1
55 =head2 end
57 data_type: 'integer'
58 is_nullable: 1
60 =head2 forward_reverse
62 data_type: 'char'
63 is_nullable: 1
64 size: 1
66 =head2 run_id
68 data_type: 'bigint'
69 is_nullable: 1
71 =head2 score
73 data_type: 'integer'
74 is_nullable: 1
76 =head2 method
78 data_type: 'varchar'
79 is_nullable: 1
80 size: 20
82 =head2 frame
84 data_type: 'varchar'
85 is_nullable: 1
86 size: 2
88 =head2 preferred
90 data_type: 'boolean'
91 is_nullable: 1
93 =head2 cds_seq
95 data_type: 'text'
96 is_nullable: 1
98 =head2 protein_feature_id
100 data_type: 'bigint'
101 is_nullable: 1
103 =cut
105 __PACKAGE__->add_columns(
106 "cds_id",
108 data_type => "bigint",
109 is_auto_increment => 1,
110 is_nullable => 0,
111 sequence => "cds_cds_id_seq",
113 "unigene_id",
114 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
115 "seq_text",
116 { data_type => "text", is_nullable => 1 },
117 "seq_edits",
118 { data_type => "text", is_nullable => 1 },
119 "protein_seq",
120 { data_type => "text", is_nullable => 1 },
121 "begin",
122 { data_type => "integer", is_nullable => 1 },
123 "end",
124 { data_type => "integer", is_nullable => 1 },
125 "forward_reverse",
126 { data_type => "char", is_nullable => 1, size => 1 },
127 "run_id",
128 { data_type => "bigint", is_nullable => 1 },
129 "score",
130 { data_type => "integer", is_nullable => 1 },
131 "method",
132 { data_type => "varchar", is_nullable => 1, size => 20 },
133 "frame",
134 { data_type => "varchar", is_nullable => 1, size => 2 },
135 "preferred",
136 { data_type => "boolean", is_nullable => 1 },
137 "cds_seq",
138 { data_type => "text", is_nullable => 1 },
139 "protein_feature_id",
140 { data_type => "bigint", is_nullable => 1 },
142 __PACKAGE__->set_primary_key("cds_id");
144 =head1 RELATIONS
146 =head2 unigene
148 Type: belongs_to
150 Related object: L<SGN::Schema::Unigene>
152 =cut
154 __PACKAGE__->belongs_to(
155 "unigene",
156 "SGN::Schema::Unigene",
157 { unigene_id => "unigene_id" },
159 is_deferrable => 1,
160 join_type => "LEFT",
161 on_delete => "CASCADE",
162 on_update => "CASCADE",
166 =head2 domain_matches
168 Type: has_many
170 Related object: L<SGN::Schema::DomainMatch>
172 =cut
174 __PACKAGE__->has_many(
175 "domain_matches",
176 "SGN::Schema::DomainMatch",
177 { "foreign.cds_id" => "self.cds_id" },
178 { cascade_copy => 0, cascade_delete => 0 },
182 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
183 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U8lI8JoWcDtZrDhqgQ/yLg
186 # You can replace this text with custom content, and it will be preserved on regeneration