Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Domain.pm
blob2a139d4e1304918b2a46fdbd9a4f6fcfd50a6eb0
1 package SGN::Schema::Domain;
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::Domain
16 =cut
18 __PACKAGE__->table("domain");
20 =head1 ACCESSORS
22 =head2 domain_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'domain_domain_id_seq'
29 =head2 method_id
31 data_type: 'bigint'
32 is_nullable: 1
34 =head2 domain_accession
36 data_type: 'varchar'
37 is_nullable: 1
38 size: 20
40 =head2 description
42 data_type: 'text'
43 is_nullable: 1
45 =head2 interpro_id
47 data_type: 'bigint'
48 is_nullable: 1
50 =head2 description_fulltext
52 data_type: 'tsvector'
53 is_nullable: 1
55 =head2 dbxref_id
57 data_type: 'bigint'
58 is_nullable: 1
60 =head2 metadata_id
62 data_type: 'bigint'
63 is_foreign_key: 1
64 is_nullable: 1
66 =cut
68 __PACKAGE__->add_columns(
69 "domain_id",
71 data_type => "bigint",
72 is_auto_increment => 1,
73 is_nullable => 0,
74 sequence => "domain_domain_id_seq",
76 "method_id",
77 { data_type => "bigint", is_nullable => 1 },
78 "domain_accession",
79 { data_type => "varchar", is_nullable => 1, size => 20 },
80 "description",
81 { data_type => "text", is_nullable => 1 },
82 "interpro_id",
83 { data_type => "bigint", is_nullable => 1 },
84 "description_fulltext",
85 { data_type => "tsvector", is_nullable => 1 },
86 "dbxref_id",
87 { data_type => "bigint", is_nullable => 1 },
88 "metadata_id",
89 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
91 __PACKAGE__->set_primary_key("domain_id");
93 =head1 RELATIONS
95 =head2 metadata
97 Type: belongs_to
99 Related object: L<SGN::Schema::Metadata>
101 =cut
103 __PACKAGE__->belongs_to(
104 "metadata",
105 "SGN::Schema::Metadata",
106 { metadata_id => "metadata_id" },
108 is_deferrable => 1,
109 join_type => "LEFT",
110 on_delete => "CASCADE",
111 on_update => "CASCADE",
115 =head2 domain_matches
117 Type: has_many
119 Related object: L<SGN::Schema::DomainMatch>
121 =cut
123 __PACKAGE__->has_many(
124 "domain_matches",
125 "SGN::Schema::DomainMatch",
126 { "foreign.domain_id" => "self.domain_id" },
127 { cascade_copy => 0, cascade_delete => 0 },
131 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
132 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+6BgaigBWwHVaAw929m+tQ
135 # You can replace this text with custom content, and it will be preserved on regeneration