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