workign comments strucuture

This commit is contained in:
Mark Gregory
2026-06-17 10:09:42 +01:00
parent 878f383f7a
commit fe05ef8104
13 changed files with 575 additions and 104 deletions
+28 -2
View File
@@ -14,10 +14,36 @@ final class Comment extends Model
protected $table = 'helpdesk_comments';
/** @var list<string> */
protected $fillable = ['ticket_id', 'parent_id', 'user_id', 'body', 'is_internal'];
protected $fillable = [
'ticket_id',
'parent_id',
'user_id',
'body',
'body_text',
'is_internal',
'guid',
'unid',
'replica_id',
'parent_unid',
'root_unid',
'originator_id',
'sync_sequence',
'sync_hash',
'source_system',
'source_record_id',
'replicated_at',
'synced_at',
'tombstoned_at',
];
/** @var array<string, string> */
protected $casts = ['is_internal' => 'boolean'];
protected $casts = [
'is_internal' => 'boolean',
'sync_sequence' => 'integer',
'replicated_at' => 'datetime',
'synced_at' => 'datetime',
'tombstoned_at' => 'datetime',
];
/** @return BelongsTo<Ticket, Comment> */
public function ticket(): BelongsTo