-- Adds "Real Estate" to the digital-asset categories of every tenant (the list is managed under Inventory > Asset Categories).
-- Idempotent: a tenant that already has the category is skipped, so it is safe to re-run.
INSERT INTO dim_asset_categories (tenant_id, name, is_active, is_deleted, created_at, updated_at)
SELECT t.id, 'Real Estate', 1, 0, NOW(), NOW()
FROM tenants t
WHERE t.is_deleted = 0
  AND NOT EXISTS (SELECT 1 FROM dim_asset_categories c WHERE c.tenant_id = t.id AND c.name = 'Real Estate');
