fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / RflpMarker.pm
blob597101d5419c02933ec073121b57e941360c1416
1 package SGN::Schema::RflpMarker;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("rflp_markers");
10 __PACKAGE__->add_columns(
11 "rflp_id",
13 data_type => "integer",
14 default_value => "nextval('rflp_markers_rflp_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "marker_id",
21 data_type => "bigint",
22 default_value => "(0)::bigint",
23 is_foreign_key => 1,
24 is_nullable => 0,
25 size => 8,
27 "rflp_name",
29 data_type => "character varying",
30 default_value => "''::character varying",
31 is_nullable => 0,
32 size => 64,
34 "library_name",
36 data_type => "character varying",
37 default_value => undef,
38 is_nullable => 1,
39 size => 64,
41 "clone_name",
43 data_type => "character varying",
44 default_value => undef,
45 is_nullable => 1,
46 size => 16,
48 "vector",
50 data_type => "character varying",
51 default_value => undef,
52 is_nullable => 1,
53 size => 32,
55 "cutting_site",
57 data_type => "character varying",
58 default_value => undef,
59 is_nullable => 1,
60 size => 32,
62 "forward_seq_id",
64 data_type => "bigint",
65 default_value => undef,
66 is_foreign_key => 1,
67 is_nullable => 1,
68 size => 8,
70 "reverse_seq_id",
72 data_type => "bigint",
73 default_value => undef,
74 is_foreign_key => 1,
75 is_nullable => 1,
76 size => 8,
78 "insert_size",
80 data_type => "bigint",
81 default_value => "(0)::bigint",
82 is_nullable => 0,
83 size => 8,
85 "drug_resistance",
87 data_type => "character varying",
88 default_value => undef,
89 is_nullable => 1,
90 size => 16,
92 "marker_prefix",
94 data_type => "character varying",
95 default_value => undef,
96 is_nullable => 1,
97 size => 8,
99 "marker_suffix",
101 data_type => "smallint",
102 default_value => undef,
103 is_nullable => 1,
104 size => 2,
107 __PACKAGE__->set_primary_key("rflp_id");
108 __PACKAGE__->has_many(
109 "marker_experiments",
110 "SGN::Schema::MarkerExperiment",
111 { "foreign.rflp_experiment_id" => "self.rflp_id" },
113 __PACKAGE__->belongs_to(
114 "reverse_seq",
115 "SGN::Schema::RflpSequence",
116 { seq_id => "reverse_seq_id" },
117 { join_type => "LEFT" },
119 __PACKAGE__->belongs_to("marker", "SGN::Schema::Marker", { marker_id => "marker_id" });
120 __PACKAGE__->belongs_to(
121 "forward_seq",
122 "SGN::Schema::RflpSequence",
123 { seq_id => "forward_seq_id" },
124 { join_type => "LEFT" },
128 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
129 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:JxKKWqpAeSVS1J43w+eieA
132 # You can replace this text with custom content, and it will be preserved on regeneration