mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:21:10 +02:00
Projects included: - maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing) - manacore (Expo mobile + SvelteKit web + Astro landing) - manadeck (NestJS backend + Expo mobile + SvelteKit web) - memoro (Expo mobile + SvelteKit web + Astro landing) This commit preserves the current state before monorepo restructuring. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
35 lines
No EOL
961 B
SQL
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; |