новости в админке для логин скрина

This commit is contained in:
2026-03-15 17:04:31 +04:00
parent d4880d2f05
commit 835f795a48
13 changed files with 699 additions and 2 deletions
@@ -0,0 +1,29 @@
<?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
{
Schema::create('login_screen_news', function (Blueprint $table) {
$table->id();
$table->string('title', 120);
$table->text('body');
$table->unsignedSmallInteger('sort_order')->default(0)->index();
$table->boolean('is_published')->default(true)->index();
$table->unsignedInteger('created_by_account_id')->nullable()->index();
$table->string('created_by_username', 32)->nullable();
$table->unsignedInteger('updated_by_account_id')->nullable()->index();
$table->string('updated_by_username', 32)->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('login_screen_news');
}
};