Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Enzyme.pm
bloba7658061249af5e62f1b1065702dd4f525639f82
1 package SGN::Schema::Enzyme;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6 use strict;
7 use warnings;
9 use base 'DBIx::Class::Core';
12 =head1 NAME
14 SGN::Schema::Enzyme
16 =cut
18 __PACKAGE__->table("enzymes");
20 =head1 ACCESSORS
22 =head2 enzyme_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'enzymes_enzyme_id_seq'
29 =head2 enzyme_name
31 data_type: 'varchar'
32 is_nullable: 1
33 size: 32
35 =cut
37 __PACKAGE__->add_columns(
38 "enzyme_id",
40 data_type => "integer",
41 is_auto_increment => 1,
42 is_nullable => 0,
43 sequence => "enzymes_enzyme_id_seq",
45 "enzyme_name",
46 { data_type => "varchar", is_nullable => 1, size => 32 },
48 __PACKAGE__->set_primary_key("enzyme_id");
49 __PACKAGE__->add_unique_constraint("enzymes_enzyme_name_key", ["enzyme_name"]);
51 =head1 RELATIONS
53 =head2 pcr_products
55 Type: has_many
57 Related object: L<SGN::Schema::PcrProduct>
59 =cut
61 __PACKAGE__->has_many(
62 "pcr_products",
63 "SGN::Schema::PcrProduct",
64 { "foreign.enzyme_id" => "self.enzyme_id" },
65 { cascade_copy => 0, cascade_delete => 0 },
69 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
70 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7LZeXCaVkuG7Yq8TRquAHw
73 # You can replace this text with custom content, and it will be preserved on regeneration