Added CRUD logic for character hair, made some minor improvements, npm update
This commit is contained in:
2
prisma/migrations/20241123140835_lol/migration.sql
Normal file
2
prisma/migrations/20241123140835_lol/migration.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE `CharacterHair` ADD COLUMN `gender` ENUM('MALE', 'FEMALE') NOT NULL DEFAULT 'MALE';
|
2
prisma/migrations/20241123141319_lol2/migration.sql
Normal file
2
prisma/migrations/20241123141319_lol2/migration.sql
Normal file
@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE `CharacterHair` ADD COLUMN `isEnabledForCharCreation` BOOLEAN NOT NULL DEFAULT false;
|
@ -43,11 +43,13 @@ model CharacterType {
|
||||
}
|
||||
|
||||
model CharacterHair {
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
sprite Sprite? @relation(fields: [spriteId], references: [id], onDelete: Cascade)
|
||||
spriteId String?
|
||||
characters Character[]
|
||||
id Int @id @default(autoincrement())
|
||||
name String
|
||||
gender CharacterGender @default(MALE)
|
||||
isEnabledForCharCreation Boolean @default(false)
|
||||
sprite Sprite? @relation(fields: [spriteId], references: [id], onDelete: Cascade)
|
||||
spriteId String?
|
||||
characters Character[]
|
||||
// @TODO: Do we need addedAt and updatedAt?
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user