]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BinPkg.pm
update for correspondent in maintainer
[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 =back
25
26 =cut
27
28 __PACKAGE__->load_components("InflateColumn::DateTime");
29
30 =head1 TABLE: C<bin_pkg>
31
32 =cut
33
34 __PACKAGE__->table("bin_pkg");
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_pkg_id_seq'
44
45 Binary package id
46
47 =head2 pkg
48
49   data_type: 'text'
50   is_nullable: 0
51
52 Binary package name
53
54 =cut
55
56 __PACKAGE__->add_columns(
57   "id",
58   {
59     data_type         => "integer",
60     is_auto_increment => 1,
61     is_nullable       => 0,
62     sequence          => "bin_pkg_id_seq",
63   },
64   "pkg",
65   { data_type => "text", is_nullable => 0 },
66 );
67
68 =head1 PRIMARY KEY
69
70 =over 4
71
72 =item * L</id>
73
74 =back
75
76 =cut
77
78 __PACKAGE__->set_primary_key("id");
79
80 =head1 UNIQUE CONSTRAINTS
81
82 =head2 C<bin_pkg_pkg_key>
83
84 =over 4
85
86 =item * L</pkg>
87
88 =back
89
90 =cut
91
92 __PACKAGE__->add_unique_constraint("bin_pkg_pkg_key", ["pkg"]);
93
94 =head1 RELATIONS
95
96 =head2 bin_vers
97
98 Type: has_many
99
100 Related object: L<Debbugs::DB::Result::BinVer>
101
102 =cut
103
104 __PACKAGE__->has_many(
105   "bin_vers",
106   "Debbugs::DB::Result::BinVer",
107   { "foreign.bin_pkg" => "self.id" },
108   { cascade_copy => 0, cascade_delete => 0 },
109 );
110
111 =head2 bug_binpackages
112
113 Type: has_many
114
115 Related object: L<Debbugs::DB::Result::BugBinpackage>
116
117 =cut
118
119 __PACKAGE__->has_many(
120   "bug_binpackages",
121   "Debbugs::DB::Result::BugBinpackage",
122   { "foreign.bin_pkg" => "self.id" },
123   { cascade_copy => 0, cascade_delete => 0 },
124 );
125
126
127 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
128 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:k32MQX4vbBhX4m9+EqR7ww
129
130
131 # You can replace this text with custom code or comments, and it will be preserved on regeneration
132 1;