improve tests, handle coordinates precision

This commit is contained in:
sbriat
2023-06-23 11:37:26 +02:00
parent 4ad00b96c0
commit 211bee2c70
33 changed files with 354 additions and 168 deletions

View File

@@ -38,8 +38,8 @@ CREATE TABLE "waypoint" (
"uuid" UUID NOT NULL,
"adUuid" UUID NOT NULL,
"position" SMALLINT NOT NULL,
"lon" DOUBLE PRECISION NOT NULL,
"lat" DOUBLE PRECISION NOT NULL,
"lon" DECIMAL(9,6) NOT NULL,
"lat" DECIMAL(8,6) NOT NULL,
"name" TEXT,
"houseNumber" TEXT,
"street" TEXT,

View File

@@ -47,8 +47,8 @@ model Waypoint {
uuid String @id @default(uuid()) @db.Uuid
adUuid String @db.Uuid
position Int @db.SmallInt
lon Float
lat Float
lon Decimal @db.Decimal(9, 6)
lat Decimal @db.Decimal(8, 6)
name String?
houseNumber String?
street String?