첫 완료
This commit is contained in:
34
prisma/migrations/20251019205212_init/migration.sql
Normal file
34
prisma/migrations/20251019205212_init/migration.sql
Normal 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");
|
||||
3
prisma/migrations/migration_lock.toml
Normal file
3
prisma/migrations/migration_lock.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
# Please do not edit this file manually
|
||||
# It should be added in your version-control system (e.g., Git)
|
||||
provider = "sqlite"
|
||||
Reference in New Issue
Block a user