Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Interpro.pm
blobaf5ac25956a60c366a34c6469c53e64586fba2b7
1 package SGN::Schema::Interpro;
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::Interpro
16 =cut
18 __PACKAGE__->table("interpro");
20 =head1 ACCESSORS
22 =head2 interpro_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'interpro_interpro_id_seq'
29 =head2 interpro_accession
31 data_type: 'varchar'
32 is_nullable: 1
33 size: 20
35 =head2 description
37 data_type: 'text'
38 is_nullable: 1
40 =head2 description_fulltext
42 data_type: 'tsvector'
43 is_nullable: 1
45 =cut
47 __PACKAGE__->add_columns(
48 "interpro_id",
50 data_type => "bigint",
51 is_auto_increment => 1,
52 is_nullable => 0,
53 sequence => "interpro_interpro_id_seq",
55 "interpro_accession",
56 { data_type => "varchar", is_nullable => 1, size => 20 },
57 "description",
58 { data_type => "text", is_nullable => 1 },
59 "description_fulltext",
60 { data_type => "tsvector", is_nullable => 1 },
62 __PACKAGE__->set_primary_key("interpro_id");
63 __PACKAGE__->add_unique_constraint("interpro_interpro_accession_key", ["interpro_accession"]);
65 =head1 RELATIONS
67 =head2 interpros_go
69 Type: has_many
71 Related object: L<SGN::Schema::InterproGo>
73 =cut
75 __PACKAGE__->has_many(
76 "interpros_go",
77 "SGN::Schema::InterproGo",
78 { "foreign.interpro_accession" => "self.interpro_accession" },
79 { cascade_copy => 0, cascade_delete => 0 },
83 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
84 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:goZBzUs2dp7PRwn/DDOY0A
87 # You can replace this text with custom content, and it will be preserved on regeneration