reza_rahem
reza_rahem
DTDrizzle Team
Created by reza_rahem on 5/18/2024 in #help
How to start a serial id from a custom number (e.g. like 1001)
Hi I have a simple table called PRODUCT. I want the primary key id starts from 1001 not from 1 this is my table
export const product = pgTable('product', {
id: serial('id').primaryKey(),
productName: text('product_name').notNull();
export const product = pgTable('product', {
id: serial('id').primaryKey(),
productName: text('product_name').notNull();
6 replies