<?php

namespace App\Models\Frontend;

use App\Models\Backend\Customers\Address;
use Illuminate\Database\Eloquent\Model;
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
class Customer extends Authenticatable
{
    use HasApiTokens, Notifiable;
    //
    protected $table = 'oc_customer';
    protected $primaryKey = 'customer_id';
    public $timestamps = false;

    protected $guarded = [];

    protected $hidden = [
        'password',
        'salt',];

    public function address(){
        return $this->hasOne(Address::class, 'customer_id', 'customer_id');
    }
}
