| 1 | package Daje::Database::View::Super::vMailAttachements; | ||
| 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::vMailAttachements - Daje db model | ||
| 9 | # | ||
| 10 | # SYNOPSIS | ||
| 11 | # ======== | ||
| 12 | # | ||
| 13 | # | ||
| 14 | # use Daje::Database::View::Super::vMailAttachements; | ||
| 15 | # | ||
| 16 | # my $table = Daje::Database::View::Super::vMailAttachements->new(db => $db); | ||
| 17 | # | ||
| 18 | # my $result = $table->load_mail_attachements_pkey($self, $mail_attachements_pkey); | ||
| 19 | # | ||
| 20 | # my $result = $table->load_mail_mails_fkey($self, $mail_mails_fkey); | ||
| 21 | ## | ||
| 22 | # | ||
| 23 | # | ||
| 24 | # DESCRIPTION | ||
| 25 | # =========== | ||
| 26 | # | ||
| 27 | # Daje::Database::View::Super::vMailAttachements is a View super class | ||
| 28 | # | ||
| 29 | # METHODS | ||
| 30 | # ======= | ||
| 31 | # | ||
| 32 | # | ||
| 33 | # LICENSE | ||
| 34 | # ======= | ||
| 35 | # | ||
| 36 | # Copyright (C) janeskil1525. | ||
| 37 | # | ||
| 38 | # This library is free software; you can redistribute it and/or modify | ||
| 39 | # it under the same terms as Perl itself. | ||
| 40 | # | ||
| 41 | # AUTHOR | ||
| 42 | # ====== | ||
| 43 | # | ||
| 44 | # janeskil1525 E<lt>janeskil1525@gmail.com | ||
| 45 | # | ||
| 46 | |||
| 47 | # This file is generated automatically by Daje Tools 2026-02-13 15:59:42. | ||
| 48 | # It will be re-created by Daje Tools again and any changes | ||
| 49 | # will be over written. | ||
| 50 | # | ||
| 51 | # <!-- Autogenerated file 2026-02-13 15:59:42 --> | ||
| 52 | |||
| 53 | our $VERSION = '0.01'; | ||
| 54 | |||
| 55 | has 'fields' => '"mail_attachements_pkey", "editnum", "insby", "insdatetime", "modby", "moddatetime","filename","mail_mails_fkey"'; | ||
| 56 | has 'primary_key_name' => "mail_attachements_pkey"; | ||
| 57 | has 'table_name' => "v_mail_attachements"; | ||
| 58 | |||
| 59 | |||
| 60 | async sub load_mail_mails_fkey_p($self, $mail_mails_fkey) { | ||
| 61 | return $self->load_mail_mails_fkey($mail_mails_fkey); | ||
| 62 | } | ||
| 63 | |||
| 64 | sub load_mail_mails_fkey($self, $mail_mails_fkey) { | ||
| 65 | return $self->load_fkey( | ||
| 66 | $self->table_name, $self->fields(), "mail_mails_fkey", $mail_mails_fkey | ||
| 67 | ); | ||
| 68 | } | ||
| 69 | async sub load_mail_attachements_pkey_p($self, $mail_attachements_pkey) { | ||
| 70 | return $self->load_mail_attachements_pkey($mail_attachements_pkey); | ||
| 71 | } | ||
| 72 | |||
| 73 | sub load_mail_attachements_pkey($self, $mail_attachements_pkey) { | ||
| 74 | return $self->load_pk( | ||
| 75 | $self->table_name, $self->fields(), $self->primary_key_name(), $mail_attachements_pkey | ||
| 76 | ); | ||
| 77 | } | ||
| 78 | |||
| 79 | 1; | ||
| 80 |