| 1 | package Daje::Database::View::Super::vUsersUsers; | ||
| 2 | use Mojo::Base 'Daje::Database::Model::Super::Common::Base', -base, -signatures, -async_await; | ||
| 3 | use v5.42; | ||
| 4 | |||
| 5 | # NAME | ||
| 6 | # ==== | ||
| 7 | # | ||
| 8 | # Daje::Database::View::Super::vUsersUsers - Daje db model | ||
| 9 | # | ||
| 10 | # SYNOPSIS | ||
| 11 | # ======== | ||
| 12 | # | ||
| 13 | # | ||
| 14 | # use Daje::Database::View::Super::vUsersUsers; | ||
| 15 | # | ||
| 16 | # my $table = Daje::Database::View::Super::vUsersUsers->new(db => $db); | ||
| 17 | # | ||
| 18 | # my $result = $table->load_users_users_pkey($self, $users_users_pkey); | ||
| 19 | # | ||
| 20 | # my $result = $table->load_users_workflow_fkey($self, $users_workflow_fkey); | ||
| 21 | # | ||
| 22 | # my $result = $table->load_users_role_fkey($self, $users_role_fkey); | ||
| 23 | # | ||
| 24 | # my $result = $table->load_users_lan_fkey($self, $users_lan_fkey); | ||
| 25 | ## | ||
| 26 | # | ||
| 27 | # | ||
| 28 | # DESCRIPTION | ||
| 29 | # =========== | ||
| 30 | # | ||
| 31 | # Daje::Database::View::Super::vUsersUsers is a View super class | ||
| 32 | # | ||
| 33 | # METHODS | ||
| 34 | # ======= | ||
| 35 | # | ||
| 36 | # | ||
| 37 | # LICENSE | ||
| 38 | # ======= | ||
| 39 | # | ||
| 40 | # Copyright (C) janeskil1525. | ||
| 41 | # | ||
| 42 | # This library is free software; you can redistribute it and/or modify | ||
| 43 | # it under the same terms as Perl itself. | ||
| 44 | # | ||
| 45 | # AUTHOR | ||
| 46 | # ====== | ||
| 47 | # | ||
| 48 | # janeskil1525 E<lt>janeskil1525@gmail.com | ||
| 49 | # | ||
| 50 | |||
| 51 | # This file is generated automatically by Daje Tools 2026-04-01 11:11:57. | ||
| 52 | # It will be re-created by Daje Tools again and any changes | ||
| 53 | # will be over written. | ||
| 54 | # | ||
| 55 | # <!-- Autogenerated file 2026-04-01 11:11:57 --> | ||
| 56 | |||
| 57 | our $VERSION = '0.01'; | ||
| 58 | |||
| 59 | has 'fields' => '"users_users_pkey", "editnum", "insby", "insdatetime", "modby", "moddatetime","users_workflow_fkey","avatar","password","active","mail","name","comment","position","biography","authorities_role_fkey","phone","department","employed","languages_lan_fkey","verified","country","city","zipcode","addressline1","region","addressline2","officelocation"'; | ||
| 60 | has 'primary_key_name' => "users_users_pkey"; | ||
| 61 | has 'table_name' => "v_users_users"; | ||
| 62 | |||
| 63 | |||
| 64 | async sub load_users_workflow_fkey_p($self, $users_workflow_fkey) { | ||
| 65 | return $self->load_users_workflow_fkey($users_workflow_fkey); | ||
| 66 | } | ||
| 67 | |||
| 68 | sub load_users_workflow_fkey($self, $users_workflow_fkey) { | ||
| 69 | return $self->load_fkey( | ||
| 70 | $self->table_name, $self->fields(), "users_workflow_fkey", $users_workflow_fkey | ||
| 71 | ); | ||
| 72 | } | ||
| 73 | async sub load_authorities_role_fkey_p($self, $authorities_role_fkey) { | ||
| 74 | return $self->load_authorities_role_fkey($authorities_role_fkey); | ||
| 75 | } | ||
| 76 | |||
| 77 | sub load_authorities_role_fkey($self, $authorities_role_fkey) { | ||
| 78 | return $self->load_fkey( | ||
| 79 | $self->table_name, $self->fields(), "authorities_role_fkey", $authorities_role_fkey | ||
| 80 | ); | ||
| 81 | } | ||
| 82 | async sub load_languages_lan_fkey_p($self, $languages_lan_fkey) { | ||
| 83 | return $self->load_languages_lan_fkey($languages_lan_fkey); | ||
| 84 | } | ||
| 85 | |||
| 86 | sub load_languages_lan_fkey($self, $languages_lan_fkey) { | ||
| 87 | return $self->load_fkey( | ||
| 88 | $self->table_name, $self->fields(), "languages_lan_fkey", $languages_lan_fkey | ||
| 89 | ); | ||
| 90 | } | ||
| 91 | async sub load_users_users_pkey_p($self, $users_users_pkey) { | ||
| 92 | return $self->load_users_users_pkey($users_users_pkey); | ||
| 93 | } | ||
| 94 | |||
| 95 | sub load_users_users_pkey($self, $users_users_pkey) { | ||
| 96 | return $self->load_pk( | ||
| 97 | $self->table_name, $self->fields(), $self->primary_key_name(), $users_users_pkey | ||
| 98 | ); | ||
| 99 | } | ||
| 100 | |||
| 101 | 1; | ||
| 102 |