<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

/**
 * @property int $id
 * @property integer $customer_id
 * @property string $address1
 * @property string $address2
 * @property string $country
 * @property string $state
 * @property string $city
 * @property int $postcode
 * @property string $phone
 * @property boolean $default_address
 * @property string $name
 * @property string $created_at
 * @property string $updated_at
 * @property Customer $customer
 */
class CustomerAddress extends Model
{
    /**
     * @var array
     */
    protected $fillable = ['customer_id', 'address1', 'address2', 'country', 'state', 'city', 'postcode', 'phone', 'default_address', 'name', 'created_at', 'updated_at'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function customer()
    {
        return $this->belongsTo('App\Customer');
    }
}
