This commit is contained in:
Lizandro Guarnizo
2026-04-24 21:40:10 -05:00
parent 877a0d393a
commit 148fa6b9f9
36 changed files with 3037 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class WhatsappConversation extends Model
{
protected $table = 'whatsapp_conversations';
public $updated_at = null;
protected $fillable = [
'user_id', 'message_id', 'reply_to_message_id', 'reaction_to_message_id',
'reaction_emoji', 'direction', 'message_type', 'content', 'media_url',
'whatsapp_media_id', 'local_file', 'local_thumb', 'media_storage',
'status', 'is_read', 'filename', 'mime_type',
];
protected $casts = [
'is_read' => 'boolean',
'created_at' => 'datetime',
];
public function user()
{
return $this->belongsTo(WhatsappUser::class, 'user_id');
}
}