v7.0.0 release

This commit is contained in:
HeuJung committed 2026-07-01 10:30:32 +09:00
1 parent 0e7fa04b03
commit c4ea9a6cd1
3582 files changed
+626189 -160151

No files matched your search

@@ -7,6 +7,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Carbon;
use Illuminate\Support\Str;
/**
@@ -30,9 +31,9 @@ use Illuminate\Support\Str;
* @property int $order
* @property array|null $meta
* @property int|null $created_by
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
* @property Carbon|null $created_at
* @property Carbon|null $updated_at
* @property Carbon|null $deleted_at
* @property-read string $download_url
* @property-read string|null $preview_url
* @property-read bool $is_image
@@ -77,6 +78,7 @@ class Attachment extends Model
'order',
'meta',
'created_by',
'trigger_type',
];
/**
@@ -0,0 +1,51 @@
<?php
namespace Modules\Sirsoft\Board\Models;
use Illuminate\Database\Eloquent\Model;
/**
* 게시판 일별 집계 모델
*
* board_stats 테이블 — 하루 1행. 대시보드 스케쥴러가 upsert 하고
* 대시보드 API(overview/post-graph)가 읽는다. 원본 풀스캔을 피하기 위한 집계 캐시.
*
* @property int $id
* @property \Illuminate\Support\Carbon $date
* @property int $post_count
* @property int $comment_count
* @property \Illuminate\Support\Carbon|null $created_at
* @property \Illuminate\Support\Carbon|null $updated_at
*/
class BoardStat extends Model
{
/**
* 테이블명
*/
protected $table = 'board_stats';
/**
* 대량 할당 가능 필드
*
* @var array<int, string>
*/
protected $fillable = [
'date',
'post_count',
'comment_count',
];
/**
* 타입 캐스팅
*
* @return array<string, string>
*/
protected function casts(): array
{
return [
'date' => 'date',
'post_count' => 'integer',
'comment_count' => 'integer',
];
}
}