1 package SGN
::Schema
::Domain
;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base
'DBIx::Class::Core';
18 __PACKAGE__
->table("domain");
27 sequence: 'domain_domain_id_seq'
34 =head2 domain_accession
50 =head2 description_fulltext
68 __PACKAGE__
->add_columns(
71 data_type
=> "bigint",
72 is_auto_increment
=> 1,
74 sequence
=> "domain_domain_id_seq",
77 { data_type
=> "bigint", is_nullable
=> 1 },
79 { data_type
=> "varchar", is_nullable
=> 1, size
=> 20 },
81 { data_type
=> "text", is_nullable
=> 1 },
83 { data_type
=> "bigint", is_nullable
=> 1 },
84 "description_fulltext",
85 { data_type
=> "tsvector", is_nullable
=> 1 },
87 { data_type
=> "bigint", is_nullable
=> 1 },
89 { data_type
=> "bigint", is_foreign_key
=> 1, is_nullable
=> 1 },
91 __PACKAGE__
->set_primary_key("domain_id");
99 Related object: L<SGN::Schema::Metadata>
103 __PACKAGE__
->belongs_to(
105 "SGN::Schema::Metadata",
106 { metadata_id
=> "metadata_id" },
110 on_delete
=> "CASCADE",
111 on_update
=> "CASCADE",
115 =head2 domain_matches
119 Related object: L<SGN::Schema::DomainMatch>
123 __PACKAGE__
->has_many(
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