| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace App\Module\Mex\Models;
- use App\Module\Mex\Enums\AdminOperationType;
- use UCore\ModelCore;
- /**
- * 农贸市场管理员操作记录模型
- *
- * field start
- * @property int $id 操作记录ID,主键
- * @property int $admin_user_id 管理员用户ID
- * @property \App\Module\Mex\Enums\AdminOperationType $operation_type 操作类型:INJECT注入,RECYCLE回收
- * @property int $item_id 商品ID,关联物品表
- * @property int $quantity 操作数量
- * @property float $price 操作价格
- * @property float $total_amount 操作总金额
- * @property int $before_warehouse_quantity 操作前仓库数量
- * @property int $after_warehouse_quantity 操作后仓库数量
- * @property int $transaction_id 关联的成交记录ID
- * @property string $remark 操作备注
- * @property \Carbon\Carbon $created_at 操作时间
- * field end
- */
- class MexAdminOperation extends ModelCore
- {
- protected $table = 'mex_admin_operations';
- protected $casts = [
- 'admin_user_id' => 'integer',
- 'operation_type' => AdminOperationType::class,
- 'item_id' => 'integer',
- 'quantity' => 'integer',
- 'price' => 'decimal:5',
- 'total_amount' => 'decimal:5',
- 'before_warehouse_quantity' => 'integer',
- 'after_warehouse_quantity' => 'integer',
- 'transaction_id' => 'integer',
- ];
- }
|