Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / PcrProduct.pm
blob235c9b7d32d522aaf3ff2350ed516667df11b44b
1 package SGN::Schema::PcrProduct;
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::PcrProduct
16 =cut
18 __PACKAGE__->table("pcr_product");
20 =head1 ACCESSORS
22 =head2 pcr_product_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'pcr_product_pcr_product_id_seq'
29 =head2 pcr_exp_accession_id
31 data_type: 'bigint'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 enzyme_id
37 data_type: 'bigint'
38 is_foreign_key: 1
39 is_nullable: 1
41 =head2 multiple_flag
43 data_type: 'bigint'
44 is_nullable: 1
46 =head2 band_size
48 data_type: 'bigint'
49 is_nullable: 1
51 =head2 predicted
53 data_type: 'boolean'
54 default_value: false
55 is_nullable: 1
57 =cut
59 __PACKAGE__->add_columns(
60 "pcr_product_id",
62 data_type => "bigint",
63 is_auto_increment => 1,
64 is_nullable => 0,
65 sequence => "pcr_product_pcr_product_id_seq",
67 "pcr_exp_accession_id",
68 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
69 "enzyme_id",
70 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
71 "multiple_flag",
72 { data_type => "bigint", is_nullable => 1 },
73 "band_size",
74 { data_type => "bigint", is_nullable => 1 },
75 "predicted",
76 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
78 __PACKAGE__->set_primary_key("pcr_product_id");
79 __PACKAGE__->add_unique_constraint(
80 "unique_acc_enz_mult_pred_size",
82 "pcr_exp_accession_id",
83 "enzyme_id",
84 "multiple_flag",
85 "band_size",
86 "predicted",
90 =head1 RELATIONS
92 =head2 enzyme
94 Type: belongs_to
96 Related object: L<SGN::Schema::Enzyme>
98 =cut
100 __PACKAGE__->belongs_to(
101 "enzyme",
102 "SGN::Schema::Enzyme",
103 { enzyme_id => "enzyme_id" },
105 is_deferrable => 1,
106 join_type => "LEFT",
107 on_delete => "CASCADE",
108 on_update => "CASCADE",
112 =head2 pcr_exp_accession
114 Type: belongs_to
116 Related object: L<SGN::Schema::PcrExpAccession>
118 =cut
120 __PACKAGE__->belongs_to(
121 "pcr_exp_accession",
122 "SGN::Schema::PcrExpAccession",
123 { pcr_exp_accession_id => "pcr_exp_accession_id" },
125 is_deferrable => 1,
126 join_type => "LEFT",
127 on_delete => "CASCADE",
128 on_update => "CASCADE",
133 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
134 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0+jPJ6tov5a43+Pnryom0Q
137 # You can replace this text with custom content, and it will be preserved on regeneration