managarten/apps-archived/maerchenzauber/apps/backend/test-public-characters.sql
Till-JS 61d181fbc2 chore: archive inactive projects to apps-archived/
Move inactive projects out of active workspace:
- bauntown (community website)
- maerchenzauber (AI story generation)
- memoro (voice memo app)
- news (news aggregation)
- nutriphi (nutrition tracking)
- reader (reading app)
- uload (URL shortener)
- wisekeep (AI wisdom extraction)

Update CLAUDE.md documentation:
- Add presi to active projects
- Document archived projects section
- Update workspace configuration

Archived apps can be re-activated by moving back to apps/

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-29 07:03:59 +01:00

35 lines
No EOL
961 B
SQL

-- Test query to check public characters
-- First, let's see all characters and their sharing settings
SELECT
id,
name,
sharing_preference,
is_published,
published_at,
share_code,
user_id,
created_at
FROM characters
ORDER BY created_at DESC
LIMIT 10;
-- Check specifically for public/commons characters
SELECT
id,
name,
sharing_preference,
is_published,
published_at
FROM characters
WHERE sharing_preference IN ('public', 'commons')
OR is_published = true;
-- Check if any character has is_published = true
SELECT
COUNT(*) as total,
COUNT(CASE WHEN is_published = true THEN 1 END) as published,
COUNT(CASE WHEN sharing_preference = 'public' THEN 1 END) as public_pref,
COUNT(CASE WHEN sharing_preference = 'commons' THEN 1 END) as commons_pref,
COUNT(CASE WHEN sharing_preference = 'private' THEN 1 END) as private_pref,
COUNT(CASE WHEN sharing_preference = 'link_only' THEN 1 END) as link_only_pref
FROM characters;