]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/DB/Result/MessageRef.pm
update result classes for new relationships
[debbugs.git] / Debbugs / DB / Result / MessageRef.pm
index e57b1aa0fed6b1fbe7ca50473845419e7e76b9e4..9d9d514673bf28d742fa18abd6d3af61702ca5a2 100644 (file)
@@ -6,7 +6,7 @@ package Debbugs::DB::Result::MessageRef;
 
 =head1 NAME
 
-Debbugs::DB::Result::MessageRef
+Debbugs::DB::Result::MessageRef - Message references
 
 =cut
 
@@ -35,27 +35,93 @@ __PACKAGE__->table("message_refs");
 
 =head1 ACCESSORS
 
+=head2 id
+
+  data_type: 'integer'
+  is_auto_increment: 1
+  is_nullable: 0
+  sequence: 'message_refs_id_seq'
+
 =head2 message
 
   data_type: 'integer'
   is_foreign_key: 1
   is_nullable: 0
 
+Message id (matches message)
+
 =head2 refs
 
   data_type: 'integer'
   is_foreign_key: 1
   is_nullable: 0
 
+Reference id (matches message)
+
+=head2 inferred
+
+  data_type: 'boolean'
+  default_value: false
+  is_nullable: 1
+
+TRUE if this message reference was reconstructed; primarily of use for messages which lack In-Reply-To: or References: headers
+
+=head2 primary_ref
+
+  data_type: 'boolean'
+  default_value: false
+  is_nullable: 1
+
+TRUE if this message->ref came from In-Reply-To: or similar.
+
 =cut
 
 __PACKAGE__->add_columns(
+  "id",
+  {
+    data_type         => "integer",
+    is_auto_increment => 1,
+    is_nullable       => 0,
+    sequence          => "message_refs_id_seq",
+  },
   "message",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
   "refs",
   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
+  "inferred",
+  { data_type => "boolean", default_value => \"false", is_nullable => 1 },
+  "primary_ref",
+  { 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 UNIQUE CONSTRAINTS
+
+=head2 C<message_refs_message_refs_idx>
+
+=over 4
+
+=item * L</message>
+
+=item * L</refs>
+
+=back
+
+=cut
+
+__PACKAGE__->add_unique_constraint("message_refs_message_refs_idx", ["message", "refs"]);
+
 =head1 RELATIONS
 
 =head2 message
@@ -89,8 +155,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 15:37:55
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uCScDuC5TprnuyEjg25eXg
+# Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+vwRG2KAV0YTTXZE0Vv21A
 
 
 # You can replace this text with custom code or comments, and it will be preserved on regeneration