админка

This commit is contained in:
2026-03-13 23:33:35 +04:00
parent bae063a4fa
commit eaedeeb52b
41 changed files with 2506 additions and 67 deletions
@@ -0,0 +1,27 @@
<?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('invite_codes', function (Blueprint $table) {
$table->id();
$table->string('code', 32)->unique();
$table->unsignedInteger('created_by_account_id')->nullable()->index();
$table->string('created_by_username', 32)->nullable();
$table->unsignedInteger('redeemed_by_account_id')->nullable()->index();
$table->string('redeemed_by_username', 32)->nullable();
$table->timestamp('redeemed_at')->nullable()->index();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('invite_codes');
}
};