first commit
This commit is contained in:
0
Modules/Office/database/migrations/.gitkeep
Normal file
0
Modules/Office/database/migrations/.gitkeep
Normal 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.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tbl_generators', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('model')->nullable();
|
||||
$table->string('location')->nullable();
|
||||
$table->string('manufacturer')->nullable();
|
||||
$table->float('capacity')->nullable();
|
||||
$table->string('serial_number')->nullable();
|
||||
$table->string('fuel_type')->nullable();
|
||||
$table->date('installation_date')->nullable();
|
||||
$table->date('last_maintenance_date')->nullable();
|
||||
$table->date('next_maintenance_due')->nullable();
|
||||
$table->date('warranty_expiry_date')->nullable();
|
||||
$table->float('fuel_tank_capacity')->nullable();
|
||||
$table->integer('status')->default(11);
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_generators');
|
||||
}
|
||||
};
|
@ -0,0 +1,41 @@
|
||||
<?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_generator_log_books', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('generator_id')->nullable();
|
||||
$table->string('log_type')->nullable();
|
||||
$table->date('from')->nullable();
|
||||
$table->date('to')->nullable();
|
||||
$table->date('servicing_date')->nullable();
|
||||
$table->decimal('fee')->nullable();
|
||||
$table->string('by')->nullable();
|
||||
$table->string('diesel_consumed')->nullable();
|
||||
$table->string('mobile_consumed')->nullable();
|
||||
$table->integer('status')->default(11);
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_generator_log_books');
|
||||
}
|
||||
};
|
@ -0,0 +1,36 @@
|
||||
<?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_contracts', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name')->nullable();
|
||||
$table->string('party')->nullable();
|
||||
$table->date('contract_date')->nullable();
|
||||
$table->date('expiry_date')->nullable();
|
||||
$table->text('document')->nullable();
|
||||
$table->integer('status')->default(11);
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_contracts');
|
||||
}
|
||||
};
|
@ -0,0 +1,50 @@
|
||||
<?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_deposits', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->text('title')->nullable();
|
||||
$table->unsignedDouble('total_amount')->nullable();
|
||||
$table->text('amount_in_words')->nullable();
|
||||
$table->text('voucher')->nullable();
|
||||
$table->unsignedInteger('thousand')->nullable();
|
||||
$table->unsignedInteger('five_hundred')->nullable();
|
||||
$table->unsignedInteger('hundred')->nullable();
|
||||
$table->unsignedInteger('fifty')->nullable();
|
||||
$table->unsignedInteger('twenty')->nullable();
|
||||
$table->unsignedInteger('ten')->nullable();
|
||||
$table->unsignedInteger('five')->nullable();
|
||||
$table->unsignedInteger('two')->nullable();
|
||||
$table->unsignedInteger('one')->nullable();
|
||||
$table->date('deposited_date')->nullable();
|
||||
$table->string('account_no')->nullable();
|
||||
$table->string('party')->nullable();
|
||||
$table->string('received_by')->nullable();
|
||||
$table->string('deposited_by')->nullable();
|
||||
$table->integer('status')->default(11);
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_deposits');
|
||||
}
|
||||
};
|
@ -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.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('tbl_purchase_services', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('purchase_name')->nullable();
|
||||
$table->string('party')->nullable();
|
||||
$table->string('contract_name')->nullable();
|
||||
$table->date('contract_validity')->nullable();
|
||||
$table->date('purchased_date')->nullable();
|
||||
$table->string('reference_no')->nullable();
|
||||
$table->string('vat_no')->nullable();
|
||||
$table->string('contact_no')->nullable();
|
||||
$table->text('address')->nullable();
|
||||
$table->integer('quantity')->nullable();
|
||||
$table->float('rate')->nullable();
|
||||
$table->double('total_amount')->nullable();
|
||||
$table->mediumText('description')->nullable();
|
||||
$table->mediumText('remarks')->nullable();
|
||||
$table->integer('status')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_purchase_services');
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user