Files
ai-wave-02/apps/api/src/db/schema/inventory.ts
T
2026-09-03 22:02:52 +09:00

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()
});