]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Message.pm
70b876d545dac16ad4601e73b77f9f1f8e264d9b
[debbugs.git] / Debbugs / DB / Result / Message.pm
1 use utf8;
2 package Debbugs::DB::Result::Message;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Debbugs::DB::Result::Message - Messages sent to bugs
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 COMPONENTS LOADED
19
20 =over 4
21
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23
24 =back
25
26 =cut
27
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29
30 =head1 TABLE: C<message>
31
32 =cut
33
34 __PACKAGE__->table("message");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'message_id_seq'
44
45 Message id
46
47 =head2 msgid
48
49   data_type: 'text'
50   is_nullable: 1
51
52 Message id header
53
54 =head2 from_complete
55
56   data_type: 'text'
57   is_nullable: 1
58
59 Complete from header of message
60
61 =head2 from_addr
62
63   data_type: 'text'
64   is_nullable: 1
65
66 Address(es) of From: headers
67
68 =head2 to_complete
69
70   data_type: 'text'
71   is_nullable: 1
72
73 Complete to header of message
74
75 =head2 to_addr
76
77   data_type: 'text'
78   is_nullable: 1
79
80 Address(es) of To: header
81
82 =head2 subject
83
84   data_type: 'text'
85   default_value: (empty string)
86   is_nullable: 0
87
88 Subject of the message
89
90 =head2 sent_date
91
92   data_type: 'timestamp with time zone'
93   is_nullable: 1
94
95 Time/date message was sent (from Date header)
96
97 =head2 refs
98
99   data_type: 'text'
100   default_value: (empty string)
101   is_nullable: 0
102
103 Contents of References: header
104
105 =head2 spam_score
106
107   data_type: 'double precision'
108   is_nullable: 1
109
110 Spam score from spamassassin
111
112 =head2 is_spam
113
114   data_type: 'boolean'
115   default_value: false
116   is_nullable: 1
117
118 True if this message was spam and should not be shown
119
120 =cut
121
122 __PACKAGE__->add_columns(
123   "id",
124   {
125     data_type         => "integer",
126     is_auto_increment => 1,
127     is_nullable       => 0,
128     sequence          => "message_id_seq",
129   },
130   "msgid",
131   { data_type => "text", is_nullable => 1 },
132   "from_complete",
133   { data_type => "text", is_nullable => 1 },
134   "from_addr",
135   { data_type => "text", is_nullable => 1 },
136   "to_complete",
137   { data_type => "text", is_nullable => 1 },
138   "to_addr",
139   { data_type => "text", is_nullable => 1 },
140   "subject",
141   { data_type => "text", default_value => "", is_nullable => 0 },
142   "sent_date",
143   { data_type => "timestamp with time zone", is_nullable => 1 },
144   "refs",
145   { data_type => "text", default_value => "", is_nullable => 0 },
146   "spam_score",
147   { data_type => "double precision", is_nullable => 1 },
148   "is_spam",
149   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
150 );
151
152 =head1 PRIMARY KEY
153
154 =over 4
155
156 =item * L</id>
157
158 =back
159
160 =cut
161
162 __PACKAGE__->set_primary_key("id");
163
164 =head1 RELATIONS
165
166 =head2 bug_messages
167
168 Type: has_many
169
170 Related object: L<Debbugs::DB::Result::BugMessage>
171
172 =cut
173
174 __PACKAGE__->has_many(
175   "bug_messages",
176   "Debbugs::DB::Result::BugMessage",
177   { "foreign.message" => "self.id" },
178   { cascade_copy => 0, cascade_delete => 0 },
179 );
180
181 =head2 message_correspondents
182
183 Type: has_many
184
185 Related object: L<Debbugs::DB::Result::MessageCorrespondent>
186
187 =cut
188
189 __PACKAGE__->has_many(
190   "message_correspondents",
191   "Debbugs::DB::Result::MessageCorrespondent",
192   { "foreign.message" => "self.id" },
193   { cascade_copy => 0, cascade_delete => 0 },
194 );
195
196 =head2 message_refs_messages
197
198 Type: has_many
199
200 Related object: L<Debbugs::DB::Result::MessageRef>
201
202 =cut
203
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 },
209 );
210
211 =head2 message_refs_refs
212
213 Type: has_many
214
215 Related object: L<Debbugs::DB::Result::MessageRef>
216
217 =cut
218
219 __PACKAGE__->has_many(
220   "message_refs_refs",
221   "Debbugs::DB::Result::MessageRef",
222   { "foreign.refs" => "self.id" },
223   { cascade_copy => 0, cascade_delete => 0 },
224 );
225
226
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
229
230
231 # You can replace this text with custom code or comments, and it will be preserved on regeneration
232 1;