love_php/database/migrations/2018_11_12_202651_create_matchmakers.php
2026-04-02 09:20:51 +08:00

35 lines
769 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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');
}
}