]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugBinpackage.pm
update db::result class
[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 bug_id
39
40   data_type: 'integer'
41   is_foreign_key: 1
42   is_nullable: 0
43
44 Bug id (matches bug)
45
46 =head2 bin_pkg_id
47
48   data_type: 'integer'
49   is_foreign_key: 1
50   is_nullable: 0
51
52 Binary package id (matches bin_pkg)
53
54 =cut
55
56 __PACKAGE__->add_columns(
57   "bug_id",
58   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
59   "bin_pkg_id",
60   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
61 );
62
63 =head1 UNIQUE CONSTRAINTS
64
65 =head2 C<bug_binpackage_id_pkg_id>
66
67 =over 4
68
69 =item * L</bug_id>
70
71 =item * L</bin_pkg_id>
72
73 =back
74
75 =cut
76
77 __PACKAGE__->add_unique_constraint("bug_binpackage_id_pkg_id", ["bug_id", "bin_pkg_id"]);
78
79 =head1 RELATIONS
80
81 =head2 bin_pkg
82
83 Type: belongs_to
84
85 Related object: L<Debbugs::DB::Result::BinPkg>
86
87 =cut
88
89 __PACKAGE__->belongs_to(
90   "bin_pkg",
91   "Debbugs::DB::Result::BinPkg",
92   { id => "bin_pkg_id" },
93   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
94 );
95
96 =head2 bug
97
98 Type: belongs_to
99
100 Related object: L<Debbugs::DB::Result::Bug>
101
102 =cut
103
104 __PACKAGE__->belongs_to(
105   "bug",
106   "Debbugs::DB::Result::Bug",
107   { id => "bug_id" },
108   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
109 );
110
111
112 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-01-22 21:35:43
113 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:2QtRdBjEVaUYmfqY7rWA6g
114
115
116 # You can replace this text with custom code or comments, and it will be preserved on regeneration
117 1;