firstcommit

This commit is contained in:
2024-05-16 09:31:08 +05:45
commit 34d9672cb8
1396 changed files with 86482 additions and 0 deletions

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.
*/
public function up(): void
{
Schema::create('tbl_estimates', function (Blueprint $table) {
$table->id();
$table->string('estimate_no');
$table->string('title')->nullable();
$table->dateTime('date')->nullable();
$table->unsignedBigInteger('customer_id')->nullable();
$table->unsignedBigInteger('fiscal_year_id')->nullable();
$table->dateTime('validity')->nullable();
$table->text('conditions')->nullable();
$table->integer('approval_status')->nullable();
$table->unsignedBigInteger('approval_by')->nullable();
$table->text('approval_remarks')->nullable();
$table->dateTime('approval_on')->nullable();
$table->longText('description')->nullable();
$table->integer('status')->default(11);
$table->unsignedBigInteger('createdBy')->nullable();
$table->unsignedBigInteger('updatedBy')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tbl_estimates');
}
};

View File

@ -0,0 +1,39 @@
<?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_estimate_details', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->unsignedBigInteger('estimate_id')->nullable();
$table->unsignedBigInteger('billing_component_id')->nullable();
$table->unsignedBigInteger('fiscal_year_id')->nullable();
$table->decimal('price', 10, 2)->nullable();
$table->integer('qty')->nullable();
$table->decimal('tax_amount', 10, 2)->nullable();
$table->unsignedBigInteger('createdBy')->nullable();
$table->unsignedBigInteger('updatedBy')->nullable();
$table->text('remarks')->nullable();
$table->integer('status')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('tbl_estimate_details');
}
};

View File

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