8 lines
303 B
TypeScript
8 lines
303 B
TypeScript
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
|
|
import { products } from "./products";
|
|
|
|
export const inventory = sqliteTable("inventory", {
|
|
productId: text("product_id").primaryKey().references(() => products.id),
|
|
availableQuantity: integer("available_quantity").notNull()
|
|
});
|