fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / Sequence.pm
blobd0d4e25faec0c7fbcd8220a97846fc461e1fc515
1 package SGN::Schema::Sequence;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("sequence");
10 __PACKAGE__->add_columns(
11 "sequence_id",
13 data_type => "bigint",
14 default_value => "nextval('sequence_sequence_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 8,
19 "sequence",
21 data_type => "text",
22 default_value => undef,
23 is_nullable => 1,
24 size => undef,
27 __PACKAGE__->set_primary_key("sequence_id");
28 __PACKAGE__->add_unique_constraint("sequence_unique", ["sequence"]);
29 __PACKAGE__->has_many(
30 "pcr_experiment_primer_id_fwds",
31 "SGN::Schema::PcrExperiment",
32 { "foreign.primer_id_fwd" => "self.sequence_id" },
34 __PACKAGE__->has_many(
35 "pcr_experiment_primer_id_revs",
36 "SGN::Schema::PcrExperiment",
37 { "foreign.primer_id_rev" => "self.sequence_id" },
41 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
42 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eVs1qu+FGIECyCsPsjlZBg
45 # You can replace this text with custom content, and it will be preserved on regeneration