Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Snpprop.pm
blobc5ace332d0622c2195fbac19df2c1bb4d4eb2dbb
1 package SGN::Schema::Snpprop;
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::Snpprop
16 =cut
18 __PACKAGE__->table("snpprop");
20 =head1 ACCESSORS
22 =head2 snpprop_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'sgn.snpprop_snpprop_id_seq'
29 =head2 snp_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 1
35 =head2 value
37 data_type: 'varchar'
38 is_nullable: 0
39 size: 255
41 =head2 rank
43 data_type: 'integer'
44 is_nullable: 1
46 =head2 type_id
48 data_type: 'integer'
49 is_nullable: 1
51 =cut
53 __PACKAGE__->add_columns(
54 "snpprop_id",
56 data_type => "integer",
57 is_auto_increment => 1,
58 is_nullable => 0,
59 sequence => "sgn.snpprop_snpprop_id_seq",
61 "snp_id",
62 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
63 "value",
64 { data_type => "varchar", is_nullable => 0, size => 255 },
65 "rank",
66 { data_type => "integer", is_nullable => 1 },
67 "type_id",
68 { data_type => "integer", is_nullable => 1 },
70 __PACKAGE__->set_primary_key("snpprop_id");
72 =head1 RELATIONS
74 =head2 snp
76 Type: belongs_to
78 Related object: L<SGN::Schema::Snp>
80 =cut
82 __PACKAGE__->belongs_to(
83 "snp",
84 "SGN::Schema::Snp",
85 { snp_id => "snp_id" },
87 is_deferrable => 1,
88 join_type => "LEFT",
89 on_delete => "CASCADE",
90 on_update => "CASCADE",
95 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
96 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:GGWqOxLl9yAsP+lY6vtD6A
99 # You can replace this text with custom content, and it will be preserved on regeneration