1 package SGN
::Schema
::Clone
;
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("clone");
27 sequence: 'clone_clone_id_seq'
48 __PACKAGE__
->add_columns(
51 data_type
=> "integer",
52 is_auto_increment
=> 1,
54 sequence
=> "clone_clone_id_seq",
57 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
59 { data_type
=> "varchar", is_nullable
=> 1, size
=> 50 },
61 { data_type
=> "integer", is_nullable
=> 1 },
63 __PACKAGE__
->set_primary_key("clone_id");
64 __PACKAGE__
->add_unique_constraint("clone_name_library_id_unique", ["clone_name", "library_id"]);
65 __PACKAGE__
->add_unique_constraint("library_id_clone_name_key", ["library_id", "clone_name"]);
73 Related object: L<SGN::Schema::Library>
77 __PACKAGE__
->belongs_to(
79 "SGN::Schema::Library",
80 { library_id
=> "library_id" },
84 on_delete
=> "CASCADE",
85 on_update
=> "CASCADE",
93 Related object: L<SGN::Schema::Seqread>
97 __PACKAGE__
->has_many(
99 "SGN::Schema::Seqread",
100 { "foreign.clone_id" => "self.clone_id" },
101 { cascade_copy
=> 0, cascade_delete
=> 0 },
105 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
106 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:qHcI1QlJSTctgHcs6FedCg
109 # You can replace this text with custom content, and it will be preserved on regeneration