<?php

namespace App\Models;

// use Illuminate\Database\Eloquent\Model;
use MongoDB\Laravel\Eloquent\Model;

class ApiToken extends Model
{
    protected $collection = 'api_tokens';

    protected $fillable = [
        'user_id',
        'token',      // hashed token
        'abilities',  // optional: array of allowed actions
        'created_at',
        'expires_at', // optional expiration
    ];

    public $timestamps = true;
}
