Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / MarkerAlias.pm
blob09e3d5b650705b75f3048ae4288876f00df835f4
1 package SGN::Schema::MarkerAlias;
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::MarkerAlias
16 =cut
18 __PACKAGE__->table("marker_alias");
20 =head1 ACCESSORS
22 =head2 alias_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_nullable: 0
27 sequence: 'marker_alias_alias_id_seq'
29 =head2 alias
31 data_type: 'text'
32 is_nullable: 0
34 =head2 marker_id
36 data_type: 'integer'
37 is_foreign_key: 1
38 is_nullable: 0
40 =head2 preferred
42 data_type: 'boolean'
43 default_value: true
44 is_nullable: 1
46 =cut
48 __PACKAGE__->add_columns(
49 "alias_id",
51 data_type => "integer",
52 is_auto_increment => 1,
53 is_nullable => 0,
54 sequence => "marker_alias_alias_id_seq",
56 "alias",
57 { data_type => "text", is_nullable => 0 },
58 "marker_id",
59 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
60 "preferred",
61 { data_type => "boolean", default_value => \"true", is_nullable => 1 },
63 __PACKAGE__->set_primary_key("alias_id");
64 __PACKAGE__->add_unique_constraint("marker_alias_alias_key", ["alias"]);
66 =head1 RELATIONS
68 =head2 marker
70 Type: belongs_to
72 Related object: L<SGN::Schema::Marker>
74 =cut
76 __PACKAGE__->belongs_to(
77 "marker",
78 "SGN::Schema::Marker",
79 { marker_id => "marker_id" },
80 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
84 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
85 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E+03TkLOicO7zNp3CmApfA
88 # You can replace this text with custom content, and it will be preserved on regeneration