I'm trying to create a sequence for a product id to start at 100 in Supabase SQL editor and I'm getting this error:
Failed to validate SQL query: syntax error at or near ")"
What am I doing wrong in this code?
create sequence product_id_seq
start with 100
increment by 1
no maxvalue
no minvalue;
create table products
(
id int4 not null default nextval('product_id_seq'),
name text not null,
price numeric(10,2) not null,
description text,
category_id integer references categories (id),
preview text,
images text[],
stock integer not null,
sale boolean,
sale_price numeric(10,2),
sale_text text,
featured integer references featured (id),
primary key (id)
);