<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Subscription extends Model
{
    protected $fillable = [
        'user_id', 
        'plan_id', 
        'amount_aed', 
        'starts_at', 
        'expires_at', 
        'paytabs_transaction_id', 
        'status'
    ];

    protected function casts(): array
    {
        return [
            'starts_at' => 'datetime',
            'expires_at' => 'datetime',
        ];
    }
}
