2 package Debbugs::DB::Result::CorrespondentFullName;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Debbugs::DB::Result::CorrespondentFullName - Full names of BTS correspondents
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<correspondent_full_name>
36 __PACKAGE__->table("correspondent_full_name");
46 Correspondent ID (matches correspondent)
56 default_value: (empty string)
61 data_type: 'timestamp with time zone'
62 default_value: current_timestamp
64 original: {default_value => \"now()"}
68 __PACKAGE__->add_columns(
70 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
72 { data_type => "text", is_nullable => 0 },
74 { data_type => "text", default_value => "", is_nullable => 0 },
77 data_type => "timestamp with time zone",
78 default_value => \"current_timestamp",
80 original => { default_value => \"now()" },
84 =head1 UNIQUE CONSTRAINTS
86 =head2 C<correspondent_full_name_correspondent_full_name_idx>
90 =item * L</correspondent>
98 __PACKAGE__->add_unique_constraint(
99 "correspondent_full_name_correspondent_full_name_idx",
100 ["correspondent", "full_addr"],
109 Related object: L<Debbugs::DB::Result::Correspondent>
113 __PACKAGE__->belongs_to(
115 "Debbugs::DB::Result::Correspondent",
116 { id => "correspondent" },
117 { is_deferrable => 0, on_delete => "CASCADE", on_update => "CASCADE" },
121 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2020-08-01 13:43:06
122 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3IdwxC/wrKHGQT05XYLDYg
124 sub sqlt_deploy_hook {
125 my ($self, $sqlt_table) = @_;
126 for my $idx (qw(full_name last_seen)) {
127 $sqlt_table->add_index(name => 'correspondent_full_name_idx_'.$idx,