Files
sam-api/database/migrations/2025_07_23_125354_create_files_table.php

29 lines
829 B
PHP
Raw Normal View History

<?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('files', function (Blueprint $table) {
$table->id();
$table->unsignedBigInteger('tenant_id')->comment('멀티테넌시');
$table->string('file_path', 255)->comment('저장경로');
$table->string('file_name', 255);
$table->integer('file_size')->nullable();
$table->string('mime_type', 50)->nullable();
$table->string('description', 255)->nullable();
$table->timestamps();
$table->softDeletes();
});
}
public function down()
{
Schema::dropIfExists('files');
}
};