]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Correspondent.pm
b0a57ae064159754b04a55df227e29fabd424c3f
[debbugs.git] / Debbugs / DB / Result / Correspondent.pm
1 use utf8;
2 package Debbugs::DB::Result::Correspondent;
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::Correspondent - Individual who has corresponded with the BTS
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 =item * L<DBIx::Class::TimeStamp>
25
26 =back
27
28 =cut
29
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
31
32 =head1 TABLE: C<correspondent>
33
34 =cut
35
36 __PACKAGE__->table("correspondent");
37
38 =head1 ACCESSORS
39
40 =head2 id
41
42   data_type: 'integer'
43   is_auto_increment: 1
44   is_nullable: 0
45   sequence: 'correspondent_id_seq'
46
47 Correspondent ID
48
49 =head2 addr
50
51   data_type: 'text'
52   is_nullable: 0
53
54 Correspondent address
55
56 =cut
57
58 __PACKAGE__->add_columns(
59   "id",
60   {
61     data_type         => "integer",
62     is_auto_increment => 1,
63     is_nullable       => 0,
64     sequence          => "correspondent_id_seq",
65   },
66   "addr",
67   { data_type => "text", is_nullable => 0 },
68 );
69
70 =head1 PRIMARY KEY
71
72 =over 4
73
74 =item * L</id>
75
76 =back
77
78 =cut
79
80 __PACKAGE__->set_primary_key("id");
81
82 =head1 UNIQUE CONSTRAINTS
83
84 =head2 C<correspondent_addr_idx>
85
86 =over 4
87
88 =item * L</addr>
89
90 =back
91
92 =cut
93
94 __PACKAGE__->add_unique_constraint("correspondent_addr_idx", ["addr"]);
95
96 =head1 RELATIONS
97
98 =head2 bug_owners
99
100 Type: has_many
101
102 Related object: L<Debbugs::DB::Result::Bug>
103
104 =cut
105
106 __PACKAGE__->has_many(
107   "bug_owners",
108   "Debbugs::DB::Result::Bug",
109   { "foreign.owner" => "self.id" },
110   { cascade_copy => 0, cascade_delete => 0 },
111 );
112
113 =head2 bug_submitters
114
115 Type: has_many
116
117 Related object: L<Debbugs::DB::Result::Bug>
118
119 =cut
120
121 __PACKAGE__->has_many(
122   "bug_submitters",
123   "Debbugs::DB::Result::Bug",
124   { "foreign.submitter" => "self.id" },
125   { cascade_copy => 0, cascade_delete => 0 },
126 );
127
128 =head2 bugs_done
129
130 Type: has_many
131
132 Related object: L<Debbugs::DB::Result::Bug>
133
134 =cut
135
136 __PACKAGE__->has_many(
137   "bugs_done",
138   "Debbugs::DB::Result::Bug",
139   { "foreign.done" => "self.id" },
140   { cascade_copy => 0, cascade_delete => 0 },
141 );
142
143 =head2 correspondent_full_names
144
145 Type: has_many
146
147 Related object: L<Debbugs::DB::Result::CorrespondentFullName>
148
149 =cut
150
151 __PACKAGE__->has_many(
152   "correspondent_full_names",
153   "Debbugs::DB::Result::CorrespondentFullName",
154   { "foreign.correspondent" => "self.id" },
155   { cascade_copy => 0, cascade_delete => 0 },
156 );
157
158 =head2 maintainers
159
160 Type: has_many
161
162 Related object: L<Debbugs::DB::Result::Maintainer>
163
164 =cut
165
166 __PACKAGE__->has_many(
167   "maintainers",
168   "Debbugs::DB::Result::Maintainer",
169   { "foreign.correspondent" => "self.id" },
170   { cascade_copy => 0, cascade_delete => 0 },
171 );
172
173 =head2 message_correspondents
174
175 Type: has_many
176
177 Related object: L<Debbugs::DB::Result::MessageCorrespondent>
178
179 =cut
180
181 __PACKAGE__->has_many(
182   "message_correspondents",
183   "Debbugs::DB::Result::MessageCorrespondent",
184   { "foreign.correspondent" => "self.id" },
185   { cascade_copy => 0, cascade_delete => 0 },
186 );
187
188 =head2 user_tags
189
190 Type: has_many
191
192 Related object: L<Debbugs::DB::Result::UserTag>
193
194 =cut
195
196 __PACKAGE__->has_many(
197   "user_tags",
198   "Debbugs::DB::Result::UserTag",
199   { "foreign.correspondent" => "self.id" },
200   { cascade_copy => 0, cascade_delete => 0 },
201 );
202
203
204 # Created by DBIx::Class::Schema::Loader v0.07045 @ 2016-09-24 14:51:07
205 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CUVcqt94wCYJOPbiPt00+Q
206
207
208 # You can replace this text with custom code or comments, and it will be preserved on regeneration
209 1;