Drizzle TeamDT
Drizzle Team2y ago
30 replies
Pistonmaster

Weird type errors in Webstorm

export const priceDropAlerts = pgTable("price_drop_alerts", {
  upc: bigint("upc", {mode: "number"}).notNull().primaryKey(),
  createdAt: timestamp("created_at", {mode: "date"}).notNull(),
  updatedAt: timestamp("updated_at", {mode: "date"}).notNull(),

  productTitle: text("product_title").notNull(),
  shopType: bigint("shop_type", {mode: "number"}).notNull(),
  itemEntryId: bigint("item_entry_id", {mode: "number"}).notNull(),

  priceOld: numeric("price_old", {precision: 7, scale: 2}).notNull(),
  priceNew: numeric("price_new", {precision: 7, scale: 2}).notNull(),
  percentLess: numeric("percent_less", {precision: 7, scale: 2}).notNull(),
  priceDifference: numeric("price_difference", {precision: 7, scale: 2}).notNull(),

  seenOn: timestamp("seen_on", {mode: "date"}),
})


  "dependencies": {
    "@auth/drizzle-adapter": "^0.3.14",
    "@hookform/resolvers": "^3.3.4",
    "@opentelemetry/api": "^1.7.0",
    "@opentelemetry/instrumentation": "^0.45.1",
    "@opentelemetry/instrumentation-pg": "^0.37.2",
    "@radix-ui/react-avatar": "^1.0.4",
    "@radix-ui/react-checkbox": "^1.0.4",
    "@radix-ui/react-collapsible": "^1.0.3",
    "@radix-ui/react-dropdown-menu": "^2.0.6",
    "@radix-ui/react-label": "^2.0.2",
    "@radix-ui/react-popover": "^1.0.7",
    "@radix-ui/react-select": "^2.0.0",
    "@radix-ui/react-slot": "^1.0.2",
    "@radix-ui/react-toast": "^1.1.5",
    "@t3-oss/env-nextjs": "^0.7.1",
    "@tanstack/react-query": "^5.17.7",
    "@trpc/client": "11.0.0-next-alpha.153",
    "@trpc/next": "11.0.0-next-alpha.153",
    "@trpc/react-query": "11.0.0-next-alpha.153",
    "@trpc/server": "11.0.0-next-alpha.153",
    "@vercel/otel": "^0.3.0",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.0",
    "date-fns": "^2.30.0",
    "drizzle-orm": "^0.29.3",
    "js-md5": "^0.8.3",
    "lucide-react": "^0.292.0",
    "next": "^14.0.4",
    "next-auth": "^4.24.5",
    "next-themes": "^0.2.1",
    "path": "^0.12.7",
    "pg": "^8.11.3",
    "react": "18.2.0",
    "react-day-picker": "^8.10.0",
    "react-dom": "18.2.0",
    "react-hook-form": "^7.49.2",
    "sharp": "^0.32.6",
    "sonner": "^1.3.1",
    "superjson": "^2.2.1",
    "tailwind-merge": "^2.2.0",
    "tailwindcss-animate": "^1.0.7",
    "zod": "^3.22.4"
  },
  "devDependencies": {
    "@types/eslint": "^8.56.1",
    "@types/node": "^20.10.6",
    "@types/pg": "^8.10.9",
    "@types/react": "^18.2.47",
    "@types/react-dom": "^18.2.18",
    "@typescript-eslint/eslint-plugin": "^6.18.0",
    "@typescript-eslint/parser": "^6.18.0",
    "autoprefixer": "^10.4.16",
    "dotenv-cli": "^7.3.0",
    "drizzle-kit": "^0.20.10",
    "eslint": "^8.56.0",
    "eslint-config-next": "^14.0.4",
    "nodemailer": "^6.9.8",
    "postcss": "^8.4.33",
    "prettier": "^3.1.1",
    "prettier-plugin-tailwindcss": "^0.5.11",
    "tailwindcss": "^3.4.1",
    "typescript": "^5.3.3"
  }
image.png
Was this page helpful?