Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / FamilyTree.pm
blob9918f788f9626de3c7d123d8f69775e75640029c
1 package SGN::Schema::FamilyTree;
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::FamilyTree
16 =cut
18 __PACKAGE__->table("family_tree");
20 =head1 ACCESSORS
22 =head2 family_tree_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'family_tree_family_tree_id_seq'
29 =head2 family_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 0
35 =head2 tree_nr
37 data_type: 'integer'
38 is_nullable: 1
40 =head2 newick_cds
42 data_type: 'text'
43 is_nullable: 1
44 original: {data_type => "varchar"}
46 =head2 newick_unigene
48 data_type: 'text'
49 is_nullable: 1
50 original: {data_type => "varchar"}
52 =cut
54 __PACKAGE__->add_columns(
55 "family_tree_id",
57 data_type => "integer",
58 is_auto_increment => 1,
59 is_nullable => 0,
60 sequence => "family_tree_family_tree_id_seq",
62 "family_id",
63 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
64 "tree_nr",
65 { data_type => "integer", is_nullable => 1 },
66 "newick_cds",
68 data_type => "text",
69 is_nullable => 1,
70 original => { data_type => "varchar" },
72 "newick_unigene",
74 data_type => "text",
75 is_nullable => 1,
76 original => { data_type => "varchar" },
79 __PACKAGE__->set_primary_key("family_tree_id");
81 =head1 RELATIONS
83 =head2 family
85 Type: belongs_to
87 Related object: L<SGN::Schema::Family>
89 =cut
91 __PACKAGE__->belongs_to(
92 "family",
93 "SGN::Schema::Family",
94 { family_id => "family_id" },
95 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
99 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
100 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:olyNyjmYqt3GuL+Ry+I+qg
103 # You can replace this text with custom content, and it will be preserved on regeneration