123456789101112131415161718192021222324252627282930313233 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- return new class extends Migration {
- /**
- * Run the migrations.
- */
- public function up(): void
- {
- Schema::create('member_config', function (Blueprint $table) {
- $table->id();
- $table->tinyInteger('point_trade_deduct_enable')->comment('是否开启积分抵扣');
- $table->integer('point_trade_deduct_unit_price')->comment('积分抵扣(单位:分)');
- $table->integer('point_trade_deduct_max_price')->nullable()->comment('积分抵扣最大值');
- $table->bigInteger('point_trade_give_point')->nullable()->comment('1 元赠送多少分');
- $table->string('creator', 64)->nullable()->comment('创建者');
- $table->string('updater', 64)->nullable()->comment('更新者');
- $table->timestamps();
- $table->softDeletes();
- });
- }
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('member_config');
- }
- };
|