<?php

namespace Mtc\Shop\Order;

use App\Casts\OptionalEncrypted;
use Illuminate\Database\Eloquent\Model;

/**
 * @author Uldis Zvirbulis <uldis.zvirbulis@mtcmedia.co.uk>
 */
class Contact extends Model
{
    protected $table = 'order_contact';
    public $timestamps = false;

    protected $fillable = [
        'order_id',
        'subject',
        'message',
        'timestamp',
    ];

    protected $casts = [
        'subject' => OptionalEncrypted::class,
        'message' => OptionalEncrypted::class,
    ];
}
