<?php

namespace Hilco\Models;
use Illuminate\Database\Eloquent\Model;

/**
 * Hilco\Models\CustomerEmail
 *
 * @property mixed $id
 * @property string $cust_no
 * @property mixed $customer_id
 * @property string $cust_name
 * @property string $email_raw
 * @property string $good_email
 * @property string $email_note
 * @property boolean $email_news
 * @property boolean $email_sales
 * @property boolean $email_ship
 * @property string $date_created
 * @property string $date_modified
 * @property string $deleted_at
 * @property-read mixed $id_string
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereId($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereCustNo($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereCustomerId($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereCustName($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereEmailRaw($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereGoodEmail($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereEmailNote($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereEmailNews($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereEmailSales($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereEmailShip($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereDateCreated($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereDateModified($value)
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereDeletedAt($value)
 * @mixin \Eloquent
 * @property string $date_uploaded
 * @method static \Illuminate\Database\Query\Builder|\Hilco\Models\CustomerEmail whereDateUploaded($value)
 */
class CustomerEmail extends Model {
	protected $table = 'CustomerEmails';

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