Complete the code to create a new table in Supabase using SQL.
CREATE TABLE [1] (id SERIAL PRIMARY KEY, name TEXT, active BOOLEAN DEFAULT true);The table name should be users to store user data.
Complete the code to insert a new user into the users table.
INSERT INTO users (name) VALUES ([1]);String values in SQL must be enclosed in single quotes.
Fix the error in the SQL query to select all users.
SELECT * FROM [1];The correct table name is users, matching the table created earlier.
Fill both blanks to create a Supabase client and connect to the database.
const supabase = createClient([1], [2]);
The first argument is the Supabase URL, and the second is the public anonymous key for client access.
Fill all three blanks to write a query that fetches active users from the users table.
const { data, error } = await supabase.from([1]).select([2]).eq([3], true);This query selects all columns (*) from the 'users' table where the 'active' column is true.
