]> git.donarmstrong.com Git - debbugs.git/blob - Debbugs/DB/Result/Maintainer.pm
update result classes for new relationships
[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 created
55
56   data_type: 'timestamp with time zone'
57   default_value: current_timestamp
58   is_nullable: 0
59   original: {default_value => \"now()"}
60
61 Time maintainer record created
62
63 =head2 modified
64
65   data_type: 'timestamp with time zone'
66   default_value: current_timestamp
67   is_nullable: 0
68   original: {default_value => \"now()"}
69
70 Time maintainer record modified
71
72 =cut
73
74 __PACKAGE__->add_columns(
75   "id",
76   {
77     data_type         => "integer",
78     is_auto_increment => 1,
79     is_nullable       => 0,
80     sequence          => "maintainer_id_seq",
81   },
82   "name",
83   { data_type => "text", is_nullable => 0 },
84   "created",
85   {
86     data_type     => "timestamp with time zone",
87     default_value => \"current_timestamp",
88     is_nullable   => 0,
89     original      => { default_value => \"now()" },
90   },
91   "modified",
92   {
93     data_type     => "timestamp with time zone",
94     default_value => \"current_timestamp",
95     is_nullable   => 0,
96     original      => { default_value => \"now()" },
97   },
98 );
99
100 =head1 PRIMARY KEY
101
102 =over 4
103
104 =item * L</id>
105
106 =back
107
108 =cut
109
110 __PACKAGE__->set_primary_key("id");
111
112 =head1 UNIQUE CONSTRAINTS
113
114 =head2 C<maintainer_name_key>
115
116 =over 4
117
118 =item * L</name>
119
120 =back
121
122 =cut
123
124 __PACKAGE__->add_unique_constraint("maintainer_name_key", ["name"]);
125
126 =head1 RELATIONS
127
128 =head2 src_vers
129
130 Type: has_many
131
132 Related object: L<Debbugs::DB::Result::SrcVer>
133
134 =cut
135
136 __PACKAGE__->has_many(
137   "src_vers",
138   "Debbugs::DB::Result::SrcVer",
139   { "foreign.maintainer_id" => "self.id" },
140   { cascade_copy => 0, cascade_delete => 0 },
141 );
142
143
144 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-03-27 18:54:20
145 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pjSawHrI2qYqUHgkdxgh8g
146
147
148 # You can replace this text with custom code or comments, and it will be preserved on regeneration
149 1;