#174: Refactor character manager into zoneManager for better DX, major refactor of time and weather system (data is stored in DB now instead of JSON file), npm update, npm format, many other improvements
This commit is contained in:
@ -1,3 +1,14 @@
|
||||
-- CreateTable
|
||||
CREATE TABLE `World` (
|
||||
`date` DATETIME(3) NOT NULL DEFAULT CURRENT_TIMESTAMP(3),
|
||||
`isRainEnabled` BOOLEAN NOT NULL DEFAULT false,
|
||||
`rainPercentage` INTEGER NOT NULL DEFAULT 0,
|
||||
`isFogEnabled` BOOLEAN NOT NULL DEFAULT false,
|
||||
`fogDensity` INTEGER NOT NULL DEFAULT 0,
|
||||
|
||||
UNIQUE INDEX `World_date_key`(`date`)
|
||||
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE `Chat` (
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
7
prisma/schema/game.prisma
Normal file
7
prisma/schema/game.prisma
Normal file
@ -0,0 +1,7 @@
|
||||
model World {
|
||||
date DateTime @unique @default(now())
|
||||
isRainEnabled Boolean @default(false)
|
||||
rainPercentage Int @default(0)
|
||||
isFogEnabled Boolean @default(false)
|
||||
fogDensity Int @default(0)
|
||||
}
|
Reference in New Issue
Block a user