changes
This commit is contained in:
0
Modules/SalesEntry/database/migrations/.gitkeep
Normal file
0
Modules/SalesEntry/database/migrations/.gitkeep
Normal 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');
|
||||
}
|
||||
};
|
||||
|
@ -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');
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user