Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / InterproGo.pm
bloba5f4f077b907ae2341866ff25791d4a78d3dde7a
1 package SGN::Schema::InterproGo;
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::InterproGo
16 =cut
18 __PACKAGE__->table("interpro_go");
20 =head1 ACCESSORS
22 =head2 interpro_go_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'interpro_go_interpro_go_id_seq'
29 =head2 interpro_accession
31 data_type: 'varchar'
32 is_foreign_key: 1
33 is_nullable: 1
34 size: 20
36 =head2 go_accession
38 data_type: 'varchar'
39 is_foreign_key: 1
40 is_nullable: 1
41 size: 20
43 =cut
45 __PACKAGE__->add_columns(
46 "interpro_go_id",
48 data_type => "bigint",
49 is_auto_increment => 1,
50 is_nullable => 0,
51 sequence => "interpro_go_interpro_go_id_seq",
53 "interpro_accession",
54 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 20 },
55 "go_accession",
56 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 20 },
58 __PACKAGE__->set_primary_key("interpro_go_id");
60 =head1 RELATIONS
62 =head2 go_accession
64 Type: belongs_to
66 Related object: L<SGN::Schema::Go>
68 =cut
70 __PACKAGE__->belongs_to(
71 "go_accession",
72 "SGN::Schema::Go",
73 { go_accession => "go_accession" },
75 is_deferrable => 1,
76 join_type => "LEFT",
77 on_delete => "CASCADE",
78 on_update => "CASCADE",
82 =head2 interpro_accession
84 Type: belongs_to
86 Related object: L<SGN::Schema::Interpro>
88 =cut
90 __PACKAGE__->belongs_to(
91 "interpro_accession",
92 "SGN::Schema::Interpro",
93 { interpro_accession => "interpro_accession" },
95 is_deferrable => 1,
96 join_type => "LEFT",
97 on_delete => "CASCADE",
98 on_update => "CASCADE",
103 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
104 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xsDCm4apdwyu7QR/kIlmJg
107 # You can replace this text with custom content, and it will be preserved on regeneration