]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/MessageRef.pm
update for correspondent in maintainer
[debbugs.git] / Debbugs / DB / Result / MessageRef.pm
1 use utf8;
2 package Debbugs::DB::Result::MessageRef;
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::MessageRef - Message references
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_refs>
31
32 =cut
33
34 __PACKAGE__->table("message_refs");
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_refs_id_seq'
44
45 =head2 message
46
47   data_type: 'integer'
48   is_foreign_key: 1
49   is_nullable: 0
50
51 Message id (matches message)
52
53 =head2 refs
54
55   data_type: 'integer'
56   is_foreign_key: 1
57   is_nullable: 0
58
59 Reference id (matches message)
60
61 =head2 inferred
62
63   data_type: 'boolean'
64   default_value: false
65   is_nullable: 1
66
67 TRUE if this message reference was reconstructed; primarily of use for messages which lack In-Reply-To: or References: headers
68
69 =head2 primary_ref
70
71   data_type: 'boolean'
72   default_value: false
73   is_nullable: 1
74
75 TRUE if this message->ref came from In-Reply-To: or similar.
76
77 =cut
78
79 __PACKAGE__->add_columns(
80   "id",
81   {
82     data_type         => "integer",
83     is_auto_increment => 1,
84     is_nullable       => 0,
85     sequence          => "message_refs_id_seq",
86   },
87   "message",
88   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
89   "refs",
90   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
91   "inferred",
92   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
93   "primary_ref",
94   { data_type => "boolean", default_value => \"false", is_nullable => 1 },
95 );
96
97 =head1 PRIMARY KEY
98
99 =over 4
100
101 =item * L</id>
102
103 =back
104
105 =cut
106
107 __PACKAGE__->set_primary_key("id");
108
109 =head1 UNIQUE CONSTRAINTS
110
111 =head2 C<message_refs_message_refs_idx>
112
113 =over 4
114
115 =item * L</message>
116
117 =item * L</refs>
118
119 =back
120
121 =cut
122
123 __PACKAGE__->add_unique_constraint("message_refs_message_refs_idx", ["message", "refs"]);
124
125 =head1 RELATIONS
126
127 =head2 message
128
129 Type: belongs_to
130
131 Related object: L<Debbugs::DB::Result::Message>
132
133 =cut
134
135 __PACKAGE__->belongs_to(
136   "message",
137   "Debbugs::DB::Result::Message",
138   { id => "message" },
139   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
140 );
141
142 =head2 ref
143
144 Type: belongs_to
145
146 Related object: L<Debbugs::DB::Result::Message>
147
148 =cut
149
150 __PACKAGE__->belongs_to(
151   "ref",
152   "Debbugs::DB::Result::Message",
153   { id => "refs" },
154   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
155 );
156
157
158 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
159 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oEOZLlhxLd5tyH5IW5KhTA
160
161
162 # You can replace this text with custom code or comments, and it will be preserved on regeneration
163 1;