1 package SGN
::Schema
::UnigeneBuild
;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base
'DBIx::Class::Core';
14 SGN::Schema::UnigeneBuild
18 __PACKAGE__
->table("unigene_build");
22 =head2 unigene_build_id
27 sequence: 'unigene_build_unigene_build_id_seq'
29 =head2 source_data_group_id
34 =head2 organism_group_id
49 default_value: current_timestamp
51 original: {default_value => \"now()"}
69 =head2 superseding_build_id
81 =head2 latest_build_id
95 __PACKAGE__
->add_columns(
98 data_type
=> "integer",
99 is_auto_increment
=> 1,
101 sequence
=> "unigene_build_unigene_build_id_seq",
103 "source_data_group_id",
104 { data_type
=> "integer", is_nullable
=> 1 },
106 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
108 { data_type
=> "integer", default_value
=> 0, is_nullable
=> 0 },
112 default_value
=> \"current_timestamp
",
114 original => { default_value => \"now()" },
117 { data_type
=> "integer", is_nullable
=> 1 },
119 { data_type
=> "char", is_nullable
=> 1, size
=> 1 },
121 { data_type
=> "text", is_nullable
=> 1 },
122 "superseding_build_id",
123 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
125 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
127 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
129 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
131 __PACKAGE__
->set_primary_key("unigene_build_id");
139 Related object: L<SGN::Schema::Unigene>
143 __PACKAGE__
->has_many(
145 "SGN::Schema::Unigene",
146 { "foreign.unigene_build_id" => "self.unigene_build_id" },
147 { cascade_copy
=> 0, cascade_delete
=> 0 },
150 =head2 superseding_build
154 Related object: L<SGN::Schema::UnigeneBuild>
158 __PACKAGE__
->belongs_to(
160 "SGN::Schema::UnigeneBuild",
161 { unigene_build_id
=> "superseding_build_id" },
165 on_delete
=> "CASCADE",
166 on_update
=> "CASCADE",
170 =head2 unigene_build_superseding_builds
174 Related object: L<SGN::Schema::UnigeneBuild>
178 __PACKAGE__
->has_many(
179 "unigene_build_superseding_builds",
180 "SGN::Schema::UnigeneBuild",
181 { "foreign.superseding_build_id" => "self.unigene_build_id" },
182 { cascade_copy
=> 0, cascade_delete
=> 0 },
185 =head2 organism_group
189 Related object: L<SGN::Schema::Group>
193 __PACKAGE__
->belongs_to(
195 "SGN::Schema::Group",
196 { group_id
=> "organism_group_id" },
200 on_delete
=> "CASCADE",
201 on_update
=> "CASCADE",
209 Related object: L<SGN::Schema::UnigeneBuild>
213 __PACKAGE__
->belongs_to(
215 "SGN::Schema::UnigeneBuild",
216 { unigene_build_id
=> "next_build_id" },
220 on_delete
=> "CASCADE",
221 on_update
=> "CASCADE",
225 =head2 unigene_build_next_builds
229 Related object: L<SGN::Schema::UnigeneBuild>
233 __PACKAGE__
->has_many(
234 "unigene_build_next_builds",
235 "SGN::Schema::UnigeneBuild",
236 { "foreign.next_build_id" => "self.unigene_build_id" },
237 { cascade_copy
=> 0, cascade_delete
=> 0 },
244 Related object: L<SGN::Schema::UnigeneBuild>
248 __PACKAGE__
->belongs_to(
250 "SGN::Schema::UnigeneBuild",
251 { unigene_build_id
=> "latest_build_id" },
255 on_delete
=> "CASCADE",
256 on_update
=> "CASCADE",
260 =head2 unigene_build_latest_builds
264 Related object: L<SGN::Schema::UnigeneBuild>
268 __PACKAGE__
->has_many(
269 "unigene_build_latest_builds",
270 "SGN::Schema::UnigeneBuild",
271 { "foreign.latest_build_id" => "self.unigene_build_id" },
272 { cascade_copy
=> 0, cascade_delete
=> 0 },
279 Related object: L<SGN::Schema::BlastDb>
283 __PACKAGE__
->belongs_to(
285 "SGN::Schema::BlastDb",
286 { blast_db_id
=> "blast_db_id" },
290 on_delete
=> "CASCADE",
291 on_update
=> "CASCADE",
296 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
297 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EsKIExQ2mGfjNs4pxg8qfw
300 # You can replace this text with custom content, and it will be preserved on regeneration