File: /home/posscale/www/printmanager/database/migrations/2025_09_22_125022_create_supplier_table.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('supplier', function (Blueprint $table) {
$table->id();
$table->string('name', 100)->unique();
$table->string('contact_email', 255)->nullable();
$table->string('contact_phone', 50)->nullable();
$table->string('website', 255)->nullable();
$table->text('api')->nullable();
$table->string('freight_conditions')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('supplier');
}
};