]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugMessage.pm
7870ed572f8771e575061414481d05fe20479231
[debbugs.git] / Debbugs / DB / Result / BugMessage.pm
1 use utf8;
2 package Debbugs::DB::Result::BugMessage;
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::BugMessage
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<bug_message>
31
32 =cut
33
34 __PACKAGE__->table("bug_message");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'bug_message_id_seq'
44
45 =head2 bug
46
47   data_type: 'integer'
48   is_foreign_key: 1
49   is_nullable: 0
50
51 Bug id (matches bug)
52
53 =head2 message
54
55   data_type: 'integer'
56   is_foreign_key: 1
57   is_nullable: 0
58
59 Message id (matches message)
60
61 =head2 message_number
62
63   data_type: 'integer'
64   is_nullable: 0
65
66 Message number in the bug log
67
68 =head2 bug_log_offset
69
70   data_type: 'integer'
71   is_nullable: 1
72
73 Byte offset in the bug log
74
75 =head2 offset_valid
76
77   data_type: 'timestamp with time zone'
78   is_nullable: 1
79
80 Time offset was valid
81
82 =cut
83
84 __PACKAGE__->add_columns(
85   "id",
86   {
87     data_type         => "integer",
88     is_auto_increment => 1,
89     is_nullable       => 0,
90     sequence          => "bug_message_id_seq",
91   },
92   "bug",
93   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
94   "message",
95   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
96   "message_number",
97   { data_type => "integer", is_nullable => 0 },
98   "bug_log_offset",
99   { data_type => "integer", is_nullable => 1 },
100   "offset_valid",
101   { data_type => "timestamp with time zone", is_nullable => 1 },
102 );
103
104 =head1 PRIMARY KEY
105
106 =over 4
107
108 =item * L</id>
109
110 =back
111
112 =cut
113
114 __PACKAGE__->set_primary_key("id");
115
116 =head1 RELATIONS
117
118 =head2 bug
119
120 Type: belongs_to
121
122 Related object: L<Debbugs::DB::Result::Bug>
123
124 =cut
125
126 __PACKAGE__->belongs_to(
127   "bug",
128   "Debbugs::DB::Result::Bug",
129   { id => "bug" },
130   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
131 );
132
133 =head2 message
134
135 Type: belongs_to
136
137 Related object: L<Debbugs::DB::Result::Message>
138
139 =cut
140
141 __PACKAGE__->belongs_to(
142   "message",
143   "Debbugs::DB::Result::Message",
144   { id => "message" },
145   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
146 );
147
148
149 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
150 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mDjAtzaj5diA9b0YFK/7cA
151
152
153 # You can replace this text with custom code or comments, and it will be preserved on regeneration
154 1;