]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Message.pm
add bug message bits to sql
[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
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 =head2 msgid
46
47   data_type: 'text'
48   is_nullable: 1
49
50 =head2 from_complete
51
52   data_type: 'text'
53   is_nullable: 1
54
55 =head2 from_addr
56
57   data_type: 'text'
58   is_nullable: 1
59
60 =head2 to_complete
61
62   data_type: 'text'
63   is_nullable: 1
64
65 =head2 to_addr
66
67   data_type: 'text'
68   is_nullable: 1
69
70 =head2 subject
71
72   data_type: 'text'
73   default_value: (empty string)
74   is_nullable: 0
75
76 =head2 sent_date
77
78   data_type: 'timestamp with time zone'
79   is_nullable: 1
80
81 =head2 refs
82
83   data_type: 'text'
84   default_value: (empty string)
85   is_nullable: 0
86
87 =head2 spam_score
88
89   data_type: 'double precision'
90   is_nullable: 1
91
92 =head2 is_spam
93
94   data_type: 'boolean'
95   default_value: false
96   is_nullable: 1
97
98 =cut
99
100 __PACKAGE__->add_columns(
101   "id",
102   {
103     data_type         => "integer",
104     is_auto_increment => 1,
105     is_nullable       => 0,
106     sequence          => "message_id_seq",
107   },
108   "msgid",
109   { data_type => "text", is_nullable => 1 },
110   "from_complete",
111   { data_type => "text", is_nullable => 1 },
112   "from_addr",
113   { data_type => "text", is_nullable => 1 },
114   "to_complete",
115   { data_type => "text", is_nullable => 1 },
116   "to_addr",
117   { data_type => "text", is_nullable => 1 },
118   "subject",
119   { data_type => "text", default_value => "", is_nullable => 0 },
120   "sent_date",
121   { data_type => "timestamp with time zone", is_nullable => 1 },
122   "refs",
123   { data_type => "text", default_value => "", is_nullable => 0 },
124   "spam_score",
125   { data_type => "double precision", is_nullable => 1 },
126   "is_spam",
127   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
128 );
129
130 =head1 PRIMARY KEY
131
132 =over 4
133
134 =item * L</id>
135
136 =back
137
138 =cut
139
140 __PACKAGE__->set_primary_key("id");
141
142 =head1 RELATIONS
143
144 =head2 bug_messages
145
146 Type: has_many
147
148 Related object: L<Debbugs::DB::Result::BugMessage>
149
150 =cut
151
152 __PACKAGE__->has_many(
153   "bug_messages",
154   "Debbugs::DB::Result::BugMessage",
155   { "foreign.message" => "self.id" },
156   { cascade_copy => 0, cascade_delete => 0 },
157 );
158
159 =head2 message_corespondents
160
161 Type: has_many
162
163 Related object: L<Debbugs::DB::Result::MessageCorespondent>
164
165 =cut
166
167 __PACKAGE__->has_many(
168   "message_corespondents",
169   "Debbugs::DB::Result::MessageCorespondent",
170   { "foreign.message" => "self.id" },
171   { cascade_copy => 0, cascade_delete => 0 },
172 );
173
174 =head2 message_refs_messages
175
176 Type: has_many
177
178 Related object: L<Debbugs::DB::Result::MessageRef>
179
180 =cut
181
182 __PACKAGE__->has_many(
183   "message_refs_messages",
184   "Debbugs::DB::Result::MessageRef",
185   { "foreign.message" => "self.id" },
186   { cascade_copy => 0, cascade_delete => 0 },
187 );
188
189 =head2 message_refs_refs
190
191 Type: has_many
192
193 Related object: L<Debbugs::DB::Result::MessageRef>
194
195 =cut
196
197 __PACKAGE__->has_many(
198   "message_refs_refs",
199   "Debbugs::DB::Result::MessageRef",
200   { "foreign.refs" => "self.id" },
201   { cascade_copy => 0, cascade_delete => 0 },
202 );
203
204
205 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 15:37:55
206 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VkveOmRidQ9gNRBCjKyPEQ
207
208
209 # You can replace this text with custom code or comments, and it will be preserved on regeneration
210 1;