<?php

namespace App\Models;

use CodeIgniter\Model;

class LedgerModel extends Model
{
    protected $table = 'ledger';

    protected $primaryKey = 'id_ledger';

    protected $returnType = 'array';

    protected $useTimestamps = true;

    protected $createdField = 'created_at';

    protected $updatedField = 'updated_at';

    protected $allowedFields = [

        'tanggal',

        'keterangan',

        'debit',

        'kredit',

        'saldo'

    ];
}