Files
eatvio-infra/database/migrations/2022_08_31_111901_diet_author.php
2023-12-29 10:58:52 +03:00

32 lines
607 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('diet_author', function (Blueprint $table) {
$table->bigInteger('user_id');
$table->bigInteger('diet_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('diet_author');
}
};