2022_10_21_141654_create_tematiks_table.php
914 Bytes
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTematiksTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tematiks', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->string('nama')->nullable();
$table->string('deskripsi')->nullable();
$table->foreignUuid('peraturan_id')->nullable()->constrained();
$table->timestamp('created_at')->nullable();
$table->timestamp('updated_at')->nullable();
$table->timestamp('deleted_at')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tematiks');
}
}