Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Sequence.pm
blob7b62fde5aa61b3341258fba7b6f2cdf5cb3af772
1 package SGN::Schema::Sequence;
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::Sequence
16 =cut
18 __PACKAGE__->table("sequence");
20 =head1 ACCESSORS
22 =head2 sequence_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'sequence_sequence_id_seq'
29 =head2 sequence
31 accessor: undef
32 data_type: 'text'
33 is_nullable: 1
35 =cut
37 __PACKAGE__->add_columns(
38 "sequence_id",
40 data_type => "bigint",
41 is_auto_increment => 1,
42 is_nullable => 0,
43 sequence => "sequence_sequence_id_seq",
45 "sequence",
46 { accessor => undef, data_type => "text", is_nullable => 1 },
48 __PACKAGE__->set_primary_key("sequence_id");
49 __PACKAGE__->add_unique_constraint("sequence_unique", ["sequence"]);
51 =head1 RELATIONS
53 =head2 pcr_experiment_primer_id_fwds
55 Type: has_many
57 Related object: L<SGN::Schema::PcrExperiment>
59 =cut
61 __PACKAGE__->has_many(
62 "pcr_experiment_primer_id_fwds",
63 "SGN::Schema::PcrExperiment",
64 { "foreign.primer_id_fwd" => "self.sequence_id" },
65 { cascade_copy => 0, cascade_delete => 0 },
68 =head2 pcr_experiment_primer_id_revs
70 Type: has_many
72 Related object: L<SGN::Schema::PcrExperiment>
74 =cut
76 __PACKAGE__->has_many(
77 "pcr_experiment_primer_id_revs",
78 "SGN::Schema::PcrExperiment",
79 { "foreign.primer_id_rev" => "self.sequence_id" },
80 { cascade_copy => 0, cascade_delete => 0 },
83 =head2 pcr_experiment_sequences
85 Type: has_many
87 Related object: L<SGN::Schema::PcrExperimentSequence>
89 =cut
91 __PACKAGE__->has_many(
92 "pcr_experiment_sequences",
93 "SGN::Schema::PcrExperimentSequence",
94 { "foreign.sequence_id" => "self.sequence_id" },
95 { cascade_copy => 0, cascade_delete => 0 },
98 =head2 snp_sequence_rights
100 Type: has_many
102 Related object: L<SGN::Schema::Snp>
104 =cut
106 __PACKAGE__->has_many(
107 "snp_sequence_rights",
108 "SGN::Schema::Snp",
109 { "foreign.sequence_right_id" => "self.sequence_id" },
110 { cascade_copy => 0, cascade_delete => 0 },
113 =head2 snp_sequences_left
115 Type: has_many
117 Related object: L<SGN::Schema::Snp>
119 =cut
121 __PACKAGE__->has_many(
122 "snp_sequences_left",
123 "SGN::Schema::Snp",
124 { "foreign.sequence_left_id" => "self.sequence_id" },
125 { cascade_copy => 0, cascade_delete => 0 },
129 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
130 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Hckpd8VYR2jFEKhM0XoAqQ
133 # You can replace this text with custom content, and it will be preserved on regeneration