This gives us a place to put helper functions that act on entire tables, not just individual records. This should be a backwards compatible change, except in places we're manually using result class names.
97 lines
1.4 KiB
Perl
97 lines
1.4 KiB
Perl
use utf8;
|
|
package Hydra::Schema::Result::CachedPathInputs;
|
|
|
|
# Created by DBIx::Class::Schema::Loader
|
|
# DO NOT MODIFY THE FIRST PART OF THIS FILE
|
|
|
|
=head1 NAME
|
|
|
|
Hydra::Schema::Result::CachedPathInputs
|
|
|
|
=cut
|
|
|
|
use strict;
|
|
use warnings;
|
|
|
|
use base 'DBIx::Class::Core';
|
|
|
|
=head1 COMPONENTS LOADED
|
|
|
|
=over 4
|
|
|
|
=item * L<Hydra::Component::ToJSON>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->load_components("+Hydra::Component::ToJSON");
|
|
|
|
=head1 TABLE: C<cachedpathinputs>
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->table("cachedpathinputs");
|
|
|
|
=head1 ACCESSORS
|
|
|
|
=head2 srcpath
|
|
|
|
data_type: 'text'
|
|
is_nullable: 0
|
|
|
|
=head2 timestamp
|
|
|
|
data_type: 'integer'
|
|
is_nullable: 0
|
|
|
|
=head2 lastseen
|
|
|
|
data_type: 'integer'
|
|
is_nullable: 0
|
|
|
|
=head2 sha256hash
|
|
|
|
data_type: 'text'
|
|
is_nullable: 0
|
|
|
|
=head2 storepath
|
|
|
|
data_type: 'text'
|
|
is_nullable: 0
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->add_columns(
|
|
"srcpath",
|
|
{ data_type => "text", is_nullable => 0 },
|
|
"timestamp",
|
|
{ data_type => "integer", is_nullable => 0 },
|
|
"lastseen",
|
|
{ data_type => "integer", is_nullable => 0 },
|
|
"sha256hash",
|
|
{ data_type => "text", is_nullable => 0 },
|
|
"storepath",
|
|
{ data_type => "text", is_nullable => 0 },
|
|
);
|
|
|
|
=head1 PRIMARY KEY
|
|
|
|
=over 4
|
|
|
|
=item * L</srcpath>
|
|
|
|
=item * L</sha256hash>
|
|
|
|
=back
|
|
|
|
=cut
|
|
|
|
__PACKAGE__->set_primary_key("srcpath", "sha256hash");
|
|
|
|
|
|
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-08-26 12:02:36
|
|
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PZAkRje22dqftpqfU2jyGg
|
|
|
|
1;
|