]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugDoneBy.pm
remove bug_severity
[debbugs.git] / Debbugs / DB / Result / BugDoneBy.pm
1 use utf8;
2 package Debbugs::DB::Result::BugDoneBy;
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::BugDoneBy - Correspondent who finished this bug (emailed -done)
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_done_by>
31
32 =cut
33
34 __PACKAGE__->table("bug_done_by");
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_done_by_id_seq'
44
45 Bug Done By ID
46
47 =head2 bug
48
49   data_type: 'integer'
50   is_foreign_key: 1
51   is_nullable: 0
52
53 Bug number which was done
54
55 =head2 done_by
56
57   data_type: 'integer'
58   is_foreign_key: 1
59   is_nullable: 0
60
61 Bug finisher (connects to correspondent)
62
63 =cut
64
65 __PACKAGE__->add_columns(
66   "id",
67   {
68     data_type         => "integer",
69     is_auto_increment => 1,
70     is_nullable       => 0,
71     sequence          => "bug_done_by_id_seq",
72   },
73   "bug",
74   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75   "done_by",
76   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
77 );
78
79 =head1 PRIMARY KEY
80
81 =over 4
82
83 =item * L</id>
84
85 =back
86
87 =cut
88
89 __PACKAGE__->set_primary_key("id");
90
91 =head1 UNIQUE CONSTRAINTS
92
93 =head2 C<bug_done_by_bug_done_by_idx>
94
95 =over 4
96
97 =item * L</bug>
98
99 =item * L</done_by>
100
101 =back
102
103 =cut
104
105 __PACKAGE__->add_unique_constraint("bug_done_by_bug_done_by_idx", ["bug", "done_by"]);
106
107 =head1 RELATIONS
108
109 =head2 bug
110
111 Type: belongs_to
112
113 Related object: L<Debbugs::DB::Result::Bug>
114
115 =cut
116
117 __PACKAGE__->belongs_to(
118   "bug",
119   "Debbugs::DB::Result::Bug",
120   { id => "bug" },
121   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
122 );
123
124 =head2 done_by
125
126 Type: belongs_to
127
128 Related object: L<Debbugs::DB::Result::Correspondent>
129
130 =cut
131
132 __PACKAGE__->belongs_to(
133   "done_by",
134   "Debbugs::DB::Result::Correspondent",
135   { id => "done_by" },
136   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
137 );
138
139
140 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53
141 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CBqbxeroNjyMIoDmjnAlbw
142
143
144 # You can replace this text with custom code or comments, and it will be preserved on regeneration
145 1;