firstcommit
This commit is contained in:
0
Modules/Estimate/database/factories/.gitkeep
Normal file
0
Modules/Estimate/database/factories/.gitkeep
Normal file
0
Modules/Estimate/database/migrations/.gitkeep
Normal file
0
Modules/Estimate/database/migrations/.gitkeep
Normal 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');
|
||||
}
|
||||
};
|
@ -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');
|
||||
}
|
||||
};
|
0
Modules/Estimate/database/seeders/.gitkeep
Normal file
0
Modules/Estimate/database/seeders/.gitkeep
Normal file
16
Modules/Estimate/database/seeders/EstimateDatabaseSeeder.php
Normal file
16
Modules/Estimate/database/seeders/EstimateDatabaseSeeder.php
Normal 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([]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user