]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugBinpackage.pm
Switch to severity table
[debbugs.git] / Debbugs / DB / Result / BugBinpackage.pm
1 use utf8;
2 package Debbugs::DB::Result::BugBinpackage;
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::BugBinpackage - Bug <-> binary package 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_binpackage>
31
32 =cut
33
34 __PACKAGE__->table("bug_binpackage");
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_binpackage_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 bin_pkg
54
55   data_type: 'integer'
56   is_foreign_key: 1
57   is_nullable: 0
58
59 Binary package id (matches bin_pkg)
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_binpackage_id_seq",
70   },
71   "bug",
72   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
73   "bin_pkg",
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_binpackage_id_pkg_id>
92
93 =over 4
94
95 =item * L</bug>
96
97 =item * L</bin_pkg>
98
99 =back
100
101 =cut
102
103 __PACKAGE__->add_unique_constraint("bug_binpackage_id_pkg_id", ["bug", "bin_pkg"]);
104
105 =head1 RELATIONS
106
107 =head2 bin_pkg
108
109 Type: belongs_to
110
111 Related object: L<Debbugs::DB::Result::BinPkg>
112
113 =cut
114
115 __PACKAGE__->belongs_to(
116   "bin_pkg",
117   "Debbugs::DB::Result::BinPkg",
118   { id => "bin_pkg" },
119   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
120 );
121
122 =head2 bug
123
124 Type: belongs_to
125
126 Related object: L<Debbugs::DB::Result::Bug>
127
128 =cut
129
130 __PACKAGE__->belongs_to(
131   "bug",
132   "Debbugs::DB::Result::Bug",
133   { id => "bug" },
134   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
135 );
136
137
138 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53
139 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kfOppT635GeL9tvBVm6VNA
140
141
142 # You can replace this text with custom code or comments, and it will be preserved on regeneration
143 1;