]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/Message.pm
add bug message bits to sql
[debbugs.git] / Debbugs / DB / Result / Message.pm
diff --git a/Debbugs/DB/Result/Message.pm b/Debbugs/DB/Result/Message.pm
new file mode 100644 (file)
index 0000000..491c759
--- /dev/null
@@ -0,0 +1,210 @@
+use utf8;
+package Debbugs::DB::Result::Message;
+
+# Created by DBIx::Class::Schema::Loader
+# DO NOT MODIFY THE FIRST PART OF THIS FILE
+
+=head1 NAME
+
+Debbugs::DB::Result::Message
+
+=cut
+
+use strict;
+use warnings;
+
+use base 'DBIx::Class::Core';
+
+=head1 COMPONENTS LOADED
+
+=over 4
+
+=item * L<DBIx::Class::InflateColumn::DateTime>
+
+=back
+
+=cut
+
+__PACKAGE__->load_components("InflateColumn::DateTime");
+
+=head1 TABLE: C<message>
+
+=cut
+
+__PACKAGE__->table("message");
+
+=head1 ACCESSORS
+
+=head2 id
+
+  data_type: 'integer'
+  is_auto_increment: 1
+  is_nullable: 0
+  sequence: 'message_id_seq'
+
+=head2 msgid
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 from_complete
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 from_addr
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 to_complete
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 to_addr
+
+  data_type: 'text'
+  is_nullable: 1
+
+=head2 subject
+
+  data_type: 'text'
+  default_value: (empty string)
+  is_nullable: 0
+
+=head2 sent_date
+
+  data_type: 'timestamp with time zone'
+  is_nullable: 1
+
+=head2 refs
+
+  data_type: 'text'
+  default_value: (empty string)
+  is_nullable: 0
+
+=head2 spam_score
+
+  data_type: 'double precision'
+  is_nullable: 1
+
+=head2 is_spam
+
+  data_type: 'boolean'
+  default_value: false
+  is_nullable: 1
+
+=cut
+
+__PACKAGE__->add_columns(
+  "id",
+  {
+    data_type         => "integer",
+    is_auto_increment => 1,
+    is_nullable       => 0,
+    sequence          => "message_id_seq",
+  },
+  "msgid",
+  { data_type => "text", is_nullable => 1 },
+  "from_complete",
+  { data_type => "text", is_nullable => 1 },
+  "from_addr",
+  { data_type => "text", is_nullable => 1 },
+  "to_complete",
+  { data_type => "text", is_nullable => 1 },
+  "to_addr",
+  { data_type => "text", is_nullable => 1 },
+  "subject",
+  { data_type => "text", default_value => "", is_nullable => 0 },
+  "sent_date",
+  { data_type => "timestamp with time zone", is_nullable => 1 },
+  "refs",
+  { data_type => "text", default_value => "", is_nullable => 0 },
+  "spam_score",
+  { data_type => "double precision", is_nullable => 1 },
+  "is_spam",
+  { data_type => "boolean", default_value => \"false", is_nullable => 1 },
+);
+
+=head1 PRIMARY KEY
+
+=over 4
+
+=item * L</id>
+
+=back
+
+=cut
+
+__PACKAGE__->set_primary_key("id");
+
+=head1 RELATIONS
+
+=head2 bug_messages
+
+Type: has_many
+
+Related object: L<Debbugs::DB::Result::BugMessage>
+
+=cut
+
+__PACKAGE__->has_many(
+  "bug_messages",
+  "Debbugs::DB::Result::BugMessage",
+  { "foreign.message" => "self.id" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 message_corespondents
+
+Type: has_many
+
+Related object: L<Debbugs::DB::Result::MessageCorespondent>
+
+=cut
+
+__PACKAGE__->has_many(
+  "message_corespondents",
+  "Debbugs::DB::Result::MessageCorespondent",
+  { "foreign.message" => "self.id" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 message_refs_messages
+
+Type: has_many
+
+Related object: L<Debbugs::DB::Result::MessageRef>
+
+=cut
+
+__PACKAGE__->has_many(
+  "message_refs_messages",
+  "Debbugs::DB::Result::MessageRef",
+  { "foreign.message" => "self.id" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+=head2 message_refs_refs
+
+Type: has_many
+
+Related object: L<Debbugs::DB::Result::MessageRef>
+
+=cut
+
+__PACKAGE__->has_many(
+  "message_refs_refs",
+  "Debbugs::DB::Result::MessageRef",
+  { "foreign.refs" => "self.id" },
+  { cascade_copy => 0, cascade_delete => 0 },
+);
+
+
+# Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 15:37:55
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:VkveOmRidQ9gNRBCjKyPEQ
+
+
+# You can replace this text with custom code or comments, and it will be preserved on regeneration
+1;