fix foreign key name in blast_db_blast_db_group table schema.
[cxgn-corelibs.git] / lib / SGN / Schema / CosiiOrtholog.pm
blob55e9c9671ef760b50ceb091546328a9fd2e5fd57
1 package SGN::Schema::CosiiOrtholog;
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::CosiiOrtholog
16 =cut
18 __PACKAGE__->table("cosii_ortholog");
20 =head1 ACCESSORS
22 =head2 cosii_unigene_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'cosii_ortholog_cosii_unigene_id_seq'
29 =head2 marker_id
31 data_type: 'bigint'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 unigene_id
37 data_type: 'integer'
38 is_nullable: 1
40 =head2 copies
42 data_type: 'varchar'
43 is_nullable: 1
44 size: 1
46 =head2 database_name
48 data_type: 'varchar'
49 is_nullable: 1
50 size: 11
52 =head2 sequence_name
54 data_type: 'varchar'
55 is_nullable: 1
56 size: 255
58 =head2 edited_sequence_id
60 data_type: 'bigint'
61 is_nullable: 1
63 =head2 peptide_sequence_id
65 data_type: 'bigint'
66 is_nullable: 1
68 =head2 introns
70 data_type: 'text'
71 is_nullable: 1
73 =cut
75 __PACKAGE__->add_columns(
76 "cosii_unigene_id",
78 data_type => "bigint",
79 is_auto_increment => 1,
80 is_nullable => 0,
81 sequence => "cosii_ortholog_cosii_unigene_id_seq",
83 "marker_id",
84 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
85 "unigene_id",
86 { data_type => "integer", is_nullable => 1 },
87 "copies",
88 { data_type => "varchar", is_nullable => 1, size => 1 },
89 "database_name",
90 { data_type => "varchar", is_nullable => 1, size => 11 },
91 "sequence_name",
92 { data_type => "varchar", is_nullable => 1, size => 255 },
93 "edited_sequence_id",
94 { data_type => "bigint", is_nullable => 1 },
95 "peptide_sequence_id",
96 { data_type => "bigint", is_nullable => 1 },
97 "introns",
98 { data_type => "text", is_nullable => 1 },
100 __PACKAGE__->set_primary_key("cosii_unigene_id");
102 =head1 RELATIONS
104 =head2 marker
106 Type: belongs_to
108 Related object: L<SGN::Schema::Marker>
110 =cut
112 __PACKAGE__->belongs_to(
113 "marker",
114 "SGN::Schema::Marker",
115 { marker_id => "marker_id" },
117 is_deferrable => 1,
118 join_type => "LEFT",
119 on_delete => "CASCADE",
120 on_update => "CASCADE",
125 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
126 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:5E/wH8hjHQqk3rLvGjTuCA
129 # You can replace this text with custom content, and it will be preserved on regeneration