@@ -698,7 +698,7 @@ model Mobs {
698698 mobFlags MobFlag []
699699 // Lua expression defining who this mob attacks on sight
700700 // Examples: "target.alignment <= -350", "target.race == 'HUMAN'", "true" (attacks all)
701- aggroCondition String ? @map (" aggro_condition " )
701+ aggroCondition String ? @map (" aggro_condition " )
702702 effectFlags EffectFlag []
703703 position Position @default (STANDING )
704704 defaultPosition Position @default (STANDING )
@@ -728,12 +728,13 @@ model Mobs {
728728 characterClass CharacterClass ? @relation (fields : [classId ] , references : [id ] )
729729 zones Zones @relation (fields : [zoneId ] , references : [id ] , onDelete : Cascade )
730730 shops Shops []
731- mobTriggers MobTriggers [] // Trigger attachments via junction table
731+ mobTriggers MobTriggers [] // Trigger attachments via junction table
732732 shopMobs ShopMobs [] // Mobs for sale at pet/mount shops
733733 // Quest system relations
734734 questsAsTrigger Quests [] @relation (" questTriggerMob " ) // MOB trigger type quests
735735 objectiveTargetMob QuestObjectives [] @relation (" objectiveTargetMob " )
736736 objectiveDeliverTo QuestObjectives [] @relation (" objectiveDeliverTo " )
737+ Triggers Triggers []
737738
738739 @@id ([zoneId , id ] )
739740 @@index ([name ] )
@@ -813,42 +814,42 @@ model ObjectResetContents {
813814
814815model Objects {
815816 id Int
816- type ObjectType @default (NOTHING )
817+ type ObjectType @default (NOTHING )
817818 keywords String []
818- name String @map (" name " )
819- plainName String @default (" " ) @map (" plain_name " )
820- baseName String @default (" " ) @map (" base_name " ) // Name without article (with colors)
821- plainBaseName String @default (" " ) @map (" plain_base_name " ) // Name without article (plain text)
822- article String ? @map (" article " ) // null=a/an, "the", "some", ""=none
823- roomDescription String @map (" room_description " )
824- plainRoomDescription String @default (" " ) @map (" plain_room_description " )
825- examineDescription String ? @map (" examine_description " )
826- plainExamineDescription String ? @default (" " ) @map (" plain_examine_description " )
827- actionDescription String ? @map (" action_desc " )
828- plainActionDescription String ? @default (" " ) @map (" plain_action_desc " )
829- weight Float @default (0.0 )
830- cost Int @default (0 )
831- timer Int @default (0 )
832- decomposeTimer Int @default (0 ) @map (" decompose_timer " )
833- level Int @default (1 )
834- concealment Int @default (0 )
835- values Json @default (" {}" )
836- zoneId Int @map (" zone_id " )
819+ name String @map (" name " )
820+ plainName String @default (" " ) @map (" plain_name " )
821+ baseName String @default (" " ) @map (" base_name " ) // Name without article (with colors)
822+ plainBaseName String @default (" " ) @map (" plain_base_name " ) // Name without article (plain text)
823+ article String ? @map (" article " ) // null=a/an, "the", "some", ""=none
824+ roomDescription String @map (" room_description " )
825+ plainRoomDescription String @default (" " ) @map (" plain_room_description " )
826+ examineDescription String ? @map (" examine_description " )
827+ plainExamineDescription String ? @default (" " ) @map (" plain_examine_description " )
828+ actionDescription String ? @map (" action_desc " )
829+ plainActionDescription String ? @default (" " ) @map (" plain_action_desc " )
830+ weight Float @default (0.0 )
831+ cost Int @default (0 )
832+ timer Int @default (0 )
833+ decomposeTimer Int @default (0 ) @map (" decompose_timer " )
834+ level Int @default (1 )
835+ concealment Int @default (0 )
836+ values Json @default (" {}" )
837+ zoneId Int @map (" zone_id " )
837838
838839 // Permanent fixture: If set, this object always exists in this room (no reset needed)
839840 // Use for fountains, signs, furniture, etc. that never move or despawn
840- fixtureRoomZoneId Int ? @map (" fixture_room_zone_id " )
841- fixtureRoomId Int ? @map (" fixture_room_id " )
842- fixtureRoom Room ? @relation (" roomFixtures " , fields : [fixtureRoomZoneId , fixtureRoomId ] , references : [zoneId , id ] )
843-
844- createdAt DateTime @default (now () ) @map (" created_at " )
845- updatedAt DateTime @updatedAt @map (" updated_at " )
846- deletedAt DateTime ? @map (" deleted_at " )
847- createdBy String ? @map (" created_by " )
848- updatedBy String ? @map (" updated_by " )
849- flags ObjectFlag []
850- effectFlags EffectFlag []
851- wearFlags WearFlag []
841+ fixtureRoomZoneId Int ? @map (" fixture_room_zone_id " )
842+ fixtureRoomId Int ? @map (" fixture_room_id " )
843+ fixtureRoom Room ? @relation (" roomFixtures " , fields : [fixtureRoomZoneId , fixtureRoomId ] , references : [zoneId , id ] )
844+
845+ createdAt DateTime @default (now () ) @map (" created_at " )
846+ updatedAt DateTime @updatedAt @map (" updated_at " )
847+ deletedAt DateTime ? @map (" deleted_at " )
848+ createdBy String ? @map (" created_by " )
849+ updatedBy String ? @map (" updated_by " )
850+ flags ObjectFlag []
851+ effectFlags EffectFlag []
852+ wearFlags WearFlag []
852853
853854 // FLAG REORGANIZATION FIELDS (NEW)
854855 // Equipment restrictions (replaces ANTI_* flags)
@@ -872,7 +873,7 @@ model Objects {
872873 objectResistances ObjectResistance [] // Resistance bonuses granted by this item
873874 zones Zones @relation (fields : [zoneId ] , references : [id ] , onDelete : Cascade )
874875 shopItems ShopItems []
875- objectTriggers ObjectTriggers [] // Trigger attachments via junction table
876+ objectTriggers ObjectTriggers [] // Trigger attachments via junction table
876877 objectAbilities ObjectAbilities [] // Cast spells (quaff potion → cast spell)
877878 consumableEffects ConsumableEffect [] // Direct effects (eat food → apply effect)
878879 accountItems AccountItems []
@@ -881,6 +882,7 @@ model Objects {
881882 questRewards QuestRewards []
882883 objectiveTargetObject QuestObjectives [] @relation (" objectiveTargetObject " )
883884 questTriggerItem Quests [] @relation (" questTriggerItem " )
885+ Triggers Triggers []
884886
885887 @@id ([zoneId , id ] )
886888 @@index ([name ] )
@@ -983,7 +985,6 @@ model RoomExit {
983985 roomZoneId Int @map (" room_zone_id " )
984986 roomId Int @map (" room_id " )
985987 flags ExitFlag [] @default ([] )
986- defaultState ExitState @default (OPEN ) @map (" default_state " ) // State on zone reset
987988
988989 // FLAG REORGANIZATION FIELDS (NEW)
989990 // Replaces CLOSED/LOCKED runtime flags with default state (restored on zone reset)
@@ -1035,7 +1036,7 @@ model Room {
10351036 entrances RoomExit [] @relation (" roomEntrances " )
10361037 roomExtraDescriptions RoomExtraDescriptions []
10371038 zones Zones @relation (fields : [zoneId ] , references : [id ] , onDelete : Cascade )
1038- fixtures Objects [] @relation (" roomFixtures " ) // Permanent objects in this room
1039+ fixtures Objects [] @relation (" roomFixtures " ) // Permanent objects in this room
10391040 // Quest system relations
10401041 questObjectives QuestObjectives []
10411042 questTriggerRoom Quests [] @relation (" questTriggerRoom " )
0 commit comments