<?php

namespace App\Models;

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

class Subscriber extends Model
{
    use HasFactory, SoftDeletes;

    protected $fillable = [
        'en_id',
        'perfect_language',
        'speak_english',
        'children_education_fund',
        'subs_first_name',
        'subs_middle_name',
        'subs_last_name',
        'primary_care_giver',
        'subs_custodial_parent',
        'common_law',
        'subs_cin',
        'identification_type',
        'identification_number',
        'subs_dob',
        'subs_email',
        'subs_address',
        'subs_city',
        'subs_province',
        'subs_countrty',
        'subs_post_code',
        'subs_home_phone',
        'subs_business_phone',
        'subs_air_mile_no',
        'subs_gender',
    ];

    public function enrollment()
    {
        return $this->belongsTo(Enrollment::class, 'en_id', 'id');
    }
}
