add tables create_customer_accounts
This commit is contained in:
parent
ed83fc35bc
commit
e2562a79eb
|
|
@ -13,7 +13,7 @@ DB_HOST=127.0.0.1
|
|||
DB_PORT=3306
|
||||
DB_DATABASE=iLink_preprod
|
||||
DB_USERNAME=root
|
||||
DB_PASSWORD=vps@2017GA
|
||||
DB_PASSWORD=@iLink@2025
|
||||
|
||||
CACHE_DRIVER=file
|
||||
QUEUE_CONNECTION=sync
|
||||
|
|
@ -26,7 +26,7 @@ TWILIO_SMS_FROM="+447400348273"
|
|||
|
||||
MAIL_HOST=mail.ilink-app.com
|
||||
MAIL_USERNAME=noreply@ilink-app.com
|
||||
MAIL_PASSWORD=Reply@iLink2022@@@
|
||||
MAIL_PASSWORD=ijQa[(V2Xm{F2e9SEso}
|
||||
MAIL_FROM_ADDRESS=noreply@ilink-app.com
|
||||
MAIL_FROM_NAME="iLink World"
|
||||
MAIL_ENCRYPTION=tls
|
||||
|
|
@ -35,11 +35,11 @@ VISA_API_URL=10.24.96.5:81
|
|||
VISA_API_USERNAME=admin
|
||||
VISA_API_PASSWORD=PasswordHere!
|
||||
|
||||
NOTIFICATION_SERVICE_URL=localhost:8083
|
||||
NOTIFICATION_SERVICE_URL=https://test.ilink-app.com:8083
|
||||
NOTIFICATION_SERVICE_KEY=RfXvPQzQRgwpzQYPnLfWpZzgx4QseHlg
|
||||
|
||||
|
||||
PAYMENT_SERVICE_URL=localhost:8087
|
||||
PAYMENT_SERVICE_URL=https://test.ilink-app.com:8087
|
||||
PAYMENT_SERVICE_KEY=U14YhuyFhweMeYpIYj8Ft2jm4cVgbMzD
|
||||
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,57 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateCustomerAccountTables extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
// Table principale : customer_account_types
|
||||
Schema::create('customer_account_types', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->text('description')->nullable();
|
||||
$table->unsignedBigInteger('parent_id')->nullable();
|
||||
$table->boolean('active')->default(true);
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('parent_id')
|
||||
->references('id')
|
||||
->on('customer_account_types')
|
||||
->onDelete('set null');
|
||||
});
|
||||
|
||||
// Table liée : customer_account_type_documents
|
||||
Schema::create('customer_account_type_documents', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('account_type_id');
|
||||
$table->string('document_name');
|
||||
$table->boolean('is_mandatory')->default(false);
|
||||
$table->text('description')->nullable();
|
||||
$table->timestamps();
|
||||
|
||||
$table->foreign('account_type_id')
|
||||
->references('id')
|
||||
->on('customer_account_types')
|
||||
->onDelete('cascade');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('customer_account_type_documents');
|
||||
Schema::dropIfExists('customer_account_types');
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue