2 package Debbugs::DB::Result::MessageCorrespondent;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::MessageCorrespondent - Linkage between correspondent and message
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
28 __PACKAGE__->load_components("InflateColumn::DateTime");
30 =head1 TABLE: C<message_correspondent>
34 __PACKAGE__->table("message_correspondent");
43 sequence: 'message_correspondent_id_seq'
51 Message id (matches message)
59 Correspondent (matches correspondent)
61 =head2 correspondent_type
65 extra: {custom_type_name => "message_correspondent_type",list => ["to","from","envfrom","cc"]}
68 Type of correspondent (to, from, envfrom, cc, etc.)
72 __PACKAGE__->add_columns(
75 data_type => "integer",
76 is_auto_increment => 1,
78 sequence => "message_correspondent_id_seq",
81 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
87 default_value => "to",
89 custom_type_name => "message_correspondent_type",
90 list => ["to", "from", "envfrom", "cc"],
106 __PACKAGE__->set_primary_key("id");
108 =head1 UNIQUE CONSTRAINTS
110 =head2 C<message_correspondent_message_correspondent_correspondent_t_idx>
116 =item * L</correspondent>
118 =item * L</correspondent_type>
124 __PACKAGE__->add_unique_constraint(
125 "message_correspondent_message_correspondent_correspondent_t_idx",
126 ["message", "correspondent", "correspondent_type"],
135 Related object: L<Debbugs::DB::Result::Correspondent>
139 __PACKAGE__->belongs_to(
141 "Debbugs::DB::Result::Correspondent",
142 { id => "correspondent" },
143 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
150 Related object: L<Debbugs::DB::Result::Message>
154 __PACKAGE__->belongs_to(
156 "Debbugs::DB::Result::Message",
158 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
162 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
163 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O+1oiAgBblG5UTsHpF4xRw
166 # You can replace this text with custom code or comments, and it will be preserved on regeneration