Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / Organismgroup.pm
blob88f4264036adf1fe7296d57ae9c89f46edce843f
1 package SGN::Schema::Organismgroup;
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::Organismgroup
16 =cut
18 __PACKAGE__->table("organismgroup");
20 =head1 ACCESSORS
22 =head2 organismgroup_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'organismgroup_organismgroup_id_seq'
29 =head2 name
31 data_type: 'varchar'
32 is_nullable: 1
33 size: 255
35 =head2 type
37 data_type: 'varchar'
38 is_nullable: 1
39 size: 32
41 =cut
43 __PACKAGE__->add_columns(
44 "organismgroup_id",
46 data_type => "integer",
47 is_auto_increment => 1,
48 is_nullable => 0,
49 sequence => "organismgroup_organismgroup_id_seq",
51 "name",
52 { data_type => "varchar", is_nullable => 1, size => 255 },
53 "type",
54 { data_type => "varchar", is_nullable => 1, size => 32 },
56 __PACKAGE__->set_primary_key("organismgroup_id");
58 =head1 RELATIONS
60 =head2 organismgroup_members
62 Type: has_many
64 Related object: L<SGN::Schema::OrganismgroupMember>
66 =cut
68 __PACKAGE__->has_many(
69 "organismgroup_members",
70 "SGN::Schema::OrganismgroupMember",
71 { "foreign.organismgroup_id" => "self.organismgroup_id" },
72 { cascade_copy => 0, cascade_delete => 0 },
76 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
77 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:QLDS19A29tivXEZCMuRwTQ
80 # You can replace this text with custom content, and it will be preserved on regeneration