1 package SGN
::Schema
::CommonName
;
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::CommonName
18 __PACKAGE__
->table("common_name");
27 sequence: 'common_name_common_name_id_seq'
37 __PACKAGE__
->add_columns(
40 data_type
=> "bigint",
41 is_auto_increment
=> 1,
43 sequence
=> "common_name_common_name_id_seq",
46 { data_type
=> "varchar", is_nullable
=> 0, size
=> 255 },
48 __PACKAGE__
->set_primary_key("common_name_id");
49 __PACKAGE__
->add_unique_constraint("common_name_unique", ["common_name"]);
53 =head2 common_nameprops
57 Related object: L<SGN::Schema::CommonNameprop>
61 __PACKAGE__
->has_many(
63 "SGN::Schema::CommonNameprop",
64 { "foreign.common_name_id" => "self.common_name_id" },
65 { cascade_copy
=> 0, cascade_delete
=> 0 },
72 Related object: L<SGN::Schema::Organism>
76 __PACKAGE__
->has_many(
78 "SGN::Schema::Organism",
79 { "foreign.common_name_id" => "self.common_name_id" },
80 { cascade_copy
=> 0, cascade_delete
=> 0 },
84 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
85 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OZwtKEhvlAoHbT+X5USNAA
88 # You can replace this text with custom content, and it will be preserved on regeneration