CREATE TABLE IF NOT EXISTS auth_code ( id uuid PRIMARY KEY, email text NOT NULL UNIQUE, code text NOT NULL, created_at timestamp NOT NULL, failed_attempts integer DEFAULT 0 );