mirror of
https://gitlab.com/mobicoop/v3/service/ad.git
synced 2026-01-03 03:02:40 +00:00
improve tests, handle coordinates precision
This commit is contained in:
@@ -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,
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user