crm-summit/app/Models/ProductsModel.php

12 lines
507 B
PHP
Raw Normal View History

2024-04-24 13:20:52 +07:00
<?php namespace App\Models;
use CodeIgniter\Model;
class ProductsModel extends Model {
protected $table = 'products';
protected $primaryKey = 'productid';
protected $allowedFields = [ 'siteid', 'productnumber', 'productname', 'catalogid', 'accountid_productowner',
2024-04-24 13:20:52 +07:00
'installationdate', 'locationstartdate', 'locationenddate', 'warrantystartdate', 'warrantyenddate',
'productowner', 'productserviceid', 'statuspart', 'active',
2024-04-24 13:20:52 +07:00
'remotetool', 'remoteid', 'remotepwd', 'createdate', 'enddate' ];
}