firstcommit
This commit is contained in:
0
Modules/Customer/database/factories/.gitkeep
Normal file
0
Modules/Customer/database/factories/.gitkeep
Normal file
0
Modules/Customer/database/migrations/.gitkeep
Normal file
0
Modules/Customer/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_customers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('first_name')->nullable();
|
||||
$table->string('last_name')->nullable();
|
||||
$table->string('contact')->nullable();
|
||||
$table->string('phone')->nullable();
|
||||
$table->string('email')->nullable();
|
||||
$table->text('address')->nullable();
|
||||
$table->string('company_name')->nullable();
|
||||
$table->string('company_pan')->nullable();
|
||||
$table->text('company_address')->nullable();
|
||||
$table->string('company_contact')->nullable();
|
||||
$table->string('company_phone')->nullable();
|
||||
$table->string('profile_pic')->nullable();
|
||||
$table->unsignedBigInteger('createdBy')->nullable();
|
||||
$table->unsignedBigInteger('updatedBy')->nullable();
|
||||
$table->integer('status')->nullable()->default(11);
|
||||
$table->text('remarks')->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('tbl_customers');
|
||||
}
|
||||
};
|
0
Modules/Customer/database/seeders/.gitkeep
Normal file
0
Modules/Customer/database/seeders/.gitkeep
Normal file
16
Modules/Customer/database/seeders/CustomerDatabaseSeeder.php
Normal file
16
Modules/Customer/database/seeders/CustomerDatabaseSeeder.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Customer\database\seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class CustomerDatabaseSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// $this->call([]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user