Files
sam-api/app/Models/Boards/Board.php
hskwon cc206fdbed style: Laravel Pint 코드 포맷팅 적용
- PSR-12 스타일 가이드 준수
- 302개 파일 스타일 이슈 자동 수정
- 코드 로직 변경 없음 (포맷팅만)
2025-11-06 17:45:49 +09:00

29 lines
581 B
PHP

<?php
namespace App\Models\Boards;
use Illuminate\Database\Eloquent\Model;
/**
* @mixin IdeHelperBoard
*/
class Board extends Model
{
protected $table = 'boards';
protected $fillable = [
'tenant_id', 'board_code', 'name', 'description', 'editor_type',
'allow_files', 'max_file_count', 'max_file_size', 'extra_settings', 'is_active',
];
public function customFields()
{
return $this->hasMany(BoardSetting::class, 'board_id');
}
public function posts()
{
return $this->hasMany(Post::class, 'board_id');
}
}