29 lines
771 B
PHP
29 lines
771 B
PHP
|
<?php
|
||
|
|
||
|
use Illuminate\Database\Migrations\Migration;
|
||
|
use Illuminate\Database\Schema\Blueprint;
|
||
|
use Illuminate\Support\Facades\Schema;
|
||
|
|
||
|
return new class extends Migration
|
||
|
{
|
||
|
public function up(): void
|
||
|
{
|
||
|
Schema::create('service_files', function (Blueprint $table) {
|
||
|
$table->id();
|
||
|
$table->string('code');
|
||
|
$table->string('name');
|
||
|
$table->decimal('width')->nullable();
|
||
|
$table->decimal('height')->nullable();
|
||
|
$table->string('unit')->default('inch');
|
||
|
$table->integer('setup_number')->nullable();
|
||
|
$table->softDeletes();
|
||
|
$table->timestamps();
|
||
|
});
|
||
|
}
|
||
|
|
||
|
public function down(): void
|
||
|
{
|
||
|
Schema::dropIfExists('service_files');
|
||
|
}
|
||
|
};
|