fantascenza attachment bloc agnostico, ora continuo refactor rimuovendo customer file bloc ecc.

This commit is contained in:
2026-05-06 10:17:48 +02:00
parent 5207a82706
commit ec06155f2b
10 changed files with 715 additions and 528 deletions

View File

@@ -7,6 +7,7 @@ class AttachmentModel extends Equatable {
final DateTime? createdAt;
final String? customerId;
final String? operationId;
final String? ticketId;
final String name;
final String extension;
final String? storagePath;
@@ -19,6 +20,7 @@ class AttachmentModel extends Equatable {
this.createdAt,
this.customerId,
this.operationId,
this.ticketId,
required this.name,
required this.extension,
this.storagePath,
@@ -33,6 +35,7 @@ class AttachmentModel extends Equatable {
createdAt,
customerId,
operationId,
ticketId,
name,
extension,
storagePath,
@@ -59,6 +62,7 @@ class AttachmentModel extends Equatable {
DateTime? createdAt,
String? customerId,
String? operationId,
String? ticketId,
String? name,
String? extension,
String? storagePath,
@@ -70,6 +74,7 @@ class AttachmentModel extends Equatable {
createdAt: createdAt ?? this.createdAt,
customerId: customerId ?? this.customerId,
operationId: operationId ?? this.operationId,
ticketId: ticketId ?? this.ticketId,
name: name ?? this.name,
extension: extension ?? this.extension,
storagePath: storagePath ?? this.storagePath,
@@ -86,6 +91,7 @@ class AttachmentModel extends Equatable {
: null,
customerId: map['customer_id'] as String?,
operationId: map['operation_id'] as String?,
ticketId: map['ticket_id'] as String?,
name: map['name'] as String,
extension: map['extension'] as String,
storagePath: map['storage_path'] as String?,
@@ -104,6 +110,7 @@ class AttachmentModel extends Equatable {
'storage_path': storagePath,
'customer_id': customerId,
'operation_id': operationId,
'ticket_id': ticketId,
'file_size': fileSize,
'company_id': companyId,
};