]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/BinPkg.pm
add initial work on sql for debbugs
[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
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 =head2 pkg
46
47   data_type: 'text'
48   is_nullable: 0
49
50 =cut
51
52 __PACKAGE__->add_columns(
53   "id",
54   {
55     data_type         => "integer",
56     is_auto_increment => 1,
57     is_nullable       => 0,
58     sequence          => "bin_pkg_id_seq",
59   },
60   "pkg",
61   { data_type => "text", is_nullable => 0 },
62 );
63
64 =head1 PRIMARY KEY
65
66 =over 4
67
68 =item * L</id>
69
70 =back
71
72 =cut
73
74 __PACKAGE__->set_primary_key("id");
75
76 =head1 UNIQUE CONSTRAINTS
77
78 =head2 C<bin_pkg_pkg_key>
79
80 =over 4
81
82 =item * L</pkg>
83
84 =back
85
86 =cut
87
88 __PACKAGE__->add_unique_constraint("bin_pkg_pkg_key", ["pkg"]);
89
90 =head1 RELATIONS
91
92 =head2 bin_vers
93
94 Type: has_many
95
96 Related object: L<Debbugs::DB::Result::BinVer>
97
98 =cut
99
100 __PACKAGE__->has_many(
101   "bin_vers",
102   "Debbugs::DB::Result::BinVer",
103   { "foreign.bin_pkg_id" => "self.id" },
104   { cascade_copy => 0, cascade_delete => 0 },
105 );
106
107 =head2 bug_binpackages
108
109 Type: has_many
110
111 Related object: L<Debbugs::DB::Result::BugBinpackage>
112
113 =cut
114
115 __PACKAGE__->has_many(
116   "bug_binpackages",
117   "Debbugs::DB::Result::BugBinpackage",
118   { "foreign.bin_pkg_id" => "self.id" },
119   { cascade_copy => 0, cascade_delete => 0 },
120 );
121
122
123 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-07-17 21:09:18
124 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:yA4czi38S+fA2P6aKn+UAw
125
126
127 # You can replace this text with custom code or comments, and it will be preserved on regeneration
128 1;