wasp/waspc/examples/pg-vector-example/migrations/20230907154352_add_extension/migration.sql
2023-09-12 13:03:57 +02:00

13 lines
275 B
SQL

-- CreateExtension
CREATE EXTENSION IF NOT EXISTS "vector";
-- CreateTable
CREATE TABLE "Document" (
"id" TEXT NOT NULL,
"title" TEXT NOT NULL,
"content" TEXT NOT NULL,
"embedding" vector(1536) NOT NULL,
CONSTRAINT "Document_pkey" PRIMARY KEY ("id")
);