<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use DB;
use App\Models\Product;
class VisitDataProduct extends Model
{
    use HasFactory;

    protected $table = 'visit_data_product';

    protected $fillable = [
        'fk_visit_data_id',
        'fk_product_id',
        'created_at',
        'updated_at',
    ];

    public $timestamps = false;

    public function productname()
    {
        return $this->belongsTo(Product::class, 'fk_product_id');
    }
}
