]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BinVer.pm
ec98991644858e4c1e3e0e90334579ba5a6472f5
[debbugs.git] / Debbugs / DB / Result / BinVer.pm
1 use utf8;
2 package Debbugs::DB::Result::BinVer;
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::BinVer - Binary versions
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<bin_ver>
31
32 =cut
33
34 __PACKAGE__->table("bin_ver");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'bin_ver_id_seq'
44
45 Binary version id
46
47 =head2 bin_pkg
48
49   data_type: 'integer'
50   is_foreign_key: 1
51   is_nullable: 0
52
53 Binary package id (matches bin_pkg)
54
55 =head2 src_ver_id
56
57   data_type: 'integer'
58   is_foreign_key: 1
59   is_nullable: 0
60
61 Source version (matchines src_ver)
62
63 =head2 arch_id
64
65   data_type: 'integer'
66   is_foreign_key: 1
67   is_nullable: 0
68
69 Architecture id (matches arch)
70
71 =head2 ver
72
73   data_type: 'debversion'
74   is_nullable: 0
75
76 Binary version
77
78 =cut
79
80 __PACKAGE__->add_columns(
81   "id",
82   {
83     data_type         => "integer",
84     is_auto_increment => 1,
85     is_nullable       => 0,
86     sequence          => "bin_ver_id_seq",
87   },
88   "bin_pkg",
89   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
90   "src_ver_id",
91   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
92   "arch_id",
93   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
94   "ver",
95   { data_type => "debversion", is_nullable => 0 },
96 );
97
98 =head1 PRIMARY KEY
99
100 =over 4
101
102 =item * L</id>
103
104 =back
105
106 =cut
107
108 __PACKAGE__->set_primary_key("id");
109
110 =head1 UNIQUE CONSTRAINTS
111
112 =head2 C<bin_ver_bin_pkg_id_arch_idx>
113
114 =over 4
115
116 =item * L</bin_pkg>
117
118 =item * L</arch_id>
119
120 =item * L</ver>
121
122 =back
123
124 =cut
125
126 __PACKAGE__->add_unique_constraint("bin_ver_bin_pkg_id_arch_idx", ["bin_pkg", "arch_id", "ver"]);
127
128 =head2 C<bin_ver_src_ver_id_arch_idx>
129
130 =over 4
131
132 =item * L</src_ver_id>
133
134 =item * L</arch_id>
135
136 =back
137
138 =cut
139
140 __PACKAGE__->add_unique_constraint("bin_ver_src_ver_id_arch_idx", ["src_ver_id", "arch_id"]);
141
142 =head1 RELATIONS
143
144 =head2 arch
145
146 Type: belongs_to
147
148 Related object: L<Debbugs::DB::Result::Arch>
149
150 =cut
151
152 __PACKAGE__->belongs_to(
153   "arch",
154   "Debbugs::DB::Result::Arch",
155   { id => "arch_id" },
156   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
157 );
158
159 =head2 bin_associations
160
161 Type: has_many
162
163 Related object: L<Debbugs::DB::Result::BinAssociation>
164
165 =cut
166
167 __PACKAGE__->has_many(
168   "bin_associations",
169   "Debbugs::DB::Result::BinAssociation",
170   { "foreign.bin" => "self.id" },
171   { cascade_copy => 0, cascade_delete => 0 },
172 );
173
174 =head2 bin_pkg
175
176 Type: belongs_to
177
178 Related object: L<Debbugs::DB::Result::BinPkg>
179
180 =cut
181
182 __PACKAGE__->belongs_to(
183   "bin_pkg",
184   "Debbugs::DB::Result::BinPkg",
185   { id => "bin_pkg" },
186   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
187 );
188
189 =head2 src_ver
190
191 Type: belongs_to
192
193 Related object: L<Debbugs::DB::Result::SrcVer>
194
195 =cut
196
197 __PACKAGE__->belongs_to(
198   "src_ver",
199   "Debbugs::DB::Result::SrcVer",
200   { id => "src_ver_id" },
201   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
202 );
203
204
205 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-25 18:43:53
206 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:7Ff81rK1vte+lYz15XofpA
207
208
209 # You can replace this text with custom code or comments, and it will be preserved on regeneration
210 1;