Xboard/app/Models/Ticket.php
2023-12-12 06:22:18 +08:00

23 lines
425 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Ticket extends Model
{
protected $table = 'v2_ticket';
protected $dateFormat = 'U';
protected $guarded = ['id'];
protected $casts = [
'created_at' => 'timestamp',
'updated_at' => 'timestamp'
];
public function message()
{
return $this->hasMany(TicketMessage::class, 'ticket_id', 'id');
}
}