Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Go.pm
blob78fdba26bbdcd64f883a464bebd4f36b1aae42df
1 package SGN::Schema::Go;
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::Go
16 =cut
18 __PACKAGE__->table("go");
20 =head1 ACCESSORS
22 =head2 go_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'go_go_id_seq'
29 =head2 go_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 "go_id",
50 data_type => "bigint",
51 is_auto_increment => 1,
52 is_nullable => 0,
53 sequence => "go_go_id_seq",
55 "go_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("go_id");
63 __PACKAGE__->add_unique_constraint("go_go_accession_key", ["go_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.go_accession" => "self.go_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:XuyLAWBLxoap9z3FlcVShQ
87 # You can replace this text with custom content, and it will be preserved on regeneration