bigIncrements('id')->comment('게시판 고유번호'); $table->unsignedBigInteger('tenant_id')->comment('테넌트 고유번호'); $table->string('board_code', 30)->comment('게시판 코드'); $table->string('name', 100)->comment('게시판 이름'); $table->string('description')->nullable()->comment('게시판 설명'); $table->string('editor_type', 20)->default('wysiwyg')->comment('에디터 유형'); $table->boolean('allow_files')->default(true)->comment('파일첨부 허용 여부'); $table->integer('max_file_count')->default(5)->comment('최대 첨부파일 수'); $table->integer('max_file_size')->default(20480)->comment('최대 첨부파일 크기(KB)'); $table->json('extra_settings')->nullable()->comment('추가 설정(JSON)'); $table->boolean('is_active')->default(true)->comment('활성화 여부'); $table->timestamps(); $table->unique(['tenant_id', 'board_code']); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('boards'); } };