1 package SGN
::Schema
::CommonName
;
6 use base
'DBIx::Class';
8 __PACKAGE__
->load_components("Core");
9 __PACKAGE__
->table("common_name");
10 __PACKAGE__
->add_columns(
13 data_type
=> "bigint",
14 default_value
=> "nextval('common_name_common_name_id_seq'::regclass)",
15 is_auto_increment
=> 1,
21 data_type
=> "character varying",
22 default_value
=> undef,
27 __PACKAGE__
->set_primary_key("common_name_id");
28 __PACKAGE__
->add_unique_constraint("common_name_unique", ["common_name"]);
29 __PACKAGE__
->has_many(
31 "SGN::Schema::Organism",
32 { "foreign.common_name_id" => "self.common_name_id" },
34 __PACKAGE__
->has_many(
36 "SGN::Schema::Organismprop",
37 { "foreign.common_name_id" => "self.common_name_id" },
41 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
42 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:tbYoxZDGDjT/Ofi+4PbgIA
45 # You can replace this text with custom content, and it will be preserved on regeneration