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>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<message>
36 __PACKAGE__->table("message");
45 sequence: 'message_id_seq'
52 default_value: (empty string)
60 default_value: (empty string)
63 Complete from header of message
68 default_value: (empty string)
71 Complete to header of message
76 default_value: (empty string)
79 Subject of the message
83 data_type: 'timestamp with time zone'
86 Time/date message was sent (from Date header)
91 default_value: (empty string)
94 Contents of References: header
98 data_type: 'double precision'
102 Spam score from spamassassin
110 True if this message was spam and should not be shown
114 __PACKAGE__->add_columns(
117 data_type => "integer",
118 is_auto_increment => 1,
120 sequence => "message_id_seq",
123 { data_type => "text", default_value => "", is_nullable => 0 },
125 { data_type => "text", default_value => "", is_nullable => 0 },
127 { data_type => "text", default_value => "", is_nullable => 0 },
129 { data_type => "text", default_value => "", is_nullable => 0 },
131 { data_type => "timestamp with time zone", is_nullable => 1 },
133 { data_type => "text", default_value => "", is_nullable => 0 },
135 { data_type => "double precision", default_value => 0, is_nullable => 0 },
137 { data_type => "boolean", default_value => \"false", is_nullable => 0 },
150 __PACKAGE__->set_primary_key("id");
152 =head1 UNIQUE CONSTRAINTS
154 =head2 C<message_msgid_from_complete_to_complete_subject_idx>
160 =item * L</from_complete>
162 =item * L</to_complete>
170 __PACKAGE__->add_unique_constraint(
171 "message_msgid_from_complete_to_complete_subject_idx",
172 ["msgid", "from_complete", "to_complete", "subject"],
181 Related object: L<Debbugs::DB::Result::BugMessage>
185 __PACKAGE__->has_many(
187 "Debbugs::DB::Result::BugMessage",
188 { "foreign.message" => "self.id" },
189 { cascade_copy => 0, cascade_delete => 0 },
192 =head2 message_correspondents
196 Related object: L<Debbugs::DB::Result::MessageCorrespondent>
200 __PACKAGE__->has_many(
201 "message_correspondents",
202 "Debbugs::DB::Result::MessageCorrespondent",
203 { "foreign.message" => "self.id" },
204 { cascade_copy => 0, cascade_delete => 0 },
207 =head2 message_refs_messages
211 Related object: L<Debbugs::DB::Result::MessageRef>
215 __PACKAGE__->has_many(
216 "message_refs_messages",
217 "Debbugs::DB::Result::MessageRef",
218 { "foreign.message" => "self.id" },
219 { cascade_copy => 0, cascade_delete => 0 },
222 =head2 message_refs_refs
226 Related object: L<Debbugs::DB::Result::MessageRef>
230 __PACKAGE__->has_many(
232 "Debbugs::DB::Result::MessageRef",
233 { "foreign.refs" => "self.id" },
234 { cascade_copy => 0, cascade_delete => 0 },
238 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2017-03-07 19:03:32
239 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:n8U0vD9R8M5wFoeoLlIWeQ
241 __PACKAGE__->many_to_many(bugs => 'bug_messages','bug');
242 __PACKAGE__->many_to_many(correspondents => 'message_correspondents','correspondent');
243 __PACKAGE__->many_to_many(references => 'message_refs_message','message');
244 __PACKAGE__->many_to_many(referenced_by => 'message_refs_refs','message');
246 # You can replace this text with custom code or comments, and it will be preserved on regeneration