fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / FamilyBuild.pm
blobd36233712c082e5fdbbff18dfdd1b97d2cd8bd86
1 package SGN::Schema::FamilyBuild;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("family_build");
10 __PACKAGE__->add_columns(
11 "family_build_id",
13 data_type => "bigint",
14 default_value => "nextval('family_build_family_build_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 8,
19 "group_id",
20 { data_type => "bigint", default_value => undef, is_nullable => 1, size => 8 },
21 "build_nr",
22 { data_type => "bigint", default_value => undef, is_nullable => 1, size => 8 },
23 "i_value",
25 data_type => "double precision",
26 default_value => undef,
27 is_nullable => 1,
28 size => 8,
30 "build_date",
32 data_type => "timestamp without time zone",
33 default_value => "('now'::text)::timestamp(6) with time zone",
34 is_nullable => 0,
35 size => 8,
37 "status",
39 data_type => "character",
40 default_value => "'C'::bpchar",
41 is_nullable => 1,
42 size => 1,
45 __PACKAGE__->set_primary_key("family_build_id");
46 __PACKAGE__->has_many(
47 "families",
48 "SGN::Schema::Family",
49 { "foreign.family_build_id" => "self.family_build_id" },
53 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
54 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7wifZAmGXzBAUd7SfYY/ag
57 # You can replace this text with custom content, and it will be preserved on regeneration