Files
nnterp-react-admin/database/migrations/2024_01_15_000000_create_notifications_table.php
2026-03-13 20:49:46 +08:00

29 lines
813 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
if(!Schema::hasTable('notifications'))
{
Schema::create('notifications', function (Blueprint $table) {
$table->id();
$table->string('module')->nullable();
$table->string('type', 188)->nullable();
$table->string('action')->nullable();
$table->string('status')->nullable();
$table->string('permissions')->nullable();
$table->timestamps();
});
}
}
public function down(): void
{
Schema::dropIfExists('notifications');
}
};