Skip to main content

Struttura dati

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


🗂️ Diagrammi ER

Template delle Prestazioni (Q)

Il modello pw_q_section_templates rappresenta le sezioni e sottosezioni delle prestazioni. Ogni sezione può avere una sezione padre (parent_id).

Il modello pw_q_item_templates rappresenta le singole prestazioni template, ognuna associata a una sezione e con un coefficiente di prestazione (Q).


Template delle Opere (G)

Il modello pw_g_item_templates rappresenta le opere template con il relativo grado di complessità (G).


Template delle Pratiche (P)

Il modello pw_p_item_templates rappresenta le pratiche template con i relativi importi minimi e massimi consigliati.


Allegati A

Il modello pw_a_attachments rappresenta l'Allegato A, documento che raccoglie le prestazioni professionali per uno studio.

Il modello pw_a_attachment_items rappresenta le singole voci dell'Allegato A, che possono riferirsi a template Q, P o essere personalizzate.


🧬 DTOs

Template delle Sezioni (Q)

PwQSectionTemplateGetterDto

DTO che rappresenta una sezione template delle prestazioni.

Field
PHP Type
Note
id
int
parent_id
int

nullable

code
string

nullable

name
string

Template delle Prestazioni (Q)

PwQitemTemplateGetterDto

DTO che rappresenta una prestazione template.

Field
PHP Type
Note
id
int
section_id
int
code
string
name
string
coefficient
float

nullable - Coefficiente Q


Template delle Opere (G)

PwGitemTemplateGetterDto

DTO che rappresenta un'opera template.

Field
PHP Type
Note
id
int
code
string
name
string
complexity
string

nullable - Grado di complessità G

is_default
boolean

Template delle Pratiche (P)

PwPitemTemplateGetterDto

DTO che rappresenta una pratica template.

Field
PHP Type
Note
id
int
code
string
name
string
min_price
float

nullable - Importo minimo

max_price
float

nullable - Importo massimo


Allegati A

PwAAttachmentGetterDto

DTO che rappresenta un Allegato A.

Field
PHP Type
Note
id
int
generation_id
int
version
int
g_item_template_id
int

nullable

studio_type
string

nullable

studio_id
int

nullable

typology
string

project | free

reference
string

nullable

studio_platform_type
string

nullable - platform | free

studio_name
string

nullable

studio_vat_rate
string

nullable - Aliquota IVA

studio_vat_nature
string

nullable - Natura IVA

studio_pension_fund_type
string

nullable - Tipo cassa

studio_pension_fund_rate
string

nullable - Aliquota cassa

status
string

tbc | completed

total_value
float
project_value
float
charge
boolean
discount
boolean
charge_discount_percentage
float
expenses
float
expenses_taxable
boolean
duties
float
duties_taxable
boolean
role
PwAAttachmentRoleDto

nullable

financials
array
completion_date
string

nullable

archived_at
string

nullable

has_archive
boolean
value_parameter
float

Parametro V

g_complexity
float

Complessità G

created_at
string
g_item_template
PwGitemTemplateGetterDto

nullable

groups
array

nullable - Gruppi F.01/F.02/F.03/F.04

PwAAttachmentRoleDto

DTO che rappresenta il ruolo associato a un Allegato A.

Field
PHP Type
Note
id
int

nullable

slug
string

nullable

title
string

nullable

is_custom
boolean

nullable


Voci Allegato A

PwAAttachmentItemGetterDto

DTO che rappresenta una voce dell'Allegato A.

Field
PHP Type
Note
id
int
attachment_id
int
q_section_template_id
int

nullable

q_section_template_name
string

nullable

q_item_template_id
int

nullable

p_item_template_id
int

nullable

g_item_template_id
int

nullable

code
string

nullable

name
string
price
float
note
string

nullable

suggested_price_type
string

nullable

suggested_price_data
array

nullable - {min_price, max_price, type}

attachment
PwAAttachmentGetterDto

nullable

q_section_template
PwQSectionTemplateGetterDto

nullable

q_item_template
PwQitemTemplateGetterDto

nullable

p_item_template
PwPitemTemplateGetterDto

nullable

custom
boolean

Indica se voce personalizzata


🎛️ Enums

PwAattachmentStatusEnum

string
Field
Value
Frontend Value
Note
TBC
tbc
Da confermare
COMPLETED
completed
Confermato

PwAattachmentTypologyEnum

string
Field
Value
Frontend Value
Note
PROJECT
project
Commessa
Allegato A collegato a commessa
FREE
free
Libero
Allegato A non collegato a commessa

PwStudioPlatformTypologyEnum

string
Field
Value
Frontend Value
Note
PLATFORM
platform
Piattaforma
Studio di piattaforma
FREE
free
Libero
Studio libero (non di piattaforma)