[FEAT] 實作公共事業費附件上傳管理與更新 UI 協作規範防呆機制
All checks were successful
ERP-Deploy-Demo / deploy-demo (push) Successful in 55s

This commit is contained in:
2026-03-06 13:21:14 +08:00
parent 951005c616
commit 8e0252e8fc
10 changed files with 511 additions and 6 deletions

View File

@@ -7,9 +7,16 @@ use Illuminate\Database\Eloquent\Model;
class UtilityFee extends Model
{
/** @use HasFactory<\Database\Factories\UtilityFeeFactory> */
use HasFactory;
/**
* 此公共事業費的附件
*/
public function attachments()
{
return $this->hasMany(UtilityFeeAttachment::class);
}
// 狀態常數
const STATUS_PENDING = 'pending';
const STATUS_PAID = 'paid';