2 package Debbugs::DB::Result::Maintainer;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::Maintainer - Package maintainer names
16 use base 'DBIx::Class::Core';
18 =head1 COMPONENTS LOADED
22 =item * L<DBIx::Class::InflateColumn::DateTime>
24 =item * L<DBIx::Class::TimeStamp>
30 __PACKAGE__->load_components("InflateColumn::DateTime", "TimeStamp");
32 =head1 TABLE: C<maintainer>
36 __PACKAGE__->table("maintainer");
45 sequence: 'maintainer_id_seq'
54 Name of package maintainer
66 data_type: 'timestamp with time zone'
67 default_value: current_timestamp
69 original: {default_value => \"now()"}
71 Time maintainer record created
75 data_type: 'timestamp with time zone'
76 default_value: current_timestamp
78 original: {default_value => \"now()"}
80 Time maintainer record modified
84 __PACKAGE__->add_columns(
87 data_type => "integer",
88 is_auto_increment => 1,
90 sequence => "maintainer_id_seq",
93 { data_type => "text", is_nullable => 0 },
95 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
98 data_type => "timestamp with time zone",
99 default_value => \"current_timestamp",
101 original => { default_value => \"now()" },
105 data_type => "timestamp with time zone",
106 default_value => \"current_timestamp",
108 original => { default_value => \"now()" },
122 __PACKAGE__->set_primary_key("id");
124 =head1 UNIQUE CONSTRAINTS
126 =head2 C<maintainer_name_idx>
136 __PACKAGE__->add_unique_constraint("maintainer_name_idx", ["name"]);
144 Related object: L<Debbugs::DB::Result::Correspondent>
148 __PACKAGE__->belongs_to(
150 "Debbugs::DB::Result::Correspondent",
151 { id => "correspondent" },
152 { is_deferrable => 0, on_delete => "NO ACTION", on_update => "NO ACTION" },
159 Related object: L<Debbugs::DB::Result::SrcVer>
163 __PACKAGE__->has_many(
165 "Debbugs::DB::Result::SrcVer",
166 { "foreign.maintainer" => "self.id" },
167 { cascade_copy => 0, cascade_delete => 0 },
171 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2014-11-30 21:56:51
172 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rkpgeXltH2wiC1Us7FIijw
174 sub sqlt_deploy_hook {
175 my ($self, $sqlt_table) = @_;
176 $sqlt_table->add_index(name => 'maintainer_idx_correspondent',
177 fields => [qw(correspondent)],