]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Corespondent.pm
update db::result class and add correspondent and message correspondent
[debbugs.git] / Debbugs / DB / Result / Corespondent.pm
1 use utf8;
2 package Debbugs::DB::Result::Corespondent;
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::Corespondent
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<corespondent>
31
32 =cut
33
34 __PACKAGE__->table("corespondent");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'corespondent_id_seq'
44
45 =head2 addr
46
47   data_type: 'text'
48   is_nullable: 0
49
50 =cut
51
52 __PACKAGE__->add_columns(
53   "id",
54   {
55     data_type         => "integer",
56     is_auto_increment => 1,
57     is_nullable       => 0,
58     sequence          => "corespondent_id_seq",
59   },
60   "addr",
61   { data_type => "text", is_nullable => 0 },
62 );
63
64 =head1 PRIMARY KEY
65
66 =over 4
67
68 =item * L</id>
69
70 =back
71
72 =cut
73
74 __PACKAGE__->set_primary_key("id");
75
76 =head1 UNIQUE CONSTRAINTS
77
78 =head2 C<corespondent_addr_key>
79
80 =over 4
81
82 =item * L</addr>
83
84 =back
85
86 =cut
87
88 __PACKAGE__->add_unique_constraint("corespondent_addr_key", ["addr"]);
89
90 =head1 RELATIONS
91
92 =head2 message_corespondents
93
94 Type: has_many
95
96 Related object: L<Debbugs::DB::Result::MessageCorespondent>
97
98 =cut
99
100 __PACKAGE__->has_many(
101   "message_corespondents",
102   "Debbugs::DB::Result::MessageCorespondent",
103   { "foreign.corespondent" => "self.id" },
104   { cascade_copy => 0, cascade_delete => 0 },
105 );
106
107
108 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 15:37:55
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:v3bUQ+IEbhl9Z9+g6uQVDw
110
111
112 # You can replace this text with custom code or comments, and it will be preserved on regeneration
113 1;