forked from noxious/server
Allow decimal values
This commit is contained in:
parent
73b0640637
commit
3c82f4f06b
@ -2,8 +2,8 @@
|
||||
CREATE TABLE `Object` (
|
||||
`id` VARCHAR(191) NOT NULL,
|
||||
`name` VARCHAR(191) NOT NULL,
|
||||
`origin_x` INTEGER NOT NULL DEFAULT 0,
|
||||
`origin_y` INTEGER NOT NULL DEFAULT 0,
|
||||
`origin_x` DECIMAL(65, 30) NOT NULL DEFAULT 0,
|
||||
`origin_y` DECIMAL(65, 30) NOT NULL DEFAULT 0,
|
||||
`createdAt` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
||||
`updatedAt` DATETIME(3) NOT NULL,
|
||||
|
@ -22,8 +22,8 @@ datasource db {
|
||||
model Object {
|
||||
id String @id @default(uuid())
|
||||
name String
|
||||
origin_x Int @default(0)
|
||||
origin_y Int @default(0)
|
||||
origin_x Decimal @default(0)
|
||||
origin_y Decimal @default(0)
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
ZoneObject ZoneObject[]
|
||||
|
Loading…
x
Reference in New Issue
Block a user