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>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<message_correspondent>
36 __PACKAGE__->table("message_correspondent");
45 sequence: 'message_correspondent_id_seq'
53 Message id (matches message)
61 Correspondent (matches correspondent)
63 =head2 correspondent_type
67 extra: {custom_type_name => "message_correspondent_type",list => ["to","from","envfrom","cc"]}
70 Type of correspondent (to, from, envfrom, cc, etc.)
74 __PACKAGE__->add_columns(
77 data_type => "integer",
78 is_auto_increment => 1,
80 sequence => "message_correspondent_id_seq",
83 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
85 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
89 default_value => "to",
91 custom_type_name => "message_correspondent_type",
92 list => ["to", "from", "envfrom", "cc"],
108 __PACKAGE__->set_primary_key("id");
110 =head1 UNIQUE CONSTRAINTS
112 =head2 C<message_correspondent_message_correspondent_correspondent_t_idx>
118 =item * L</correspondent>
120 =item * L</correspondent_type>
126 __PACKAGE__->add_unique_constraint(
127 "message_correspondent_message_correspondent_correspondent_t_idx",
128 ["message", "correspondent", "correspondent_type"],
137 Related object: L<Debbugs::DB::Result::Correspondent>
141 __PACKAGE__->belongs_to(
143 "Debbugs::DB::Result::Correspondent",
144 { id => "correspondent" },
145 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
152 Related object: L<Debbugs::DB::Result::Message>
156 __PACKAGE__->belongs_to(
158 "Debbugs::DB::Result::Message",
160 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
164 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
165 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:HiQOa7XliOu8PNC8DxQPnQ
168 # You can replace this text with custom code or comments, and it will be preserved on regeneration