<?php

namespace App\Models;

use CodeIgniter\Model;

class PeminjamanModel extends Model
{
    protected $table = 'peminjaman';

    protected $primaryKey = 'id';

    protected $returnType = 'array';

    protected $allowedFields = [

        'kode_pinjam',

        'anggota_id',

        'buku_id',

        'tanggal_pinjam',

        'tanggal_kembali',

        'status'

    ];

    protected $useTimestamps = true;
}