export const product = sqliteTable(
"product",
{
id: text("id").notNull().primaryKey(),
...
sellerId: text("sellerId")
.notNull()
.references(() => user.id),
},
(product) => ({
sellerIdx: index("sellerIdx").on(product.sellerId),
}),
);
export const product = sqliteTable(
"product",
{
id: text("id").notNull().primaryKey(),
...
sellerId: text("sellerId")
.notNull()
.references(() => user.id),
},
(product) => ({
sellerIdx: index("sellerIdx").on(product.sellerId),
}),
);