topnotch_website/database/migrations/013_create_service_files_table.php

30 lines
834 B
PHP
Raw Normal View History

2024-09-09 15:29:31 -07:00
<?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();
2024-09-20 12:12:45 -07:00
// $table->string('notes')->nullable();
2024-09-09 15:29:31 -07:00
$table->softDeletes();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('service_files');
}
};