첫 완료

This commit is contained in:
kjy
2025-11-12 02:58:36 +09:00
commit 2aab5be513
57 changed files with 56098 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
-- CreateTable
CREATE TABLE "Property" (
"id" TEXT NOT NULL PRIMARY KEY,
"naverPropertyId" TEXT NOT NULL,
"title" TEXT NOT NULL,
"address" TEXT NOT NULL,
"detailAddress" TEXT,
"price" INTEGER NOT NULL,
"ranking" INTEGER,
"userId" TEXT NOT NULL,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL
);
-- CreateTable
CREATE TABLE "Seed" (
"id" TEXT NOT NULL PRIMARY KEY,
"userId" TEXT NOT NULL,
"seed" TEXT NOT NULL,
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updatedAt" DATETIME NOT NULL
);
-- CreateIndex
CREATE UNIQUE INDEX "Property_naverPropertyId_key" ON "Property"("naverPropertyId");
-- CreateIndex
CREATE INDEX "Property_userId_idx" ON "Property"("userId");
-- CreateIndex
CREATE INDEX "Property_naverPropertyId_idx" ON "Property"("naverPropertyId");
-- CreateIndex
CREATE UNIQUE INDEX "Seed_userId_key" ON "Seed"("userId");