<?php

use App\Support\SiteCsDefaultRolePermissions;
use App\Support\SiteFinanceDefaultRolePermissions;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration
{
    public function up(): void
    {
        SiteFinanceDefaultRolePermissions::ensurePlatformSiteFinanceRole();
        SiteCsDefaultRolePermissions::ensurePlatformSiteCsRole();
    }

    public function down(): void
    {
        // 不回滚内置角色，避免已绑定的站点财务/客服账号失权。
    }
};
