Skip to main content

Struttura Dati

In questa sezione è presente la struttura dati del modulo Notifiche. Sono presenti le entità, le relazioni e i tipi di dati utilizzati.


🗂️ Diagrammi ER

Template di Notifica


Notifiche Utente (Laravel Notifications)


Impostazioni Notifiche Utente


🧬 DTOs

Template di Notifica

NtNotificationTemplateDto

Field
PHP Type
Note
id
int
code
string

Codice univoco per identificare il template

title
string
type
NtNotificationTypeEnum
channels
Array<string>

Array di canali abilitati

templateChannels
Collection<NtNotificationTemplateChannelDto>
redirectUrl
string

NtNotificationTemplateChannelDto

Field
PHP Type
Note
id
int
title
string
body
text
recipients
Array<string>

Lista di destinatari

subject
string

Solo per Email

ctaName
string

Nome del pulsante call-to-action

type
NtNotificationChannelEnum
status
boolean

true = abilitato, false = disabilitato

notificationTemplate
NtNotificationTemplateDto

optional (use chaperone)

NtVariableTemplateDto

Field
PHP Type
Note
id
int
name
string
slug
string
category
NtNotificationVariableCategoryEnum
type
NtNotificationVariableInputTypeEnum
description
string
placeholder
string

Notifiche Utente

NtUserNotificationDto

Field
PHP Type
Note
id
uuid
type
string

Classe della notifica

data
array

Dati della notifica

readAt
DateTime
createdAt
DateTime

Impostazioni Notifiche

NtNotificationSettingDto

Field
PHP Type
Note
id
int
key
string

Chiave dell'impostazione

value
mixed

Valore dell'impostazione


🎛️ Enums

NtNotificationTypeEnum

string
Field
Value
Frontend Value
Note
ToDo
to_do
Da Fare
Notifiche che richiedono un'azione
Info
info
Informativa
Notifiche informative

NtNotificationChannelEnum

string
Field
Value
Frontend Value
Note
Push
push
Push
Notifica push (database/pusher)
Email
email
Email
Notifica via email

NtNotificationPushDriverEnum

string
Field
Value
Frontend Value
Note
Database
database
Database
Salva solo nel database
Pusher
pusher
Pusher
Invia solo via Pusher (real-time)
Both
both
Entrambi
Database + Pusher

NtNotificationVariableCategoryEnum

string
Field
Value
Frontend Value
Note
Core
core
Core
Variabili core del sistema
Signatures
signatures
Firme
Variabili relative alle firme
Project
project
Commessa
Customer
customer
Cliente
DistrictManager
district_manager
District Manager
LocalManager
local_manager
Local Manager
Supplier
supplier
Fornitore
Company
company
Impresa
Subcontractor
subcontractor
Subappaltatrice
HD
hd
H&D
Legacy value
Professional
professional
Professionista
Attachments
attachments
Allegati
Variabili per allegati
Date
date
Data
Variabili relative a date
Contract
contract
Contratto
Variabili relative ai contratti
User
user
Utente
Variabili relative agli utenti

NtNotificationVariableInputTypeEnum

string
Field
Value
Frontend Value
Note
FiscalCode
fiscal_code
Codice Fiscale
Province
province
Provincia
Country
country
Paese
Number
number
Numero
Text
text
Testo
VatNumber
vat_number
Partita IVA
Email
email
Email
Date
date
Data
DateTime
datetime
Data e Ora
Currency
currency
Valuta
Boolean
boolean
Booleano