]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BinPkg.pm
5747fe084718f1a26eac32398a52c9b162279465
[debbugs.git] / Debbugs / DB / Result / BinPkg.pm
1 use utf8;
2 package Debbugs::DB::Result::BinPkg;
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::BinPkg - Binary packages
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 =item * L<DBIx::Class::TimeStamp>
25
26 =back
27
28 =cut
29
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
31
32 =head1 TABLE: C<bin_pkg>
33
34 =cut
35
36 __PACKAGE__->table("bin_pkg");
37
38 =head1 ACCESSORS
39
40 =head2 id
41
42   data_type: 'integer'
43   is_auto_increment: 1
44   is_nullable: 0
45   sequence: 'bin_pkg_id_seq'
46
47 Binary package id
48
49 =head2 pkg
50
51   data_type: 'text'
52   is_nullable: 0
53
54 Binary package name
55
56 =cut
57
58 __PACKAGE__->add_columns(
59   "id",
60   {
61     data_type         => "integer",
62     is_auto_increment => 1,
63     is_nullable       => 0,
64     sequence          => "bin_pkg_id_seq",
65   },
66   "pkg",
67   { data_type => "text", is_nullable => 0 },
68 );
69
70 =head1 PRIMARY KEY
71
72 =over 4
73
74 =item * L</id>
75
76 =back
77
78 =cut
79
80 __PACKAGE__->set_primary_key("id");
81
82 =head1 UNIQUE CONSTRAINTS
83
84 =head2 C<bin_pkg_pkg_key>
85
86 =over 4
87
88 =item * L</pkg>
89
90 =back
91
92 =cut
93
94 __PACKAGE__->add_unique_constraint("bin_pkg_pkg_key", ["pkg"]);
95
96 =head1 RELATIONS
97
98 =head2 bin_vers
99
100 Type: has_many
101
102 Related object: L<Debbugs::DB::Result::BinVer>
103
104 =cut
105
106 __PACKAGE__->has_many(
107   "bin_vers",
108   "Debbugs::DB::Result::BinVer",
109   { "foreign.bin_pkg" => "self.id" },
110   { cascade_copy => 0, cascade_delete => 0 },
111 );
112
113 =head2 bug_affects_binpackages
114
115 Type: has_many
116
117 Related object: L<Debbugs::DB::Result::BugAffectsBinpackage>
118
119 =cut
120
121 __PACKAGE__->has_many(
122   "bug_affects_binpackages",
123   "Debbugs::DB::Result::BugAffectsBinpackage",
124   { "foreign.bin_pkg" => "self.id" },
125   { cascade_copy => 0, cascade_delete => 0 },
126 );
127
128 =head2 bug_binpackages
129
130 Type: has_many
131
132 Related object: L<Debbugs::DB::Result::BugBinpackage>
133
134 =cut
135
136 __PACKAGE__->has_many(
137   "bug_binpackages",
138   "Debbugs::DB::Result::BugBinpackage",
139   { "foreign.bin_pkg" => "self.id" },
140   { cascade_copy => 0, cascade_delete => 0 },
141 );
142
143
144 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:My1zg7yJ4SSXL78poec5ag
146
147
148 # You can replace this text with custom code or comments, and it will be preserved on regeneration
149 1;