<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Transaction extends Model
{
    protected $fillable = [
        'transactionRef',
        'transactionID',
        'transactionType',
        'userID',
        'planID',
        'subDate',
        'statusCode',
        'amountPaid',
        'ipAddress',
        'authCode'
    ];

    public function plan()
    {
        return $this->belongsTo('App\Subscription', 'planID', 'id');
    }
}
