admin login completed

This commit is contained in:
Abhishek Mali
2025-11-06 17:09:52 +05:30
parent ccbef09484
commit 3c4727acd9
18 changed files with 504 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up()
{
Schema::create('requests', function (Blueprint $table) {
$table->id(); // Auto-increment primary key
$table->string('request_id')->unique(); // Custom formatted ID like REQ-2025-000001
$table->string('customer_name');
$table->string('company_name');
$table->string('designation');
$table->string('email')->unique();
$table->string('mobile_no');
$table->string('priority')->nullable();
$table->text('address')->nullable();
$table->string('pincode')->nullable();
$table->date('date')->nullable();
$table->enum('status', ['pending', 'approved', 'rejected'])->default('pending');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('requests');
}
};