export const orderItems = pgTable("orderItem", {
product_id: serial("product_id").notNull(),
order_id: serial("order_id").notNull(),
quantity: integer("quantity")
},
(orderItems) => ({
compoundKey: primaryKey(orderItems.product_id, orderItems.order_id),
}
))
export const orderItems = pgTable("orderItem", {
product_id: serial("product_id").notNull(),
order_id: serial("order_id").notNull(),
quantity: integer("quantity")
},
(orderItems) => ({
compoundKey: primaryKey(orderItems.product_id, orderItems.order_id),
}
))