<?php

namespace App\Models;

use CodeIgniter\Model;

class CashflowModel extends Model
{
    protected $table = 'cashflows';

    protected $primaryKey = 'id_cashflow';

    protected $returnType = 'array';

    protected $useTimestamps = true;

    protected $createdField = 'created_at';

    protected $updatedField = 'updated_at';

    protected $allowedFields = [

        'tanggal',

        'jenis',

        'kategori',

        'keterangan',

        'jumlah'

    ];
}