DONE: layout letter with letterhead and footer, notification for newly...

This commit is contained in:
ISMAIL MASSERAN
2026-06-28 02:16:49 +00:00
parent 94ecbe5887
commit 034ecf947f
400 changed files with 29802 additions and 5446 deletions
@@ -13,19 +13,16 @@ return new class extends Migration
{
Schema::create('documents', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->string('documentable_type');
$table->unsignedBigInteger('documentable_id');
$table->uuidMorphs('documentable');
$table->string('name');
$table->string('path', 500);
$table->unsignedBigInteger('file_size')->nullable();
$table->string('mime_type', 100)->nullable();
$table->string('type', 100)->nullable()->default('general')->index();
$table->text('description')->nullable();
$table->uuid('uploaded_by')->foreign('users')->onDelete('restrict');
$table->foreignUuid('uploaded_by')->nullable()->constrained('users')->nullOnDelete();
$table->timestamps();
$table->softDeletes();
$table->index(['documentable_type', 'documentable_id']);
});
}
@@ -11,12 +11,15 @@ return new class extends Migration
*/
public function up(): void
{
Schema::create('countries', function (Blueprint $table) {
Schema::create('password_reset_otps', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->string('code', 2);
$table->string('name', 100);
$table->foreignUuid('user_id')->constrained('users')->cascadeOnDelete();
$table->string('code');
$table->timestamp('expires_at');
$table->unsignedTinyInteger('attempts')->default(0);
$table->timestamps();
$table->softDeletes();
$table->index(['user_id', 'expires_at']);
});
}
@@ -25,6 +28,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('countries');
Schema::dropIfExists('password_reset_otps');
}
};