2 package Debbugs::DB::Result::MessageCorespondent;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::MessageCorespondent
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_corespondent>
34 __PACKAGE__->table("message_corespondent");
50 =head2 corespondent_type
54 extra: {custom_type_name => "message_corespondent_type",list => ["to","from","envfrom","cc"]}
59 __PACKAGE__->add_columns(
61 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
63 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
67 default_value => "to",
69 custom_type_name => "message_corespondent_type",
70 list => ["to", "from", "envfrom", "cc"],
76 =head1 UNIQUE CONSTRAINTS
78 =head2 C<message_corespondent_message_corespondent_corespondent_type_idx>
84 =item * L</corespondent>
86 =item * L</corespondent_type>
92 __PACKAGE__->add_unique_constraint(
93 "message_corespondent_message_corespondent_corespondent_type_idx",
94 ["message", "corespondent", "corespondent_type"],
103 Related object: L<Debbugs::DB::Result::Corespondent>
107 __PACKAGE__->belongs_to(
109 "Debbugs::DB::Result::Corespondent",
110 { id => "corespondent" },
111 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
118 Related object: L<Debbugs::DB::Result::Message>
122 __PACKAGE__->belongs_to(
124 "Debbugs::DB::Result::Message",
126 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
130 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 15:37:55
131 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Qc6K0oFKcXSuaQhTBgRCaw
134 # You can replace this text with custom code or comments, and it will be preserved on regeneration