-- CreateTable
CREATE TABLE "Recipt" (
    "id" TEXT NOT NULL,
    "user_id" TEXT,
    "total_cans" INTEGER NOT NULL,
    "amount" DOUBLE PRECISION NOT NULL,
    "submitted" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
    "updated_at" TIMESTAMP(3) NOT NULL,

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

-- AddForeignKey
ALTER TABLE "Recipt" ADD CONSTRAINT "Recipt_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE;
