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,38 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tbl_purchaseentries', function (Blueprint $table) {
$table->id();
$table->date('purchase_date')->nullable();
$table->unsignedBigInteger('supplier_id')->nullable();
$table->string('payment')->nullable();
$table->unsignedBigInteger('paymentmode_id')->nullable();
$table->string('paymentref')->nullable();
$table->decimal('total_amt', 10, 2)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tbl_purchaseentries');
}
};

View File

@ -0,0 +1,43 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tbl_purchaseentrydetails', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('purchaseentry_id')->nullable();
$table->unsignedBigInteger('ingredient_id')->nullable();
$table->unsignedBigInteger('ingredient_category_id')->nullable();
$table->unsignedBigInteger('unit_id')->nullable();
$table->unsignedBigInteger('stock_id')->nullable();
$table->integer('rate')->nullable();
$table->integer('quantity')->nullable();
$table->decimal('amount', 6);
$table->text('desc')->nullable();
$table->integer('status')->nullable();
$table->text('remarks')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tbl_purchaseentrydetails');
}
};

View File

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