mirror of
https://gitlab.com/mobicoop/v3/service/territory.git
synced 2025-12-31 01:22:38 +00:00
basic requirements
This commit is contained in:
16
prisma/migrations/20230206113946_init/migration.sql
Normal file
16
prisma/migrations/20230206113946_init/migration.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- CreateExtension
|
||||
CREATE EXTENSION IF NOT EXISTS "postgis";
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "territory" (
|
||||
"uuid" UUID NOT NULL,
|
||||
"name" TEXT NOT NULL,
|
||||
"shape" geometry NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" TIMESTAMP(3) NOT NULL,
|
||||
|
||||
CONSTRAINT "territory_pkey" PRIMARY KEY ("uuid")
|
||||
);
|
||||
|
||||
-- CreateIndex
|
||||
CREATE INDEX "shape_idx" ON "territory" USING GIST ("shape");
|
||||
Reference in New Issue
Block a user