このリポジトリは2023-09-09にアーカイブされています。 ファイルの閲覧とクローンは可能ですが、プッシュ、イシューの作成、プルリクエストはできません。
kikikan/backend/database/migrations/2021_08_13_020003_create_em...

38 行
918 B
PHP
Raw 通常表示 履歴

2021-08-13 13:17:12 +09:00
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateEmailActivationsTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('email_activations', function (Blueprint $table) {
$table->id();
2021-09-29 12:43:36 +09:00
$table->unsignedTinyInteger('type');
$table->unsignedBigInteger('father_id')->nullable();
$table->string('email', 255)->unique();
$table->string('token', 64)->unique();
$table->dateTime('ttl');
$table->unsignedInteger('relation_limit');
$table->timestamps();
2021-08-13 13:17:12 +09:00
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('email_activations');
}
}