restaurant changes

This commit is contained in:
Sampanna Rimal
2024-09-19 18:33:08 +05:45
parent 0b438e302d
commit 2fa9d47a73
115 changed files with 3489 additions and 67 deletions

View File

@ -0,0 +1,31 @@
<?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('tbl_ingredient_categories', function (Blueprint $table) {
$table->id();
$table->string('title');
$table->string('code')->nullable();
$table->string('slug')->nullable();
$table->integer('status')->default(11);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tbl_ingredient_categories');
}
};

View File

@ -0,0 +1,37 @@
<?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('tbl_ingredients', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('code');
$table->longText('desc')->nullable();
$table->longText('remarks')->nullable();
$table->decimal('price', 10, 2)->nullable();
$table->integer('qty')->nullable();
$table->unsignedBigInteger('ingredient_category_id')->nullable();
$table->unsignedBigInteger('supplier_id')->nullable();
$table->unsignedBigInteger('warehouse_id')->nullable();
$table->integer('status')->default(11);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tbl_ingredients');
}
};

View File

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up()
{
Schema::create('tbl_units', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->string('code')->nullable();
$table->string('slug')->nullable();
$table->text('description')->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->default(11);
$table->text('remarks')->nullable();
$table->dateTime('created_at')->nullable();
$table->integer('createdby')->nullable();
$table->dateTime('updated_at')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tbl_masterunits');
}
};

View File

@ -0,0 +1,16 @@
<?php
namespace Modules\Ingredient\Database\Seeders;
use Illuminate\Database\Seeder;
class IngredientDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// $this->call([]);
}
}