<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AFAPackage extends Model
{
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'afa_package';

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'cost',
        'price',
        'status'
    ];

    /**
     * Get the pricing records associated with this package.
     */
    public function pricing()
    {
        return $this->hasMany(AFAPricing::class, 'package_id');
    }
}