3 files added
3 files modified
| | |
| | | return $this->belongsTo('App\Models\VodafoneUser', 'VodafoneUser', 'id'); |
| | | } |
| | | |
| | | public function products() |
| | | { |
| | | return $this->hasMany('App\Models\Products','LinkedMSISDN', 'id'); |
| | | } |
| | | |
| | | } |
| | |
| | | 'LinkedMSISDN', |
| | | 'tmCode', |
| | | 'OMProductId', |
| | | 'name', |
| | | 'description', |
| | | 'activationDate' |
| | | ]; |
| | | |
| | | public function msisdn() |
New file |
| | |
| | | <?php |
| | | |
| | | use Illuminate\Database\Migrations\Migration; |
| | | use Illuminate\Database\Schema\Blueprint; |
| | | use Illuminate\Support\Facades\Schema; |
| | | |
| | | return new class extends Migration { |
| | | public function up() |
| | | { |
| | | Schema::create('fakesso_msisdn', function (Blueprint $table) { |
| | | $table->increments('id')->comment('Identificatore univoco msisdn'); |
| | | $table->bigInteger('VodafoneUser')->unsigned()->comment('Vodafone User di appartenenza'); |
| | | $table->string('MSISDN', 255)->nullable(); |
| | | $table->string('CardType', 255)->nullable(); |
| | | $table->string('IdPiano', 255)->nullable(); |
| | | $table->string('VodafoneOne', 255)->nullable(); |
| | | $table->string('TopClub', 255)->nullable(); |
| | | $table->string('SenioriryCluster', 255)->nullable(); |
| | | }); |
| | | } |
| | | |
| | | public function down() |
| | | { |
| | | Schema::dropIfExists('fakesso_msisdn'); |
| | | } |
| | | }; |
New file |
| | |
| | | <?php |
| | | |
| | | use Illuminate\Database\Migrations\Migration; |
| | | use Illuminate\Database\Schema\Blueprint; |
| | | use Illuminate\Support\Facades\Schema; |
| | | |
| | | return new class extends Migration { |
| | | public function up() |
| | | { |
| | | Schema::create('fakesso_products', function (Blueprint $table) { |
| | | $table->increments('id')->comment('Identificatore univoco profilo'); |
| | | $table->bigInteger('LinkedMSISDN')->unsigned()->comment('MSISDN di appartenenza'); |
| | | $table->string('tmCode', 255)->nullable(); |
| | | $table->string('OMProductId', 255)->nullable(); |
| | | $table->string('Name', 255)->nullable(); |
| | | $table->string('Description', 255)->nullable(); |
| | | }); |
| | | } |
| | | |
| | | public function down() |
| | | { |
| | | Schema::dropIfExists('fakesso_products'); |
| | | } |
| | | }; |
New file |
| | |
| | | <?php |
| | | |
| | | use Illuminate\Database\Migrations\Migration; |
| | | use Illuminate\Database\Schema\Blueprint; |
| | | use Illuminate\Support\Facades\Schema; |
| | | |
| | | return new class extends Migration { |
| | | public function up() |
| | | { |
| | | Schema::create('fakesso_vodafoneusers', function (Blueprint $table) { |
| | | $table->increments('id')->comment('Identificatore univoco profilo'); |
| | | $table->string('Name', 255)->nullable(); |
| | | $table->string('Surname', 255)->nullable(); |
| | | $table->string('EmailAddress', 255)->nullable(); |
| | | $table->string('ProfileIdentifier', 255)->nullable(); |
| | | $table->string('FiscalCode', 255)->nullable(); |
| | | $table->string('Type_ID', 255)->nullable(); |
| | | $table->string('Custcode', 255)->nullable(); |
| | | $table->string('EmailCSA', 255)->nullable(); |
| | | $table->string('PIN_CSA', 255)->nullable(); |
| | | $table->string('ID_CSA', 255)->nullable(); |
| | | $table->string('Sex', 255)->nullable(); |
| | | $table->string('BirthProvinceName', 255)->nullable(); |
| | | $table->string('BirthPlace', 255)->nullable(); |
| | | $table->string('HomeProvinceName', 255)->nullable(); |
| | | $table->string('MicroBusiness', 255)->nullable(); |
| | | $table->string('HomePhone', 255)->nullable(); |
| | | $table->string('Address', 255)->nullable(); |
| | | }); |
| | | } |
| | | |
| | | public function down() |
| | | { |
| | | Schema::dropIfExists('fakesso_vodafoneusers'); |
| | | } |
| | | }; |
| | |
| | | DB_CONNECTION=mysql |
| | | DB_HOST=host.docker.internal |
| | | DB_PORT=3306 |
| | | DB_DATABASE=vola_mail_tool |
| | | DB_DATABASE=fakesso |
| | | DB_USERNAME=root |
| | | DB_PASSWORD= |
| | | |