Enhance Falukant family and production dynamics: Updated FalukantFamilyWorker to include public stability and household tension calculations, integrating new SQL queries for managing marriage states and household attributes. Added FalukantCertificateWorker for production certificate management, enhancing overall family interaction and production tracking.
This commit is contained in:
16
migrations/005_falukant_marriage_housepeace.sql
Normal file
16
migrations/005_falukant_marriage_housepeace.sql
Normal file
@@ -0,0 +1,16 @@
|
||||
-- Ehe: öffentliche Stabilität (Daemon-Drift). Hausfrieden: persistenter Spannungswert 0..100.
|
||||
-- Siehe docs/FALUKANT_MARRIAGE_HOUSEPEACE_DAEMON_HANDOFF.md
|
||||
|
||||
ALTER TABLE falukant_data.relationship
|
||||
ADD COLUMN IF NOT EXISTS marriage_public_stability smallint NOT NULL DEFAULT 55
|
||||
CHECK (marriage_public_stability >= 0 AND marriage_public_stability <= 100);
|
||||
|
||||
COMMENT ON COLUMN falukant_data.relationship.marriage_public_stability IS
|
||||
'Öffentliche Ehe-Stabilität 0..100; Daily-Drift durch Daemon (Liebschaften, Haus, Stand)';
|
||||
|
||||
ALTER TABLE falukant_data.user_house
|
||||
ADD COLUMN IF NOT EXISTS household_tension_score smallint NOT NULL DEFAULT 0
|
||||
CHECK (household_tension_score >= 0 AND household_tension_score <= 100);
|
||||
|
||||
COMMENT ON COLUMN falukant_data.user_house.household_tension_score IS
|
||||
'Hausfrieden-Spannung 0..100 (Daemon); UI: low 0–24, medium 25–59, high 60–100';
|
||||
Reference in New Issue
Block a user