CREATE TABLE "FinalProduct" (
    "id" TEXT NOT NULL,
    "code" TEXT NOT NULL,
    "wheelName" TEXT NOT NULL,
    "productId" TEXT,
    "uniqueCode" TEXT,
    "stockAvailability" TEXT,
    "productDescription" TEXT,
    "application" TEXT,
    "loadCarryingCapacity" TEXT,
    "wheelSize" TEXT,
    "fittingType" TEXT,
    "bodyType" TEXT,
    "mountingType" TEXT,
    "finishType" TEXT,
    "bearingType" TEXT,
    "wheelType" TEXT,
    "headerType" TEXT,
    "dustCoverOnWheel" TEXT,
    "bearingInFrame" TEXT,
    "brakingSystem" TEXT,
    "frameColor" TEXT,
    "wheelColor" TEXT,
    "pageTitle" TEXT,
    "keywords" TEXT,
    "metaDescription" TEXT,
    "status" TEXT NOT NULL DEFAULT 'Active',
    "wheelTypeSub" TEXT,
    "yorkeCode" TEXT,
    "yorkeLoad" TEXT,
    "sourceFileName" TEXT,
    "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updatedAt" TIMESTAMP(3) NOT NULL,

    CONSTRAINT "FinalProduct_pkey" PRIMARY KEY ("id")
);

CREATE UNIQUE INDEX "FinalProduct_code_key" ON "FinalProduct"("code");
CREATE INDEX "FinalProduct_wheelName_idx" ON "FinalProduct"("wheelName");
CREATE INDEX "FinalProduct_productId_idx" ON "FinalProduct"("productId");
CREATE INDEX "FinalProduct_status_idx" ON "FinalProduct"("status");
CREATE INDEX "FinalProduct_application_idx" ON "FinalProduct"("application");
CREATE INDEX "FinalProduct_wheelType_idx" ON "FinalProduct"("wheelType");
