]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BinVer.pm
432cbb1b773ba01213ccaba0737042327b3e58b9
[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
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 bin_pkg_id
39
40   data_type: 'integer'
41   is_foreign_key: 1
42   is_nullable: 0
43
44 =head2 src_ver_id
45
46   data_type: 'integer'
47   is_foreign_key: 1
48   is_nullable: 0
49
50 =head2 arch_id
51
52   data_type: 'integer'
53   is_foreign_key: 1
54   is_nullable: 0
55
56 =head2 ver
57
58   data_type: 'text'
59   is_nullable: 0
60
61 =cut
62
63 __PACKAGE__->add_columns(
64   "bin_pkg_id",
65   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
66   "src_ver_id",
67   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
68   "arch_id",
69   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
70   "ver",
71   { data_type => "text", is_nullable => 0 },
72 );
73
74 =head1 UNIQUE CONSTRAINTS
75
76 =head2 C<bin_ver_bin_pkg_id_arch_idx>
77
78 =over 4
79
80 =item * L</bin_pkg_id>
81
82 =item * L</arch_id>
83
84 =back
85
86 =cut
87
88 __PACKAGE__->add_unique_constraint("bin_ver_bin_pkg_id_arch_idx", ["bin_pkg_id", "arch_id"]);
89
90 =head2 C<bin_ver_src_ver_id_arch_idx>
91
92 =over 4
93
94 =item * L</src_ver_id>
95
96 =item * L</arch_id>
97
98 =back
99
100 =cut
101
102 __PACKAGE__->add_unique_constraint("bin_ver_src_ver_id_arch_idx", ["src_ver_id", "arch_id"]);
103
104 =head1 RELATIONS
105
106 =head2 arch
107
108 Type: belongs_to
109
110 Related object: L<Debbugs::DB::Result::Arch>
111
112 =cut
113
114 __PACKAGE__->belongs_to(
115   "arch",
116   "Debbugs::DB::Result::Arch",
117   { id => "arch_id" },
118   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
119 );
120
121 =head2 bin_pkg
122
123 Type: belongs_to
124
125 Related object: L<Debbugs::DB::Result::BinPkg>
126
127 =cut
128
129 __PACKAGE__->belongs_to(
130   "bin_pkg",
131   "Debbugs::DB::Result::BinPkg",
132   { id => "bin_pkg_id" },
133   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
134 );
135
136 =head2 src_ver
137
138 Type: belongs_to
139
140 Related object: L<Debbugs::DB::Result::SrcVer>
141
142 =cut
143
144 __PACKAGE__->belongs_to(
145   "src_ver",
146   "Debbugs::DB::Result::SrcVer",
147   { id => "src_ver_id" },
148   { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
149 );
150
151
152 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 10:25:29
153 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:0AnavpmoUrdrgChtyIBRBg
154
155
156 # You can replace this text with custom code or comments, and it will be preserved on regeneration
157 1;