]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Maintainer.pm
801b19f95692e626c9a28e3bf0b0baaf81de0f21
[debbugs.git] / Debbugs / DB / Result / Maintainer.pm
1 use utf8;
2 package Debbugs::DB::Result::Maintainer;
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::Maintainer - Package maintainer names
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<maintainer>
31
32 =cut
33
34 __PACKAGE__->table("maintainer");
35
36 =head1 ACCESSORS
37
38 =head2 id
39
40   data_type: 'integer'
41   is_auto_increment: 1
42   is_nullable: 0
43   sequence: 'maintainer_id_seq'
44
45 Package maintainer id
46
47 =head2 name
48
49   data_type: 'text'
50   is_nullable: 0
51
52 Name of package maintainer
53
54 =head2 correspondent
55
56   data_type: 'integer'
57   is_foreign_key: 1
58   is_nullable: 0
59
60 Correspondent ID
61
62 =head2 created
63
64   data_type: 'timestamp with time zone'
65   default_value: current_timestamp
66   is_nullable: 0
67   original: {default_value => \"now()"}
68
69 Time maintainer record created
70
71 =head2 modified
72
73   data_type: 'timestamp with time zone'
74   default_value: current_timestamp
75   is_nullable: 0
76   original: {default_value => \"now()"}
77
78 Time maintainer record modified
79
80 =cut
81
82 __PACKAGE__->add_columns(
83   "id",
84   {
85     data_type         => "integer",
86     is_auto_increment => 1,
87     is_nullable       => 0,
88     sequence          => "maintainer_id_seq",
89   },
90   "name",
91   { data_type => "text", is_nullable => 0 },
92   "correspondent",
93   { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
94   "created",
95   {
96     data_type     => "timestamp with time zone",
97     default_value => \"current_timestamp",
98     is_nullable   => 0,
99     original      => { default_value => \"now()" },
100   },
101   "modified",
102   {
103     data_type     => "timestamp with time zone",
104     default_value => \"current_timestamp",
105     is_nullable   => 0,
106     original      => { default_value => \"now()" },
107   },
108 );
109
110 =head1 PRIMARY KEY
111
112 =over 4
113
114 =item * L</id>
115
116 =back
117
118 =cut
119
120 __PACKAGE__->set_primary_key("id");
121
122 =head1 UNIQUE CONSTRAINTS
123
124 =head2 C<maintainer_name_key>
125
126 =over 4
127
128 =item * L</name>
129
130 =back
131
132 =cut
133
134 __PACKAGE__->add_unique_constraint("maintainer_name_key", ["name"]);
135
136 =head1 RELATIONS
137
138 =head2 correspondent
139
140 Type: belongs_to
141
142 Related object: L<Debbugs::DB::Result::Correspondent>
143
144 =cut
145
146 __PACKAGE__->belongs_to(
147   "correspondent",
148   "Debbugs::DB::Result::Correspondent",
149   { id => "correspondent" },
150   { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
151 );
152
153 =head2 src_vers
154
155 Type: has_many
156
157 Related object: L<Debbugs::DB::Result::SrcVer>
158
159 =cut
160
161 __PACKAGE__->has_many(
162   "src_vers",
163   "Debbugs::DB::Result::SrcVer",
164   { "foreign.maintainer" => "self.id" },
165   { cascade_copy => 0, cascade_delete => 0 },
166 );
167
168
169 # Created by DBIx::Class::Schema::Loader v0.07036 @ 2013-11-21 21:57:41
170 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E1iNr1IKDcHDQYtmVdsoHA
171
172
173 # You can replace this text with custom code or comments, and it will be preserved on regeneration
174 1;