<?php

namespace app\model;



use support\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

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 = CarType::get()->select('id','name','status')->where('status',0)->toArray();
        return $list;
    }
}