]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Correspondent.pm
be76b85d0265516c6025ba3bed1eac164e319a89
[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_submitters
97
98 Type: has_many
99
100 Related object: L<Debbugs::DB::Result::BugSubmitter>
101
102 =cut
103
104 __PACKAGE__->has_many(
105   "bug_submitters",
106   "Debbugs::DB::Result::BugSubmitter",
107   { "foreign.submitter" => "self.id" },
108   { cascade_copy => 0, cascade_delete => 0 },
109 );
110
111 =head2 bugs_done_by
112
113 Type: has_many
114
115 Related object: L<Debbugs::DB::Result::BugDoneBy>
116
117 =cut
118
119 __PACKAGE__->has_many(
120   "bugs_done_by",
121   "Debbugs::DB::Result::BugDoneBy",
122   { "foreign.done_by" => "self.id" },
123   { cascade_copy => 0, cascade_delete => 0 },
124 );
125
126 =head2 correspondent_full_names
127
128 Type: has_many
129
130 Related object: L<Debbugs::DB::Result::CorrespondentFullName>
131
132 =cut
133
134 __PACKAGE__->has_many(
135   "correspondent_full_names",
136   "Debbugs::DB::Result::CorrespondentFullName",
137   { "foreign.correspondent" => "self.id" },
138   { cascade_copy => 0, cascade_delete => 0 },
139 );
140
141 =head2 message_correspondents
142
143 Type: has_many
144
145 Related object: L<Debbugs::DB::Result::MessageCorrespondent>
146
147 =cut
148
149 __PACKAGE__->has_many(
150   "message_correspondents",
151   "Debbugs::DB::Result::MessageCorrespondent",
152   { "foreign.correspondent" => "self.id" },
153   { cascade_copy => 0, cascade_delete => 0 },
154 );
155
156
157 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53
158 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:ev/tN0AsOcs7AfC3Iz84dQ
159
160
161 # You can replace this text with custom code or comments, and it will be preserved on regeneration
162 1;