This commit is contained in:
Sampanna Rimal
2024-09-11 12:32:15 +05:45
parent 82fab174dc
commit afb2c202d6
170 changed files with 3352 additions and 363 deletions

View File

@ -0,0 +1,47 @@
<?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_salesentries', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->string('slug')->nullable();
$table->date('sales_date')->nullable();
$table->unsignedBigInteger('customer_id')->nullable();
$table->unsignedBigInteger('product_id')->nullable();
$table->unsignedBigInteger('category_id')->nullable();
$table->unsignedBigInteger('stock_id')->nullable();
$table->unsignedBigInteger('size_id')->nullable();
$table->string('payment')->nullable();
$table->unsignedBigInteger('paymentmode_id')->nullable();
$table->string('paymentref')->nullable();
$table->decimal('sub_total', 10, 2)->nullable();
$table->decimal('tax', 10, 2)->nullable();
$table->decimal('discount_amt', 10, 2)->nullable();
$table->decimal('total_amt', 10, 2)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tbl_salesentries');
}
};

View File

@ -0,0 +1,44 @@
<?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_salesentrydetails', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('salesentry_id')->nullable();
$table->unsignedBigInteger('product_id')->nullable();
$table->unsignedBigInteger('category_id')->nullable();
$table->unsignedBigInteger('stock_id')->nullable();
$table->unsignedBigInteger('size_id')->nullable();
$table->string('unit')->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_salesentrydetails');
}
};