订单支付记录
This commit is contained in:
@@ -30,6 +30,7 @@ return new class extends Migration
|
||||
$table->decimal('added_amount', 10, 2)->default(0)->comment('附加金额(周转筐/托盘金额)');
|
||||
$table->decimal('total_amount', 10, 2)->default(0)->comment('账单总金额 = 商品金额 + 配送费 + 附加金额');
|
||||
$table->integer('status')->default(0)->comment('支付状态(0未支付 1已支付)');
|
||||
$table->integer('payment_id')->default(0)->comment('关联支付记录ID(0=未发起支付)');
|
||||
$table->timestamp('paid_at')->nullable()->comment('付款时间(线下收款手动登记)');
|
||||
$table->string('pay_remark', 255)->default('')->comment('付款备注(线下收款信息)');
|
||||
$table->integer('paid_operator_id')->default(0)->comment('收款操作人(后台系统用户ID)');
|
||||
@@ -39,6 +40,7 @@ return new class extends Migration
|
||||
$table->unique(['purchase_id', 'store_id'], 'bill_purchase_store_unique');
|
||||
$table->index(['store_id', 'bill_date'], 'bill_store_date_index');
|
||||
$table->index(['status'], 'bill_status_index');
|
||||
$table->index(['payment_id'], 'bill_payment_index');
|
||||
$table->comment('门店账单表(采购单完成后按门店生成)');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user