init
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
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()
|
||||
});
|
||||
Reference in New Issue
Block a user