Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Family.pm
blobe4602ca9db47c3fd25e7bb980deaf263f5d4667f
1 package SGN::Schema::Family;
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::Family
16 =cut
18 __PACKAGE__->table("family");
20 =head1 ACCESSORS
22 =head2 family_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'family_family_id_seq'
29 =head2 family_build_id
31 data_type: 'bigint'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 family_annotation
37 data_type: 'text'
38 is_nullable: 1
40 =head2 tree_log_file_location
42 data_type: 'text'
43 is_nullable: 1
44 original: {data_type => "varchar"}
46 =head2 tree_file_location
48 data_type: 'text'
49 is_nullable: 1
50 original: {data_type => "varchar"}
52 =head2 tree_taxa_number
54 data_type: 'integer'
55 is_nullable: 1
57 =head2 tree_overlap_length
59 data_type: 'integer'
60 is_nullable: 1
62 =head2 family_nr
64 data_type: 'integer'
65 is_nullable: 1
67 =head2 member_count
69 data_type: 'integer'
70 is_nullable: 1
72 =cut
74 __PACKAGE__->add_columns(
75 "family_id",
77 data_type => "bigint",
78 is_auto_increment => 1,
79 is_nullable => 0,
80 sequence => "family_family_id_seq",
82 "family_build_id",
83 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
84 "family_annotation",
85 { data_type => "text", is_nullable => 1 },
86 "tree_log_file_location",
88 data_type => "text",
89 is_nullable => 1,
90 original => { data_type => "varchar" },
92 "tree_file_location",
94 data_type => "text",
95 is_nullable => 1,
96 original => { data_type => "varchar" },
98 "tree_taxa_number",
99 { data_type => "integer", is_nullable => 1 },
100 "tree_overlap_length",
101 { data_type => "integer", is_nullable => 1 },
102 "family_nr",
103 { data_type => "integer", is_nullable => 1 },
104 "member_count",
105 { data_type => "integer", is_nullable => 1 },
107 __PACKAGE__->set_primary_key("family_id");
109 =head1 RELATIONS
111 =head2 family_build
113 Type: belongs_to
115 Related object: L<SGN::Schema::FamilyBuild>
117 =cut
119 __PACKAGE__->belongs_to(
120 "family_build",
121 "SGN::Schema::FamilyBuild",
122 { family_build_id => "family_build_id" },
124 is_deferrable => 1,
125 join_type => "LEFT",
126 on_delete => "CASCADE",
127 on_update => "CASCADE",
131 =head2 family_members
133 Type: has_many
135 Related object: L<SGN::Schema::FamilyMember>
137 =cut
139 __PACKAGE__->has_many(
140 "family_members",
141 "SGN::Schema::FamilyMember",
142 { "foreign.family_id" => "self.family_id" },
143 { cascade_copy => 0, cascade_delete => 0 },
146 =head2 family_trees
148 Type: has_many
150 Related object: L<SGN::Schema::FamilyTree>
152 =cut
154 __PACKAGE__->has_many(
155 "family_trees",
156 "SGN::Schema::FamilyTree",
157 { "foreign.family_id" => "self.family_id" },
158 { cascade_copy => 0, cascade_delete => 0 },
162 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
163 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:b0V0phWXlABHu1CSjK8XfA
166 # You can replace this text with custom content, and it will be preserved on regeneration