1 package SGN
::Schema
::BlastAnnotation
;
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::BlastAnnotation
18 __PACKAGE__
->table("blast_annotations");
22 =head2 blast_annotation_id
27 sequence: 'blast_annotations_blast_annotation_id_seq'
40 =head2 blast_target_id
73 __PACKAGE__
->add_columns(
74 "blast_annotation_id",
76 data_type
=> "integer",
77 is_auto_increment
=> 1,
79 sequence
=> "blast_annotations_blast_annotation_id_seq",
82 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
84 { data_type
=> "integer", is_nullable
=> 1 },
86 { data_type
=> "integer", is_nullable
=> 1 },
88 { data_type
=> "integer", is_nullable
=> 1 },
90 { data_type
=> "integer", is_nullable
=> 1 },
92 { data_type
=> "integer", is_nullable
=> 1 },
94 { data_type
=> "varchar", is_nullable
=> 1, size
=> 20 },
96 { data_type
=> "integer", is_nullable
=> 1 },
98 __PACKAGE__
->set_primary_key("blast_annotation_id");
99 __PACKAGE__
->add_unique_constraint(
100 "blast_annotations_apply_id_blast_target_id_uq",
101 ["apply_id", "blast_target_id"],
110 Related object: L<SGN::Schema::Unigene>
114 __PACKAGE__
->belongs_to(
116 "SGN::Schema::Unigene",
117 { unigene_id
=> "apply_id" },
121 on_delete
=> "CASCADE",
122 on_update
=> "CASCADE",
130 Related object: L<SGN::Schema::BlastHit>
134 __PACKAGE__
->has_many(
136 "SGN::Schema::BlastHit",
137 { "foreign.blast_annotation_id" => "self.blast_annotation_id" },
138 { cascade_copy
=> 0, cascade_delete
=> 0 },
142 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
143 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:43aWHj56ncTWYbyZmIAs4Q
146 # You can replace this text with custom content, and it will be preserved on regeneration