Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / FamilyMember.pm
blob6ae2582f72904d1f6efd0b9910b5edfd014e9ed6
1 package SGN::Schema::FamilyMember;
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::FamilyMember
16 =cut
18 __PACKAGE__->table("family_member");
20 =head1 ACCESSORS
22 =head2 family_member_id
24 data_type: 'bigint'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'family_member_family_member_id_seq'
29 =head2 cds_id
31 data_type: 'bigint'
32 is_nullable: 1
34 =head2 organism_group_id
36 data_type: 'bigint'
37 is_nullable: 1
39 =head2 family_id
41 data_type: 'bigint'
42 is_foreign_key: 1
43 is_nullable: 1
45 =head2 database_name
47 data_type: 'varchar'
48 is_nullable: 1
49 size: 20
51 =head2 sequence_name
53 data_type: 'varchar'
54 is_nullable: 1
55 size: 50
57 =head2 alignment_seq
59 data_type: 'text'
60 is_nullable: 1
62 =cut
64 __PACKAGE__->add_columns(
65 "family_member_id",
67 data_type => "bigint",
68 is_auto_increment => 1,
69 is_nullable => 0,
70 sequence => "family_member_family_member_id_seq",
72 "cds_id",
73 { data_type => "bigint", is_nullable => 1 },
74 "organism_group_id",
75 { data_type => "bigint", is_nullable => 1 },
76 "family_id",
77 { data_type => "bigint", is_foreign_key => 1, is_nullable => 1 },
78 "database_name",
79 { data_type => "varchar", is_nullable => 1, size => 20 },
80 "sequence_name",
81 { data_type => "varchar", is_nullable => 1, size => 50 },
82 "alignment_seq",
83 { data_type => "text", is_nullable => 1 },
85 __PACKAGE__->set_primary_key("family_member_id");
87 =head1 RELATIONS
89 =head2 family
91 Type: belongs_to
93 Related object: L<SGN::Schema::Family>
95 =cut
97 __PACKAGE__->belongs_to(
98 "family",
99 "SGN::Schema::Family",
100 { family_id => "family_id" },
102 is_deferrable => 1,
103 join_type => "LEFT",
104 on_delete => "CASCADE",
105 on_update => "CASCADE",
110 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
111 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:EwK2XAL/yXMUV8rOpDh0VA
114 # You can replace this text with custom content, and it will be preserved on regeneration