agregar stock al schema

This commit is contained in:
Cat /dev/Nulo 2023-12-22 15:45:20 -03:00
parent 70679798d7
commit 5e55ad7131

View file

@ -1,9 +1,10 @@
import { integer, sqliteTable, text } from "drizzle-orm/sqlite-core";
import { integer, sqliteTable, text, b } from "drizzle-orm/sqlite-core";
export const precios = sqliteTable("precios", {
id: integer("id", { mode: "number" }).primaryKey({ autoIncrement: true }),
fetchedAt: integer("fetched_at", { mode: "timestamp" }).notNull(),
precioCentavos: integer("precio_centavos").notNull(),
ean: text("ean").notNull(),
fetchedAt: integer("fetched_at", { mode: "timestamp" }).notNull(),
precioCentavos: integer("precio_centavos"),
inStock: integer("in_stock", { mode: "boolean" }),
url: text("url"),
});