From 5724c56627c829a959f17dac47f469318cbaf2be Mon Sep 17 00:00:00 2001 From: Colin Kallemein Date: Sat, 31 Aug 2024 20:26:55 +0200 Subject: [PATCH] Added alignment to user schema --- prisma/migrations/20240822164618_init/migration.sql | 1 + prisma/schema/user.prisma | 1 + 2 files changed, 2 insertions(+) diff --git a/prisma/migrations/20240822164618_init/migration.sql b/prisma/migrations/20240822164618_init/migration.sql index 2e48dd2..d62640e 100644 --- a/prisma/migrations/20240822164618_init/migration.sql +++ b/prisma/migrations/20240822164618_init/migration.sql @@ -68,6 +68,7 @@ CREATE TABLE `Character` ( `mana` INTEGER NOT NULL DEFAULT 100, `level` INTEGER NOT NULL DEFAULT 1, `experience` INTEGER NOT NULL DEFAULT 0, + `alignment` INTEGER NOT NULL DEFAULT 50, `role` VARCHAR(191) NOT NULL DEFAULT 'player', `positionX` INTEGER NOT NULL DEFAULT 0, `positionY` INTEGER NOT NULL DEFAULT 0, diff --git a/prisma/schema/user.prisma b/prisma/schema/user.prisma index 184eae8..90e90be 100644 --- a/prisma/schema/user.prisma +++ b/prisma/schema/user.prisma @@ -39,6 +39,7 @@ model Character { mana Int @default(100) level Int @default(1) experience Int @default(0) + alignment Int @default(50) role String @default("player") positionX Int @default(0) positionY Int @default(0)