<?php

namespace App\Models;

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

class Subscription extends Model
{
    use HasFactory;

    protected $fillable = [
        'title',
        'first_billing_date',
        'client_id',
        'repeat_type',
        'amount_charge',
        'note',
        'next_billing_date'
    ];

    public function client()
    {
        return $this->belongsTo(Client::class);
    }
}
