Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / CommonNameprop.pm
blobed7c50202a971b7392a5614445bff8c89f9f0d02
1 package SGN::Schema::CommonNameprop;
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::CommonNameprop
16 =cut
18 __PACKAGE__->table("common_nameprop");
20 =head1 ACCESSORS
22 =head2 common_nameprop_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'organismprop_organismprop_id_seq'
29 =head2 common_name_id
31 data_type: 'integer'
32 is_foreign_key: 1
33 is_nullable: 0
35 =head2 type_id
37 data_type: 'integer'
38 is_nullable: 0
40 =head2 value
42 data_type: 'varchar'
43 is_nullable: 0
44 size: 32
46 =head2 rank
48 data_type: 'integer'
49 default_value: 0
50 is_nullable: 0
52 =cut
54 __PACKAGE__->add_columns(
55 "common_nameprop_id",
57 data_type => "integer",
58 is_auto_increment => 1,
59 is_nullable => 0,
60 sequence => "organismprop_organismprop_id_seq",
62 "common_name_id",
63 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
64 "type_id",
65 { data_type => "integer", is_nullable => 0 },
66 "value",
67 { data_type => "varchar", is_nullable => 0, size => 32 },
68 "rank",
69 { data_type => "integer", default_value => 0, is_nullable => 0 },
71 __PACKAGE__->set_primary_key("common_nameprop_id");
73 =head1 RELATIONS
75 =head2 common_name
77 Type: belongs_to
79 Related object: L<SGN::Schema::CommonName>
81 =cut
83 __PACKAGE__->belongs_to(
84 "common_name",
85 "SGN::Schema::CommonName",
86 { common_name_id => "common_name_id" },
87 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
91 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:32:42
92 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BuIRBz+5C+oT0LP0u7coNg
95 # You can replace this text with custom content, and it will be preserved on regeneration