export const productsTable = pgTable("products", {
id: integer().primaryKey().generatedAlwaysAsIdentity({ startWith: 1000 }),
name: varchar({ length: 255 }).notNull(),
})
const result = await db
.insert(productsTable)
.values([
{ name: 'test' },
{ name: 'test2' },
])
export const productsTable = pgTable("products", {
id: integer().primaryKey().generatedAlwaysAsIdentity({ startWith: 1000 }),
name: varchar({ length: 255 }).notNull(),
})
const result = await db
.insert(productsTable)
.values([
{ name: 'test' },
{ name: 'test2' },
])