]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugMessage.pm
d30b445d978c9847428a875cd7151ae3412a2bcb
[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 bug
39
40   data_type: 'integer'
41   is_foreign_key: 1
42   is_nullable: 0
43
44 Bug id (matches bug)
45
46 =head2 message
47
48   data_type: 'integer'
49   is_foreign_key: 1
50   is_nullable: 0
51
52 Message id (matches message)
53
54 =head2 message_number
55
56   data_type: 'integer'
57   is_nullable: 0
58
59 Message number in the bug log
60
61 =head2 bug_log_offset
62
63   data_type: 'integer'
64   is_nullable: 1
65
66 Byte offset in the bug log
67
68 =head2 offset_valid
69
70   data_type: 'timestamp with time zone'
71   is_nullable: 1
72
73 Time offset was valid
74
75 =cut
76
77 __PACKAGE__->add_columns(
78   "bug",
79   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
80   "message",
81   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
82   "message_number",
83   { data_type => "integer", is_nullable => 0 },
84   "bug_log_offset",
85   { data_type => "integer", is_nullable => 1 },
86   "offset_valid",
87   { data_type => "timestamp with time zone", is_nullable => 1 },
88 );
89
90 =head1 RELATIONS
91
92 =head2 bug
93
94 Type: belongs_to
95
96 Related object: L<Debbugs::DB::Result::Bug>
97
98 =cut
99
100 __PACKAGE__->belongs_to(
101   "bug",
102   "Debbugs::DB::Result::Bug",
103   { id => "bug" },
104   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
105 );
106
107 =head2 message
108
109 Type: belongs_to
110
111 Related object: L<Debbugs::DB::Result::Message>
112
113 =cut
114
115 __PACKAGE__->belongs_to(
116   "message",
117   "Debbugs::DB::Result::Message",
118   { id => "message" },
119   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
120 );
121
122
123 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
124 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:WkrYUE1iE8o3fFkzQSkzeQ
125
126
127 # You can replace this text with custom code or comments, and it will be preserved on regeneration
128 1;