Complete the code to define a column with a text data type in Supabase.
CREATE TABLE users (username [1] NOT NULL);The TEXT data type stores variable-length strings in Supabase.
Complete the code to add a primary key constraint to the id column.
CREATE TABLE products (id [1] PRIMARY KEY, name TEXT);The SERIAL type auto-increments integers and is commonly used for primary keys.
Fix the error in the column definition to correctly enforce a NOT NULL constraint.
CREATE TABLE orders (order_id INTEGER [1]);The NOT NULL constraint ensures the column cannot have empty values.
Fill both blanks to create a table with a unique email column and a created_at timestamp with default current time.
CREATE TABLE users (email [1] UNIQUE, created_at [2] DEFAULT now());
Email should be stored as TEXT and timestamps use TIMESTAMP type with default current time.
Fill all three blanks to define a table with an id primary key, a price column that cannot be negative, and a status column with a default value.
CREATE TABLE items (id [1] PRIMARY KEY, price [2] CHECK (price >= 0), status [3] DEFAULT 'available');
SERIAL is used for auto-increment id, NUMERIC for price with a check constraint, and TEXT for status with a default value.