mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 22:26:19 +00:00
agregar stock al schema
This commit is contained in:
parent
70679798d7
commit
5e55ad7131
1 changed files with 4 additions and 3 deletions
|
@ -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"),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue