ufutx.dma/database/migrations/2023_08_15_164651_create_table_office.php
2026-03-04 14:42:40 +08:00

36 lines
893 B
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.
*
* @return void
*/
public function up()
{
Schema::create('office', function (Blueprint $table) {
$table->id();
$table->string('office_name')->comment('办公室名');
$table->unsignedBigInteger('status')->comment('办公室状态0:正常,1:隐藏')->default(0);
$table->text('images')->nullable()->comment('缩略图');
$table->text('detail_images')->nullable()->comment('切割图');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('office');
}
};