123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- use Illuminate\Database\Migrations\Migration;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Support\Facades\Schema;
- class CreateRetroactionsTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('retroactions', function (Blueprint $table) {
- $table->id();
- $table->string('body', 500)->nullable()->comment('反馈意见');
- $table->char('mobile', 11)->nullable()->comment('手机号');
- $table->bigInteger('user_id')->default(0);
- $table->tinyInteger('status')->default(1);
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('retroactions');
- }
- }
|