]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Suite.pm
update for correspondent in maintainer
[debbugs.git] / Debbugs / DB / Result / Suite.pm
1 use utf8;
2 package Debbugs::DB::Result::Suite;
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::Suite - Debian Release Suite (stable, testing, etc.)
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<suite>
31
32 =cut
33
34 __PACKAGE__->table("suite");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'suite_id_seq'
44
45 Suite id
46
47 =head2 suite_name
48
49   data_type: 'text'
50   is_nullable: 0
51
52 Suite name
53
54 =head2 version
55
56   data_type: 'text'
57   is_nullable: 1
58
59 Suite version; NULL if there is no appropriate version
60
61 =head2 codename
62
63   data_type: 'text'
64   is_nullable: 1
65
66 Suite codename
67
68 =head2 active
69
70   data_type: 'boolean'
71   default_value: true
72   is_nullable: 1
73
74 TRUE if the suite is still accepting uploads
75
76 =cut
77
78 __PACKAGE__->add_columns(
79   "id",
80   {
81     data_type         => "integer",
82     is_auto_increment => 1,
83     is_nullable       => 0,
84     sequence          => "suite_id_seq",
85   },
86   "suite_name",
87   { data_type => "text", is_nullable => 0 },
88   "version",
89   { data_type => "text", is_nullable => 1 },
90   "codename",
91   { data_type => "text", is_nullable => 1 },
92   "active",
93   { data_type => "boolean", default_value => \"true", is_nullable => 1 },
94 );
95
96 =head1 PRIMARY KEY
97
98 =over 4
99
100 =item * L</id>
101
102 =back
103
104 =cut
105
106 __PACKAGE__->set_primary_key("id");
107
108 =head1 UNIQUE CONSTRAINTS
109
110 =head2 C<suite_suite_name_key>
111
112 =over 4
113
114 =item * L</suite_name>
115
116 =back
117
118 =cut
119
120 __PACKAGE__->add_unique_constraint("suite_suite_name_key", ["suite_name"]);
121
122 =head1 RELATIONS
123
124 =head2 bin_associations
125
126 Type: has_many
127
128 Related object: L<Debbugs::DB::Result::BinAssociation>
129
130 =cut
131
132 __PACKAGE__->has_many(
133   "bin_associations",
134   "Debbugs::DB::Result::BinAssociation",
135   { "foreign.suite" => "self.id" },
136   { cascade_copy => 0, cascade_delete => 0 },
137 );
138
139 =head2 bug_status_caches
140
141 Type: has_many
142
143 Related object: L<Debbugs::DB::Result::BugStatusCache>
144
145 =cut
146
147 __PACKAGE__->has_many(
148   "bug_status_caches",
149   "Debbugs::DB::Result::BugStatusCache",
150   { "foreign.suite" => "self.id" },
151   { cascade_copy => 0, cascade_delete => 0 },
152 );
153
154 =head2 src_associations
155
156 Type: has_many
157
158 Related object: L<Debbugs::DB::Result::SrcAssociation>
159
160 =cut
161
162 __PACKAGE__->has_many(
163   "src_associations",
164   "Debbugs::DB::Result::SrcAssociation",
165   { "foreign.suite" => "self.id" },
166   { cascade_copy => 0, cascade_delete => 0 },
167 );
168
169
170 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-10-09 20:27:54
171 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xIVtTLCQc72u8xQOuwQhrQ
172
173
174 # You can replace this text with custom code or comments, and it will be preserved on regeneration
175 1;