<?php

namespace App\Models;

use CodeIgniter\Model;

class BlackjackSessionModel extends Model
{
    protected $table      = 'blackjack_session';
    protected $primaryKey = 'id';

    protected $useAutoIncrement = true;

    protected $returnType     = 'array';
    //protected $useSoftDeletes = true;

    protected $allowedFields = ['user_id', 'deck', 'player_hand', 'dealer_hand'];

    protected bool $allowEmptyInserts = false;
    protected bool $updateOnlyChanged = true;
}