Files
crm-server/app/model/CarType.php
T
2025-03-25 09:06:08 +08:00

36 lines
624 B
PHP

<?php
namespace app\model;
use support\Model;
class CarType extends Model
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'car_type';
/**
* The primary key associated with the table.
*
* @var string
*/
protected $primaryKey = 'id';
/**
* Indicates if the model should be timestamped.
*
* @var bool
*/
public $timestamps = true;
public static function getAll()
{
$list = self::get()->select('id','name','name_en','status')->where('status',0)->toArray();
return $list;
}
}