firstcommit
This commit is contained in:
0
Modules/Billing/database/factories/.gitkeep
Normal file
0
Modules/Billing/database/factories/.gitkeep
Normal file
0
Modules/Billing/database/migrations/.gitkeep
Normal file
0
Modules/Billing/database/migrations/.gitkeep
Normal file
@ -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_billing_components', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('title')->nullable();
|
||||
$table->string('alias')->nullable();
|
||||
$table->string('unit')->nullable();
|
||||
$table->double('price')->nullable();
|
||||
$table->boolean('taxable')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->text('remarks')->nullable();
|
||||
$table->integer('status')->default(11);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_billing_components');
|
||||
}
|
||||
};
|
0
Modules/Billing/database/seeders/.gitkeep
Normal file
0
Modules/Billing/database/seeders/.gitkeep
Normal file
16
Modules/Billing/database/seeders/BillingDatabaseSeeder.php
Normal file
16
Modules/Billing/database/seeders/BillingDatabaseSeeder.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Billing\Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class BillingDatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// $this->call([]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user