modifica a file .sql per database corrieri
This commit is contained in:
parent
8440b6da39
commit
3e836a7858
2 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue