fix: 邀请加入项目数据库迁移文件

This commit is contained in:
kuaifan 2021-12-27 12:19:03 +08:00
parent b04fd1a937
commit 0b03aec038

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateProjectInvitesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('project_invites', function (Blueprint $table) {
$table->bigIncrements('id');
$table->bigInteger('project_id')->nullable()->default(0)->comment('项目ID');
$table->integer('num')->nullable()->default(0)->comment('累计邀请');
$table->string('code')->nullable()->default('')->comment('链接码');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('project_invites');
}
}