Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / PcrExpAccession.pm
blobb571b14c63ba83e4ec8c537bfc33e3269d04293c
1 package SGN::Schema::PcrExpAccession;
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::PcrExpAccession
16 =cut
18 __PACKAGE__->table("pcr_exp_accession");
20 =head1 ACCESSORS
22 =head2 pcr_exp_accession_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'pcr_exp_accession_pcr_exp_accession_id_seq'
29 =head2 pcr_experiment_id
31 data_type: 'bigint'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 accession_id
37 data_type: 'bigint'
38 is_foreign_key: 1
39 is_nullable: 1
41 =head2 stock_id
43 data_type: 'bigint'
44 is_nullable: 1
46 =cut
48 __PACKAGE__->add_columns(
49 "pcr_exp_accession_id",
51 data_type => "bigint",
52 is_auto_increment => 1,
53 is_nullable => 0,
54 sequence => "pcr_exp_accession_pcr_exp_accession_id_seq",
56 "pcr_experiment_id",
57 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
58 "accession_id",
59 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
60 "stock_id",
61 { data_type => "bigint", is_nullable => 1 },
63 __PACKAGE__->set_primary_key("pcr_exp_accession_id");
65 =head1 RELATIONS
67 =head2 accession
69 Type: belongs_to
71 Related object: L<SGN::Schema::Accession>
73 =cut
75 __PACKAGE__->belongs_to(
76 "accession",
77 "SGN::Schema::Accession",
78 { accession_id => "accession_id" },
80 is_deferrable => 1,
81 join_type => "LEFT",
82 on_delete => "CASCADE",
83 on_update => "CASCADE",
87 =head2 pcr_experiment
89 Type: belongs_to
91 Related object: L<SGN::Schema::PcrExperiment>
93 =cut
95 __PACKAGE__->belongs_to(
96 "pcr_experiment",
97 "SGN::Schema::PcrExperiment",
98 { pcr_experiment_id => "pcr_experiment_id" },
100 is_deferrable => 1,
101 join_type => "LEFT",
102 on_delete => "CASCADE",
103 on_update => "CASCADE",
107 =head2 pcr_products
109 Type: has_many
111 Related object: L<SGN::Schema::PcrProduct>
113 =cut
115 __PACKAGE__->has_many(
116 "pcr_products",
117 "SGN::Schema::PcrProduct",
118 { "foreign.pcr_exp_accession_id" => "self.pcr_exp_accession_id" },
119 { cascade_copy => 0, cascade_delete => 0 },
123 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
124 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Y3RZikf9JL4YQNNoTtAMuw
127 # You can replace this text with custom content, and it will be preserved on regeneration