1 package SGN
::Schema
::Accession
;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base
'DBIx::Class::Core';
14 SGN::Schema::Accession
18 __PACKAGE__
->table("accession");
27 sequence: 'accession_accession_id_seq'
41 =head2 accession_name_id
47 =head2 chado_organism_id
59 __PACKAGE__
->add_columns(
62 data_type
=> "integer",
63 is_auto_increment
=> 1,
65 sequence
=> "accession_accession_id_seq",
68 { data_type
=> "bigint", is_foreign_key
=> 1, is_nullable
=> 1 },
70 { data_type
=> "varchar", is_nullable
=> 1, size
=> 80 },
72 { data_type
=> "bigint", is_foreign_key
=> 1, is_nullable
=> 1 },
74 { data_type
=> "integer", is_nullable
=> 1 },
76 { data_type
=> "integer", is_nullable
=> 1 },
78 __PACKAGE__
->set_primary_key("accession_id");
79 __PACKAGE__
->add_unique_constraint("unique_accession_name", ["accession_name_id"]);
87 Related object: L<SGN::Schema::Organism>
91 __PACKAGE__
->belongs_to(
93 "SGN::Schema::Organism",
94 { organism_id
=> "organism_id" },
98 on_delete
=> "CASCADE",
99 on_update
=> "CASCADE",
103 =head2 accession_name
107 Related object: L<SGN::Schema::AccessionName>
111 __PACKAGE__
->belongs_to(
113 "SGN::Schema::AccessionName",
114 { accession_name_id
=> "accession_name_id" },
118 on_delete
=> "CASCADE",
119 on_update
=> "CASCADE",
123 =head2 accession_names
127 Related object: L<SGN::Schema::AccessionName>
131 __PACKAGE__
->has_many(
133 "SGN::Schema::AccessionName",
134 { "foreign.accession_id" => "self.accession_id" },
135 { cascade_copy
=> 0, cascade_delete
=> 0 },
142 Related object: L<SGN::Schema::Map>
146 __PACKAGE__
->has_many(
149 { "foreign.ancestor" => "self.accession_id" },
150 { cascade_copy
=> 0, cascade_delete
=> 0 },
157 Related object: L<SGN::Schema::Map>
161 __PACKAGE__
->has_many(
164 { "foreign.parent_2" => "self.accession_id" },
165 { cascade_copy
=> 0, cascade_delete
=> 0 },
172 Related object: L<SGN::Schema::Map>
176 __PACKAGE__
->has_many(
179 { "foreign.parent_1" => "self.accession_id" },
180 { cascade_copy
=> 0, cascade_delete
=> 0 },
183 =head2 pcr_exp_accessions
187 Related object: L<SGN::Schema::PcrExpAccession>
191 __PACKAGE__
->has_many(
192 "pcr_exp_accessions",
193 "SGN::Schema::PcrExpAccession",
194 { "foreign.accession_id" => "self.accession_id" },
195 { cascade_copy
=> 0, cascade_delete
=> 0 },
199 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
200 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:838fnA2hrzzcn5PKEGLZRA
203 # You can replace this text with custom content, and it will be preserved on regeneration