Files
hyperf_service/app/Model/Printer.php
2025-04-03 16:39:34 +08:00

40 lines
861 B
PHP

<?php
declare(strict_types=1);
namespace App\Model;
use Hyperf\Database\Model\Collection;
use Hyperf\DbConnection\Model\Model;
/**
* @property int $id
* @property int $kitchen_id
* @property string $name
* @property int $type
* @property string $code_value
* @property string $create_time
* @property string $update_time
*/
class Printer extends Model
{
/**
* The table associated with the model.
*/
protected ?string $table = 'printer';
/**
* The attributes that are mass assignable.
*/
protected array $fillable = [];
protected array $guarded = [];
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['id' => 'integer', 'type' => 'integer','kitchen_id' => 'integer'];
const CREATED_AT = 'create_time';
const UPDATED_AT = 'update_time';
}