package Daje::Database::View::Super::VToolsObjects;
use Mojo::Base 'Daje::Database::Model::Super::Common::Base', -base, -signatures, -async_await;
use v5.40;

# NAME
# ====
#
# Daje::Database::View::Super::VToolsObjects - It creates perl code
#
# SYNOPSIS
# ========
#
#     use Daje::Database::View::Super::VToolsObjects;
#
# DESCRIPTION
# ===========
#
# Daje::Database::View::Super::VToolsObjects is a module that retrieves data from a View
#
# LICENSE
# =======
#
# Copyright (C) janeskil1525.
#
# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
#
# AUTHOR
# ======
#
# janeskil1525 E<lt>janeskil1525@gmail.comE<gt>
#

has 'fields' => "tools_objects_pkey, editnum, insby, insdatetime, modby, moddatetime, tools_version_fkey, name, tools_object_types_fkey, tools_projects_fkey, workflow_fkey";
has 'primary_keys' => "tools_objects_pkey";
has 'foreign_keys' => "tools_version_fkey, workflow_fkey, tools_projects_fkey";
has 'view_name' => "v_tools_objects_workflow_fkey";


async sub load_full_list_p($self) {
    my $result = $self->load_a_full_list(
        $self->view_name,
        $self->fields
    );
    return $result;
}

sub load_tools_objects_fkey($self, $foreign_key_name, $foreign_key) {

    say "$foreign_key_name == $foreign_key";
    return $self->load_fkey(
        $self->view_name, $self->fields(), $foreign_key_name, $foreign_key
    );
}

1;
#################### pod generated by Pod::Autopod - keep this line to make pod updates possible ####################

=head1 NAME


Daje::Database::View::Super::VToolsObjects - It creates perl code



=head1 SYNOPSIS


    use Daje::Database::View::Super::VToolsObjects;



=head1 DESCRIPTION


Daje::Database::View::Super::VToolsObjects is a module that retrieves data from a View



=head1 REQUIRES

L<v5.40> 

L<Mojo::Base> 


=head1 METHODS

=head2 load_tools_objects_fkey($self,

 load_tools_objects_fkey($self,();


=head1 AUTHOR


janeskil1525 E<lt>janeskil1525@gmail.comE<gt>



=head1 LICENSE


Copyright (C) janeskil1525.

This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.



=cut

