]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BinVer.pm
fc7ce46fed4106711814c4d4a20fc91c5c9121e3
[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
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
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",
91   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
92   "arch",
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 RELATIONS
111
112 =head2 arch
113
114 Type: belongs_to
115
116 Related object: L<Debbugs::DB::Result::Arch>
117
118 =cut
119
120 __PACKAGE__->belongs_to(
121   "arch",
122   "Debbugs::DB::Result::Arch",
123   { id => "arch" },
124   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
125 );
126
127 =head2 bin_associations
128
129 Type: has_many
130
131 Related object: L<Debbugs::DB::Result::BinAssociation>
132
133 =cut
134
135 __PACKAGE__->has_many(
136   "bin_associations",
137   "Debbugs::DB::Result::BinAssociation",
138   { "foreign.bin" => "self.id" },
139   { cascade_copy => 0, cascade_delete => 0 },
140 );
141
142 =head2 bin_pkg
143
144 Type: belongs_to
145
146 Related object: L<Debbugs::DB::Result::BinPkg>
147
148 =cut
149
150 __PACKAGE__->belongs_to(
151   "bin_pkg",
152   "Debbugs::DB::Result::BinPkg",
153   { id => "bin_pkg" },
154   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
155 );
156
157 =head2 src_ver
158
159 Type: belongs_to
160
161 Related object: L<Debbugs::DB::Result::SrcVer>
162
163 =cut
164
165 __PACKAGE__->belongs_to(
166   "src_ver",
167   "Debbugs::DB::Result::SrcVer",
168   { id => "src_ver" },
169   { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
170 );
171
172
173 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-21 21:57:41
174 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rPiyH454ztK18EaqQD45/w
175
176
177 # You can replace this text with custom code or comments, and it will be preserved on regeneration
178 1;