mirror of
https://gitlab.com/mobicoop/v3/service/territory.git
synced 2025-12-30 22:22:40 +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");
|
||||
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 (i.e. Git)
|
||||
provider = "postgresql"
|
||||
Reference in New Issue
Block a user