<?php

namespace App\Models;

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

class Plan extends Model
{
    use HasFactory;

    protected $fillable = [
        'name',
        'description',
        'product_id',
        'pricing_id',
        'shoppy_product_id',
        'accept_stripe',
        'accept_shoppy',
        'oxapay_link',
        'accept_oxapay',
        'price',
        'mailbox_limit',
        'monthly_billing',
        'details',
    ];

    protected $casts = [
        'details' => 'json',
        'monthly_billing' => 'boolean',
        'accept_stripe' => 'boolean',
        'accept_shoppy' => 'boolean',
        'accept_oxapay' => 'boolean',
    ];
}
