Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / lib / SGN / Schema / TmMarker.pm
blobd34d66fe4babc23e4c001e299e4971de04388458
1 package SGN::Schema::TmMarker;
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::TmMarker
16 =cut
18 __PACKAGE__->table("tm_markers");
20 =head1 ACCESSORS
22 =head2 tm_id
24 data_type: 'integer'
25 is_auto_increment: 1
26 is_foreign_key: 1
27 is_nullable: 0
28 sequence: 'tm_markers_tm_id_seq'
30 =head2 marker_id
32 data_type: 'bigint'
33 default_value: '0)::bigint'
34 is_foreign_key: 1
35 is_nullable: 0
37 =head2 tm_name
39 data_type: 'varchar'
40 default_value: (empty string)
41 is_nullable: 0
42 size: 32
44 =head2 old_cos_id
46 data_type: 'varchar'
47 is_nullable: 1
48 size: 32
50 =head2 seq_id
52 data_type: 'bigint'
53 is_nullable: 1
55 =head2 est_read_id
57 data_type: 'bigint'
58 is_nullable: 1
60 =head2 comment
62 data_type: 'text'
63 is_nullable: 1
65 =cut
67 __PACKAGE__->add_columns(
68 "tm_id",
70 data_type => "integer",
71 is_auto_increment => 1,
72 is_foreign_key => 1,
73 is_nullable => 0,
74 sequence => "tm_markers_tm_id_seq",
76 "marker_id",
78 data_type => "bigint",
79 default_value => "0)::bigint",
80 is_foreign_key => 1,
81 is_nullable => 0,
83 "tm_name",
84 { data_type => "varchar", default_value => "", is_nullable => 0, size => 32 },
85 "old_cos_id",
86 { data_type => "varchar", is_nullable => 1, size => 32 },
87 "seq_id",
88 { data_type => "bigint", is_nullable => 1 },
89 "est_read_id",
90 { data_type => "bigint", is_nullable => 1 },
91 "comment",
92 { data_type => "text", is_nullable => 1 },
94 __PACKAGE__->set_primary_key("tm_id");
96 =head1 RELATIONS
98 =head2 marker
100 Type: belongs_to
102 Related object: L<SGN::Schema::Marker>
104 =cut
106 __PACKAGE__->belongs_to(
107 "marker",
108 "SGN::Schema::Marker",
109 { marker_id => "marker_id" },
110 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
113 =head2 tm
115 Type: belongs_to
117 Related object: L<SGN::Schema::TmMarker>
119 =cut
121 __PACKAGE__->belongs_to(
122 "tm",
123 "SGN::Schema::TmMarker",
124 { tm_id => "tm_id" },
125 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
128 =head2 tm_marker
130 Type: might_have
132 Related object: L<SGN::Schema::TmMarker>
134 =cut
136 __PACKAGE__->might_have(
137 "tm_marker",
138 "SGN::Schema::TmMarker",
139 { "foreign.tm_id" => "self.tm_id" },
140 { cascade_copy => 0, cascade_delete => 0 },
144 # Created by DBIx::Class::Schema::Loader v0.07002 @ 2012-03-03 12:35:39
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BU0F27X8KB5C22+IezQUxA
148 # You can replace this text with custom content, and it will be preserved on regeneration