#1047

No Duplicate Team Memberships

Design the memberships table for team participation. It needs id as the primary key, user_id, and team_id; the same pair of user_id and team_id must appear at most once.

Just CREATE/ALTER/DROP — no trailing SELECT needed.

Your query result will appear here

No starting schema

This task starts with no tables — you'll create them via CREATE TABLE.