35 lines
769 B
PHP
35 lines
769 B
PHP
<?php
|
||
|
||
use Illuminate\Support\Facades\Schema;
|
||
use Illuminate\Database\Schema\Blueprint;
|
||
use Illuminate\Database\Migrations\Migration;
|
||
|
||
class CreateMatchmakers extends Migration
|
||
{
|
||
/**
|
||
* Run the migrations.
|
||
*
|
||
* @return void
|
||
*/
|
||
public function up()
|
||
{
|
||
Schema::create('matchmakers', function (Blueprint $table) {
|
||
$table->increments('id');
|
||
$table->integer('user_id');
|
||
$table->integer('status')->default(0)->comment('0未审核,1同意,-1拒绝');
|
||
$table->timestamps();
|
||
$table->softDeletes();
|
||
});
|
||
}
|
||
|
||
/**
|
||
* Reverse the migrations.
|
||
*
|
||
* @return void
|
||
*/
|
||
public function down()
|
||
{
|
||
Schema::dropIfExists('matchmakers');
|
||
}
|
||
}
|