first commit

This commit is contained in:
Sampanna Rimal
2024-08-27 17:48:06 +05:45
commit 53c0140f58
10839 changed files with 1125847 additions and 0 deletions

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_orders', function (Blueprint $table) {
$table->id();
$table->string('order_code')->nullable();
$table->unsignedBigInteger('order_detail_id')->nullable();
$table->unsignedBigInteger('customer_id')->nullable();
$table->unsignedBigInteger('buyer_id')->nullable();
$table->date('order_date')->nullable();
$table->date('delivery_date')->nullable();
$table->float('discount_amt', 14, 2)->nullable();
$table->float('tax', 14, 2)->nullable();
$table->float('sub_total', 14, 2)->nullable();
$table->float('total_amt', 14, 2)->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tbl_orders');
}
};

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
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('tbl_order_details', function (Blueprint $table) {
$table->id();
$table->string('supplier_name')->nullable();
$table->string('nationalities_id')->nullable();
$table->string('email')->nullable();
$table->string('contact')->nullable();
$table->string('profile_picture')->nullable();
$table->text('permanent_address')->nullable();
$table->string('status')->nullable()->default(11);
$table->string('remarks')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tbl_order_details');
}
};

View File

View File

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