Files
crm-server/app/model/CarType.php
T

36 lines
614 B
PHP
Raw Normal View History

2025-03-14 14:27:33 +08:00
<?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()
{
2025-03-17 18:01:53 +08:00
$list = self::get()->select('id','name','status')->where('status',0)->toArray();
2025-03-14 14:27:33 +08:00
return $list;
}
}