Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / DomainMatch.pm
blobf9daa42a4a84e5176711b0c36e99174c8f00a0d1
1 package SGN::Schema::DomainMatch;
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::DomainMatch
16 =cut
18 __PACKAGE__->table("domain_match");
20 =head1 ACCESSORS
22 =head2 domain_match_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'domain_match_domain_match_id_seq'
29 =head2 cds_id
31 data_type: 'bigint'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 unigene_id
37 data_type: 'bigint'
38 is_nullable: 1
40 =head2 domain_id
42 data_type: 'bigint'
43 is_foreign_key: 1
44 is_nullable: 1
46 =head2 match_begin
48 data_type: 'integer'
49 is_nullable: 1
51 =head2 match_end
53 data_type: 'integer'
54 is_nullable: 1
56 =head2 e_value
58 data_type: 'varchar'
59 is_nullable: 1
60 size: 10
62 =head2 hit_status
64 data_type: 'char'
65 is_nullable: 1
66 size: 1
68 =head2 run_id
70 data_type: 'bigint'
71 is_nullable: 1
73 =head2 metadata_id
75 data_type: 'bigint'
76 is_foreign_key: 1
77 is_nullable: 1
79 =cut
81 __PACKAGE__->add_columns(
82 "domain_match_id",
84 data_type => "bigint",
85 is_auto_increment => 1,
86 is_nullable => 0,
87 sequence => "domain_match_domain_match_id_seq",
89 "cds_id",
90 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
91 "unigene_id",
92 { data_type => "bigint", is_nullable => 1 },
93 "domain_id",
94 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
95 "match_begin",
96 { data_type => "integer", is_nullable => 1 },
97 "match_end",
98 { data_type => "integer", is_nullable => 1 },
99 "e_value",
100 { data_type => "varchar", is_nullable => 1, size => 10 },
101 "hit_status",
102 { data_type => "char", is_nullable => 1, size => 1 },
103 "run_id",
104 { data_type => "bigint", is_nullable => 1 },
105 "metadata_id",
106 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
108 __PACKAGE__->set_primary_key("domain_match_id");
110 =head1 RELATIONS
112 =head2 metadata
114 Type: belongs_to
116 Related object: L<SGN::Schema::Metadata>
118 =cut
120 __PACKAGE__->belongs_to(
121 "metadata",
122 "SGN::Schema::Metadata",
123 { metadata_id => "metadata_id" },
125 is_deferrable => 1,
126 join_type => "LEFT",
127 on_delete => "CASCADE",
128 on_update => "CASCADE",
132 =head2 domain
134 Type: belongs_to
136 Related object: L<SGN::Schema::Domain>
138 =cut
140 __PACKAGE__->belongs_to(
141 "domain",
142 "SGN::Schema::Domain",
143 { domain_id => "domain_id" },
145 is_deferrable => 1,
146 join_type => "LEFT",
147 on_delete => "CASCADE",
148 on_update => "CASCADE",
152 =head2 cd
154 Type: belongs_to
156 Related object: L<SGN::Schema::Cd>
158 =cut
160 __PACKAGE__->belongs_to(
161 "cd",
162 "SGN::Schema::Cd",
163 { cds_id => "cds_id" },
165 is_deferrable => 1,
166 join_type => "LEFT",
167 on_delete => "CASCADE",
168 on_update => "CASCADE",
173 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
174 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0wucSV8vE26N2AjTvcBIzw
177 # You can replace this text with custom content, and it will be preserved on regeneration