1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- class CreateWalletLogsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('wallet_logs', function (Blueprint $table) {
- $table->bigIncrements('id');
- $table->string('name')->comment('交易名称');
- $table->string('type', 20)->comment('交易类型');
- $table->decimal('money', 7, 2)->default(0.00)->comment('交易金额');
- $table->bigInteger('user_id')->default(0)->comment('用户id');
- $table->tinyInteger('status')->default(1);
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('wallet_logs');
- }
- }
|