<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class CustomerPoint extends Model
{
    use HasFactory;

    protected $fillable = [
        "point",
        "customer_id",
        "description",
        "reference_type",
        "reference_id",
        "description"
    ];

    public function reference() {
        return $this->morphTo();
    }

    public function customer() {
        return $this->belongsTo(Customer::class);
    }
}
