]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/MessageRef.pm
e57b1aa0fed6b1fbe7ca50473845419e7e76b9e4
[debbugs.git] / Debbugs / DB / Result / MessageRef.pm
1 use utf8;
2 package Debbugs::DB::Result::MessageRef;
3
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7 =head1 NAME
8
9 Debbugs::DB::Result::MessageRef
10
11 =cut
12
13 use strict;
14 use warnings;
15
16 use base 'DBIx::Class::Core';
17
18 =head1 COMPONENTS LOADED
19
20 =over 4
21
22 =item * L<DBIx::Class::InflateColumn::DateTime>
23
24 =back
25
26 =cut
27
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29
30 =head1 TABLE: C<message_refs>
31
32 =cut
33
34 __PACKAGE__->table("message_refs");
35
36 =head1 ACCESSORS
37
38 =head2 message
39
40   data_type: 'integer'
41   is_foreign_key: 1
42   is_nullable: 0
43
44 =head2 refs
45
46   data_type: 'integer'
47   is_foreign_key: 1
48   is_nullable: 0
49
50 =cut
51
52 __PACKAGE__->add_columns(
53   "message",
54   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55   "refs",
56   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
57 );
58
59 =head1 RELATIONS
60
61 =head2 message
62
63 Type: belongs_to
64
65 Related object: L<Debbugs::DB::Result::Message>
66
67 =cut
68
69 __PACKAGE__->belongs_to(
70   "message",
71   "Debbugs::DB::Result::Message",
72   { id => "message" },
73   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
74 );
75
76 =head2 ref
77
78 Type: belongs_to
79
80 Related object: L<Debbugs::DB::Result::Message>
81
82 =cut
83
84 __PACKAGE__->belongs_to(
85   "ref",
86   "Debbugs::DB::Result::Message",
87   { id => "refs" },
88   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
89 );
90
91
92 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-29 15:37:55
93 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:uCScDuC5TprnuyEjg25eXg
94
95
96 # You can replace this text with custom code or comments, and it will be preserved on regeneration
97 1;