package Daje::Plugin::Languages::Authorities;
use Mojo::Base -base, -signatures;
use v5.42;

# NAME
# ====
#
# Daje::Plugin::Languages::Authorities - Model class
#
# SYNOPSIS
# ========
#
#
#
#
# DESCRIPTION
# ===========
#
# Daje::Plugin::Languages::Authorities is the standard routes
#
# METHODS
# =======
#
#
# 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.com
#

# This file is generated automatically by Daje Tools 2026-02-25 11:52:04.
# It will be generated by Daje Tools again.
# <!-- Autogenerated file 2026-02-25 11:52:04 -->

use Daje::Helper::Authorities::InsertPluginFunction;

has 'db';

sub authorize($self) {

    try {
        my $tx = $self->db->begin;
        my @functions = (
            "languages_types",
            "languages_translations",
            "languages_lan",
            "languages_translation_keys"
        );

        Daje::Helper::Authorities::InsertPluginFunction->new(
            db => $self->db
        )->process(
            "languages", \@functions
        );
        $tx->commit();
    } catch($e) {
        say $e;
    }
}

1;

