feat : chef statement

This commit is contained in:
2025-03-24 11:43:15 +08:00
parent 3c91ac4077
commit 071b0fc445
8 changed files with 246 additions and 6 deletions

View File

@@ -0,0 +1,38 @@
<?php
declare(strict_types=1);
namespace App\Model;
use Hyperf\DbConnection\Model\Model;
/**
* @property int $id
* @property string $date
* @property int $cycle_id
* @property int $kitchen_id
* @property int $chef_id
* @property int $sku_id
* @property int $sale
* @property int $refund
* @property int $cancel
* @property string $create_time
* @property string $update_time
*/
class ChefStatement extends Model
{
/**
* The table associated with the model.
*/
protected ?string $table = 'chef_statement';
/**
* The attributes that are mass assignable.
*/
protected array $fillable = [];
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['id' => 'integer', 'cycle_id' => 'integer', 'kitchen_id' => 'integer', 'chef_id' => 'integer', 'sku_id' => 'integer', 'sale' => 'integer', 'refund' => 'integer', 'cancel' => 'integer'];
}

View File

@@ -10,7 +10,8 @@ use Hyperf\DbConnection\Model\Model;
/**
* @property int $id
* @property int $order_id
* @property int $cycle_id
* @property int $cycle_id
* @property int $kitchen_id
* @property int $sku_id
* @property int $spu_id
* @property int $user_id
@@ -38,7 +39,19 @@ class OrderGood extends Model
/**
* The attributes that should be cast to native types.
*/
protected array $casts = ['id' => 'integer', 'order_id' => 'integer', 'cycle_id' => 'integer', 'sku_id' => 'integer', 'spu_id' => 'integer', 'user_id' => 'integer', 'quantity' => 'integer', 'is_comment' => 'integer', 'copies' => 'integer', 'type' => 'integer'];
protected array $casts = [
'id' => 'integer',
'order_id' => 'integer',
'cycle_id' => 'integer',
'kitchen_id' => 'integer',
'sku_id' => 'integer',
'spu_id' => 'integer',
'user_id' => 'integer',
'quantity' => 'integer',
'is_comment' => 'integer',
'copies' => 'integer',
'type' => 'integer'
];
const string CREATED_AT = 'create_time';