first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,58 @@
<?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(): void
{
Schema::create('employees', function (Blueprint $table) {
$table->id();
$table->string('first_name');
$table->string('middle_name')->nullable();
$table->string('last_name');
$table->date('dob')->nullable();
$table->string('email')->nullable();
$table->string('contact', 20)->nullable();
$table->string('mobile', 20)->nullable();
$table->string('photo')->nullable();
$table->string('guardian_name')->nullable();
$table->string('guardian_contact')->nullable();
$table->text('temporary_address')->nullable();
$table->text('permanent_address')->nullable();
$table->string('employee_code')->unique();
$table->date('join_date')->nullable();
$table->unsignedBigInteger('gender_id')->nullable();
$table->unsignedBigInteger('designation_id')->nullable();
$table->unsignedBigInteger('department_id')->nullable();
$table->unsignedBigInteger('branch_id')->nullable();
$table->unsignedBigInteger('user_id')->nullable();
$table->string('status')->default("active");
$table->unsignedBigInteger('createdby')->unsigned()->nullable();
$table->unsignedBigInteger('updatedby')->unsigned()->nullable();
$table->text('remarks')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('employees');
}
};

View File

@@ -0,0 +1,36 @@
<?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(): void
{
Schema::create('departments', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->string('slug')->nullable();
$table->integer('status')->default(1);
$table->integer('order')->unsigned()->nullable();
$table->unsignedBigInteger('user_id')->unsigned()->nullable();
$table->unsignedBigInteger('createdby')->unsigned()->nullable();
$table->unsignedBigInteger('updatedby')->unsigned()->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('departments');
}
};

View File

@@ -0,0 +1,36 @@
<?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(): void
{
Schema::create('designations', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->string('slug')->nullable();
$table->integer('status')->default(1);
$table->integer('order')->unsigned()->nullable();
$table->unsignedBigInteger('department_id')->unsigned()->nullable();
$table->unsignedBigInteger('createdby')->unsigned()->nullable();
$table->unsignedBigInteger('updatedby')->unsigned()->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('designations');
}
};