2 package Debbugs::DB::Result::Message;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::Message - Messages sent to bugs
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
28 __PACKAGE__->load_components("InflateColumn::DateTime");
30 =head1 TABLE: C<message>
34 __PACKAGE__->table("message");
43 sequence: 'message_id_seq'
59 Complete from header of message
66 Address(es) of From: headers
73 Complete to header of message
80 Address(es) of To: header
85 default_value: (empty string)
88 Subject of the message
92 data_type: 'timestamp with time zone'
95 Time/date message was sent (from Date header)
100 default_value: (empty string)
103 Contents of References: header
107 data_type: 'double precision'
110 Spam score from spamassassin
118 True if this message was spam and should not be shown
122 __PACKAGE__->add_columns(
125 data_type => "integer",
126 is_auto_increment => 1,
128 sequence => "message_id_seq",
131 { data_type => "text", is_nullable => 1 },
133 { data_type => "text", is_nullable => 1 },
135 { data_type => "text", is_nullable => 1 },
137 { data_type => "text", is_nullable => 1 },
139 { data_type => "text", is_nullable => 1 },
141 { data_type => "text", default_value => "", is_nullable => 0 },
143 { data_type => "timestamp with time zone", is_nullable => 1 },
145 { data_type => "text", default_value => "", is_nullable => 0 },
147 { data_type => "double precision", is_nullable => 1 },
149 { data_type => "boolean", default_value => \"false", is_nullable => 1 },
162 __PACKAGE__->set_primary_key("id");
170 Related object: L<Debbugs::DB::Result::BugMessage>
174 __PACKAGE__->has_many(
176 "Debbugs::DB::Result::BugMessage",
177 { "foreign.message" => "self.id" },
178 { cascade_copy => 0, cascade_delete => 0 },
181 =head2 message_correspondents
185 Related object: L<Debbugs::DB::Result::MessageCorrespondent>
189 __PACKAGE__->has_many(
190 "message_correspondents",
191 "Debbugs::DB::Result::MessageCorrespondent",
192 { "foreign.message" => "self.id" },
193 { cascade_copy => 0, cascade_delete => 0 },
196 =head2 message_refs_messages
200 Related object: L<Debbugs::DB::Result::MessageRef>
204 __PACKAGE__->has_many(
205 "message_refs_messages",
206 "Debbugs::DB::Result::MessageRef",
207 { "foreign.message" => "self.id" },
208 { cascade_copy => 0, cascade_delete => 0 },
211 =head2 message_refs_refs
215 Related object: L<Debbugs::DB::Result::MessageRef>
219 __PACKAGE__->has_many(
221 "Debbugs::DB::Result::MessageRef",
222 { "foreign.refs" => "self.id" },
223 { cascade_copy => 0, cascade_delete => 0 },
227 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
228 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:M6k3YCfOyYLnQJ+qBcoJlQ
231 # You can replace this text with custom code or comments, and it will be preserved on regeneration