update orders table
This commit is contained in:
@@ -20,14 +20,14 @@ return new class extends Migration
|
|||||||
$table->text('platform_order_id')->comment('平台 订单 ID');
|
$table->text('platform_order_id')->comment('平台 订单 ID');
|
||||||
$table->integer('payment_method_id')->default('1')->comment('订单状态 ID, 默认为在线支付');
|
$table->integer('payment_method_id')->default('1')->comment('订单状态 ID, 默认为在线支付');
|
||||||
$table->boolean('presale')->default('false')->comment('是否是预售, 默认为非预售');
|
$table->boolean('presale')->default('false')->comment('是否是预售, 默认为非预售');
|
||||||
$table->double('total_amount', 10, 2)->default(0)->comment();
|
$table->double('total_amount', 10, 2)->default(0)->comment('订单总金额');
|
||||||
$table->double('total_paid', 10, 2)->default(0)->comment();
|
$table->double('total_paid', 10, 2)->default(0)->comment('已支付金额');
|
||||||
$table->double('total_discount', 10, 2)->default(0)->comment();
|
$table->double('total_discount', 10, 2)->default(0)->comment('总折扣金额');
|
||||||
$table->double('total_received', 10, 2)->default(0)->comment();
|
$table->double('total_received', 10, 2)->default(0)->comment('实收金额');
|
||||||
$table->double('freight_fee', 10, 2)->default(0)->comment();
|
$table->double('freight_fee', 10, 2)->default(0)->comment('运费');
|
||||||
$table->double('tax_fee', 10, 2)->default(0)->comment();
|
$table->double('tax_fee', 10, 2)->default(0)->comment('税费');
|
||||||
$table->double('discount_fee', 10, 2)->default(0)->comment();
|
$table->double('discount_fee', 10, 2)->default(0)->comment('优惠金额');
|
||||||
$table->double('commission_fee', 10, 2)->default(0)->comment();
|
$table->double('commission_fee', 10, 2)->default(0)->comment('佣金');
|
||||||
$table->double('coupon_amount', 10, 2)->default(0)->comment('折扣券 - 优惠券金额');
|
$table->double('coupon_amount', 10, 2)->default(0)->comment('折扣券 - 优惠券金额');
|
||||||
$table->double('voucher_amount', 10, 2)->default(0)->comment('代金券 - 兑换券金额');
|
$table->double('voucher_amount', 10, 2)->default(0)->comment('代金券 - 兑换券金额');
|
||||||
$table->integer('order_type_id')->default(1)->comment('订单类型 ID, 默认为一般订单,部分平台可能有补差价,代金券订单等');
|
$table->integer('order_type_id')->default(1)->comment('订单类型 ID, 默认为一般订单,部分平台可能有补差价,代金券订单等');
|
||||||
@@ -41,8 +41,7 @@ return new class extends Migration
|
|||||||
$table->text('country')->nullable()->default(null)->comment('国家');
|
$table->text('country')->nullable()->default(null)->comment('国家');
|
||||||
$table->jsonb('raw')->nullable()->default(null)->comment('远程原始数据');
|
$table->jsonb('raw')->nullable()->default(null)->comment('远程原始数据');
|
||||||
$table->jsonb('ext')->nullable()->default()->comment('扩展字段');
|
$table->jsonb('ext')->nullable()->default()->comment('扩展字段');
|
||||||
$table->datetimesTz();
|
$table->timestampsTz();
|
||||||
|
|
||||||
// 索引
|
// 索引
|
||||||
$table->index('company_id');
|
$table->index('company_id');
|
||||||
$table->index('platform_id');
|
$table->index('platform_id');
|
||||||
|
|||||||
Reference in New Issue
Block a user