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");
44 Message id (matches message)
52 Correspondent (matches correspondent)
54 =head2 correspondent_type
58 extra: {custom_type_name => "message_correspondent_type",list => ["to","from","envfrom","cc"]}
61 Type of correspondent (to, from, envfrom, cc, etc.)
65 __PACKAGE__->add_columns(
67 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
69 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73 default_value => "to",
75 custom_type_name => "message_correspondent_type",
76 list => ["to", "from", "envfrom", "cc"],
82 =head1 UNIQUE CONSTRAINTS
84 =head2 C<message_correspondent_message_correspondent_correspondent_t_idx>
90 =item * L</correspondent>
92 =item * L</correspondent_type>
98 __PACKAGE__->add_unique_constraint(
99 "message_correspondent_message_correspondent_correspondent_t_idx",
100 ["message", "correspondent", "correspondent_type"],
109 Related object: L<Debbugs::DB::Result::Correspondent>
113 __PACKAGE__->belongs_to(
115 "Debbugs::DB::Result::Correspondent",
116 { id => "correspondent" },
117 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
124 Related object: L<Debbugs::DB::Result::Message>
128 __PACKAGE__->belongs_to(
130 "Debbugs::DB::Result::Message",
132 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
136 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
137 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:wo2PGK4VpJ1hB8YBJ9QNUg
140 # You can replace this text with custom code or comments, and it will be preserved on regeneration