File: /home/posscale/.trash/1database/migrations/tenant/2024_05_13_114807_create_table_smtp_datails.php
<?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('smtp_datails', function (Blueprint $table) {
$table->id();
$table->foreignId('printer_id');
$table->string('host', 255);
$table->boolean('auth');
$table->string('user_name', 255);
$table->string('user_password', 255);
$table->integer('port');
$table->string('from', 255);
$table->string('from_name', 255);
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('smtp_datails');
}
};