]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BugBinpackage.pm
add initial work on sql for debbugs
[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
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 =head2 bin_pkg_id
45
46   data_type: 'integer'
47   is_foreign_key: 1
48   is_nullable: 0
49
50 =cut
51
52 __PACKAGE__->add_columns(
53   "bug_id",
54   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
55   "bin_pkg_id",
56   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
57 );
58
59 =head1 UNIQUE CONSTRAINTS
60
61 =head2 C<bug_binpackage_id_pkg_id>
62
63 =over 4
64
65 =item * L</bug_id>
66
67 =item * L</bin_pkg_id>
68
69 =back
70
71 =cut
72
73 __PACKAGE__->add_unique_constraint("bug_binpackage_id_pkg_id", ["bug_id", "bin_pkg_id"]);
74
75 =head1 RELATIONS
76
77 =head2 bin_pkg
78
79 Type: belongs_to
80
81 Related object: L<Debbugs::DB::Result::BinPkg>
82
83 =cut
84
85 __PACKAGE__->belongs_to(
86   "bin_pkg",
87   "Debbugs::DB::Result::BinPkg",
88   { id => "bin_pkg_id" },
89   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
90 );
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_id" },
104   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
105 );
106
107
108 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 21:09:18
109 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Nu0491VeKbUCBLaDIFAWwA
110
111
112 # You can replace this text with custom code or comments, and it will be preserved on regeneration
113 1;