One Active Subscription
Create the user_subscription table for user subscriptions. It needs id as an int primary key, required user_id as int, and required status as text; the database must prevent two rows with status = 'active' for the same user_id.
Jen CREATE/ALTER/DROP — závěrečný SELECT není potřeba.
Přihlaste se, abyste viděli historii odevzdání
Přihlásit sePřihlaste se, abyste mohli použít AI mentora
Přihlásit seŽádné výchozí schéma
Tato úloha začíná bez tabulek — vytvoříte je pomocí CREATE TABLE.