|
|
@@ -27,8 +27,21 @@ class MexAdminOperation extends ModelCore
|
|
|
{
|
|
|
protected $table = 'mex_admin_operations';
|
|
|
|
|
|
-
|
|
|
-
|
|
|
+ // 禁用updated_at字段的自动管理,因为表中只有created_at字段
|
|
|
+ public const UPDATED_AT = null;
|
|
|
+
|
|
|
+ protected $fillable = [
|
|
|
+ 'admin_user_id',
|
|
|
+ 'operation_type',
|
|
|
+ 'item_id',
|
|
|
+ 'quantity',
|
|
|
+ 'price',
|
|
|
+ 'total_amount',
|
|
|
+ 'before_warehouse_quantity',
|
|
|
+ 'after_warehouse_quantity',
|
|
|
+ 'transaction_id',
|
|
|
+ 'remark',
|
|
|
+ ];
|
|
|
|
|
|
protected $casts = [
|
|
|
'admin_user_id' => 'integer',
|