]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugTag.pm
update for correspondent in maintainer
[debbugs.git] / Debbugs / DB / Result / BugTag.pm
1 use utf8;
2 package Debbugs::DB::Result::BugTag;
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::BugTag - Bug <-> tag mapping
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_tag>
31
32 =cut
33
34 __PACKAGE__->table("bug_tag");
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_tag_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 tag
54
55   data_type: 'integer'
56   is_foreign_key: 1
57   is_nullable: 0
58
59 Tag id (matches tag)
60
61 =cut
62
63 __PACKAGE__->add_columns(
64   "id",
65   {
66     data_type         => "integer",
67     is_auto_increment => 1,
68     is_nullable       => 0,
69     sequence          => "bug_tag_id_seq",
70   },
71   "bug",
72   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73   "tag",
74   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
75 );
76
77 =head1 PRIMARY KEY
78
79 =over 4
80
81 =item * L</id>
82
83 =back
84
85 =cut
86
87 __PACKAGE__->set_primary_key("id");
88
89 =head1 UNIQUE CONSTRAINTS
90
91 =head2 C<bug_tag_bug_tag_id>
92
93 =over 4
94
95 =item * L</bug>
96
97 =item * L</tag>
98
99 =back
100
101 =cut
102
103 __PACKAGE__->add_unique_constraint("bug_tag_bug_tag_id", ["bug", "tag"]);
104
105 =head1 RELATIONS
106
107 =head2 bug
108
109 Type: belongs_to
110
111 Related object: L<Debbugs::DB::Result::Bug>
112
113 =cut
114
115 __PACKAGE__->belongs_to(
116   "bug",
117   "Debbugs::DB::Result::Bug",
118   { id => "bug" },
119   { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
120 );
121
122 =head2 tag
123
124 Type: belongs_to
125
126 Related object: L<Debbugs::DB::Result::Tag>
127
128 =cut
129
130 __PACKAGE__->belongs_to(
131   "tag",
132   "Debbugs::DB::Result::Tag",
133   { id => "tag" },
134   { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
135 );
136
137
138 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
139 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Cu5Qrkpu/4fEUNUBgUEmWw
140
141
142 # You can replace this text with custom code or comments, and it will be preserved on regeneration
143 1;