29 lines
588 B
PHP
29 lines
588 B
PHP
<?php
|
|
|
|
namespace App\Models\Part;
|
|
|
|
use App\Entities\Part\RAMEntity;
|
|
|
|
class RAMModel extends PartModel
|
|
{
|
|
const TABLE = "raminfo";
|
|
const PK = "uid";
|
|
const TITLE = "title";
|
|
protected $table = self::TABLE;
|
|
protected $primaryKey = self::PK;
|
|
// protected $useAutoIncrement = false;
|
|
protected $returnType = RAMEntity::class;
|
|
protected $allowedFields = [
|
|
"uid",
|
|
"title",
|
|
"price",
|
|
"used",
|
|
"stock",
|
|
"status",
|
|
];
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
}
|
|
}
|