| 123456789101112131415161718192021222324 | <?phpnamespace App\Model;use Illuminate\Database\Eloquent\Model;class DeviceOrderInfo extends Model{    protected $table = "device_order_info"; //指定表    const CREATED_AT = 'crt_time';    const UPDATED_AT = 'upd_time';    protected $dateFormat = 'U';    const Model_type_zero = 0;    const Model_type_one = 1; // 正常    const Model_type_two = 2; // 异常    public static $prefix = [        self::Model_type_zero => '无',        self::Model_type_one => '正常',        self::Model_type_two => '异常',    ];}
 |