modifica a file .sql per database corrieri
All checks were successful
Deploy to VPS / build (push) Successful in 15s
Deploy to VPS / deploy (push) Successful in 17s

This commit is contained in:
AV77web 2026-06-21 01:34:35 +02:00
parent 8440b6da39
commit 3e836a7858
2 changed files with 10 additions and 10 deletions

View file

@ -8,22 +8,22 @@
-- Questo script è utile per installazione manuale su MySQL locale.
-- ============================================================
CREATE DATABASE IF NOT EXISTS prenotazioni
CREATE DATABASE IF NOT EXISTS corrieri
CHARACTER SET utf8mb4
COLLATE utf8mb4_unicode_ci;
CREATE USER IF NOT EXISTS 'prenotazioni_user'@'%'
CREATE USER IF NOT EXISTS 'corrieri_user'@'%'
IDENTIFIED BY 'altra_password_sicura';
CREATE USER IF NOT EXISTS 'prenotazioni_user'@'localhost'
CREATE USER IF NOT EXISTS 'corrieri_user'@'localhost'
IDENTIFIED BY 'altra_password_sicura';
GRANT SELECT, INSERT, UPDATE, DELETE
ON prenotazioni.*
TO 'prenotazioni_user'@'%';
ON corrieri\.*
TO 'corrieri\_user'@'%';
GRANT SELECT, INSERT, UPDATE, DELETE
ON prenotazioni.*
TO 'prenotazioni_user'@'localhost';
ON corrieri.*
TO 'corrieri_user'@'localhost';
FLUSH PRIVILEGES;

View file

@ -1,9 +1,9 @@
-- ============================================================
-- Schema tabelle Gestione Prenotazioni campi sportivi
-- Allineato alle API: /operatori, /clienti, /campi, /prenotazioni
-- Schema tabelle Gestione Corrieri
-- Allineato alle API: /utenti, /clienti, /cd campi, /prenotazioni
-- ============================================================
USE prenotazioni;
USE corrieri;
-- ------------------------------------------------------------
-- Tabella operatore (API: GET/POST/PUT/DELETE /operatori)