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