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
intcode
stringCodice univoco per identificare il template
title
stringtype
NtNotificationTypeEnumchannels
Array<string>Array di canali abilitati
templateChannels
Collection<NtNotificationTemplateChannelDto>redirectUrl
stringNtNotificationTemplateChannelDto
Field
PHP Type
Note
id
inttitle
stringbody
textrecipients
Array<string>Lista di destinatari
subject
stringSolo per Email
ctaName
stringNome del pulsante call-to-action
type
NtNotificationChannelEnumstatus
booleantrue = abilitato, false = disabilitato
notificationTemplate
NtNotificationTemplateDtooptional (use chaperone)
NtVariableTemplateDto
Field
PHP Type
Note
id
intname
stringslug
stringcategory
NtNotificationVariableCategoryEnumtype
NtNotificationVariableInputTypeEnumdescription
stringplaceholder
stringNotifiche Utente
NtUserNotificationDto
Field
PHP Type
Note
id
uuidtype
stringClasse della notifica
data
arrayDati della notifica
readAt
DateTimecreatedAt
DateTimeImpostazioni Notifiche
NtNotificationSettingDto
Field
PHP Type
Note
id
intkey
stringChiave dell'impostazione
value
mixedValore dell'impostazione
🎛️ Enums
NtNotificationTypeEnum
stringField
Value
Frontend Value
Note
ToDo
to_doDa FareNotifiche che richiedono un'azione
Info
infoInformativaNotifiche informative
NtNotificationChannelEnum
stringField
Value
Frontend Value
Note
Push
pushPushNotifica push (database/pusher)
Email
emailEmailNotifica via email
NtNotificationPushDriverEnum
stringField
Value
Frontend Value
Note
Database
databaseDatabaseSalva solo nel database
Pusher
pusherPusherInvia solo via Pusher (real-time)
Both
bothEntrambiDatabase + Pusher
NtNotificationVariableCategoryEnum
stringField
Value
Frontend Value
Note
Core
coreCoreVariabili core del sistema
Signatures
signaturesFirmeVariabili relative alle firme
Project
projectCommessaCustomer
customerClienteDistrictManager
district_managerDistrict ManagerLocalManager
local_managerLocal ManagerSupplier
supplierFornitoreCompany
companyImpresaSubcontractor
subcontractorSubappaltatriceHD
hdH&DLegacy value
Professional
professionalProfessionistaAttachments
attachmentsAllegatiVariabili per allegati
Date
dateDataVariabili relative a date
Contract
contractContrattoVariabili relative ai contratti
User
userUtenteVariabili relative agli utenti
NtNotificationVariableInputTypeEnum
stringField
Value
Frontend Value
Note
FiscalCode
fiscal_codeCodice FiscaleProvince
provinceProvinciaCountry
countryPaeseNumber
numberNumeroText
textTestoVatNumber
vat_numberPartita IVAEmail
emailEmailDate
dateDataDateTime
datetimeData e OraCurrency
currencyValutaBoolean
booleanBooleano