feat: Added StayType management with CRUD operations and DataTables integration

This commit is contained in:
2025-08-14 17:58:55 +05:45
parent 7771d57642
commit dee5d001b1
9 changed files with 369 additions and 0 deletions

View File

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