fixed recursive_children cvterm function, and added tests for parents and children
[cxgn-corelibs.git] / lib / SGN / Schema / BlastDb.pm
blobaeaed218c822d2fb064178920613bb86dd5dde7a
1 package SGN::Schema::BlastDb;
3 use strict;
4 use warnings;
6 use base 'DBIx::Class';
8 __PACKAGE__->load_components("Core");
9 __PACKAGE__->table("blast_db");
10 __PACKAGE__->add_columns(
11 "blast_db_id",
13 data_type => "integer",
14 default_value => "nextval('blast_db_blast_db_id_seq'::regclass)",
15 is_auto_increment => 1,
16 is_nullable => 0,
17 size => 4,
19 "file_base",
21 data_type => "character varying",
22 default_value => undef,
23 is_nullable => 0,
24 size => 120,
26 "title",
28 data_type => "character varying",
29 default_value => undef,
30 is_nullable => 0,
31 size => 80,
33 "type",
35 data_type => "character varying",
36 default_value => undef,
37 is_nullable => 1,
38 size => 80,
40 "source_url",
42 data_type => "character varying",
43 default_value => undef,
44 is_nullable => 1,
45 size => 255,
47 "lookup_url",
49 data_type => "character varying",
50 default_value => undef,
51 is_nullable => 1,
52 size => 255,
54 "update_freq",
56 data_type => "character varying",
57 default_value => "'monthly'::character varying",
58 is_nullable => 0,
59 size => 80,
61 "info_url",
63 data_type => "character varying",
64 default_value => undef,
65 is_nullable => 1,
66 size => 255,
68 "index_seqs",
70 data_type => "boolean",
71 default_value => "false",
72 is_nullable => 0,
73 size => 1,
75 "blast_db_group_id",
77 data_type => "integer",
78 default_value => undef,
79 is_foreign_key => 1,
80 is_nullable => 1,
81 size => 4,
83 "web_interface_visible",
85 data_type => "boolean",
86 default_value => "false",
87 is_nullable => 1,
88 size => 1,
90 "description",
92 data_type => "text",
93 default_value => undef,
94 is_nullable => 1,
95 size => undef,
98 __PACKAGE__->set_primary_key("blast_db_id");
99 __PACKAGE__->add_unique_constraint("blast_db_file_base_key", ["file_base"]);
100 __PACKAGE__->belongs_to(
101 "blast_db_group",
102 "SGN::Schema::BlastDbGroup",
103 { blast_db_group_id => "blast_db_group_id" },
104 { join_type => "LEFT" },
106 __PACKAGE__->has_many(
107 "unigene_builds",
108 "SGN::Schema::UnigeneBuild",
109 { "foreign.blast_db_id" => "self.blast_db_id" },
113 # Created by DBIx::Class::Schema::Loader v0.04999_07 @ 2009-09-04 13:21:55
114 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:dgwbxWK+Txu+tex3qf0BFg
117 # You can replace this text with custom content, and it will be preserved on regeneration