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.
Just CREATE/ALTER/DROP — no trailing SELECT needed.
Sign in to see submission history
Sign inSign in to use AI Mentor
Sign inNo starting schema
This task starts with no tables — you'll create them via CREATE TABLE.