]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Suite.pm
Add bin and source associations
[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
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 =head2 suite_name
46
47   data_type: 'text'
48   is_nullable: 0
49
50 =head2 version
51
52   data_type: 'text'
53   is_nullable: 1
54
55 =head2 codename
56
57   data_type: 'text'
58   is_nullable: 1
59
60 =head2 active
61
62   data_type: 'boolean'
63   default_value: true
64   is_nullable: 1
65
66 =cut
67
68 __PACKAGE__->add_columns(
69   "id",
70   {
71     data_type         => "integer",
72     is_auto_increment => 1,
73     is_nullable       => 0,
74     sequence          => "suite_id_seq",
75   },
76   "suite_name",
77   { data_type => "text", is_nullable => 0 },
78   "version",
79   { data_type => "text", is_nullable => 1 },
80   "codename",
81   { data_type => "text", is_nullable => 1 },
82   "active",
83   { data_type => "boolean", default_value => \"true", is_nullable => 1 },
84 );
85
86 =head1 PRIMARY KEY
87
88 =over 4
89
90 =item * L</id>
91
92 =back
93
94 =cut
95
96 __PACKAGE__->set_primary_key("id");
97
98 =head1 UNIQUE CONSTRAINTS
99
100 =head2 C<suite_suite_name_key>
101
102 =over 4
103
104 =item * L</suite_name>
105
106 =back
107
108 =cut
109
110 __PACKAGE__->add_unique_constraint("suite_suite_name_key", ["suite_name"]);
111
112 =head1 RELATIONS
113
114 =head2 bin_associations
115
116 Type: has_many
117
118 Related object: L<Debbugs::DB::Result::BinAssociation>
119
120 =cut
121
122 __PACKAGE__->has_many(
123   "bin_associations",
124   "Debbugs::DB::Result::BinAssociation",
125   { "foreign.suite" => "self.id" },
126   { cascade_copy => 0, cascade_delete => 0 },
127 );
128
129 =head2 src_associations
130
131 Type: has_many
132
133 Related object: L<Debbugs::DB::Result::SrcAssociation>
134
135 =cut
136
137 __PACKAGE__->has_many(
138   "src_associations",
139   "Debbugs::DB::Result::SrcAssociation",
140   { "foreign.suite" => "self.id" },
141   { cascade_copy => 0, cascade_delete => 0 },
142 );
143
144
145 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2012-11-25 00:09:07
146 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:XTRTAvkuZCBlDB6tSQXDDQ
147
148
149 # You can replace this text with custom code or comments, and it will be preserved on regeneration
150 1;