Preserve human manager identity through national coach record swaps (by Codex)

This commit is contained in:
Codex committed 2026-10-29 01:56:31 +01:00
1 parent ce1535fe2d
commit 693744a961
16 files changed
+203 -21

No files matched your search

@@ -30,6 +30,7 @@ D['Competition']=obj({'id':ref('Id'),'name':ref('Text'),'kind':enum('league','do
D['Season']=obj({'id':ref('Id'),'startDate':ref('Date'),'endDate':ref('Date'),'label':string(20),'completed':{'type':'boolean'}})
D['Employment']=obj({'id':ref('Id'),'managerId':ref('Id'),'teamId':ref('Id'),'role':enum('club_manager','national_coach'),'from':ref('Date'),'until':nullable(ref('Date')),'endReason':nullable(enum('resigned','dismissed','retired','career_end'))})
D['Manager']=obj({'id':ref('Id'),'slot':integer(0,3),'name':string(100),'control':enum('human','ai','archived'),'status':enum('active','resigned','dismissed','retired'),'teamId':nullable(ref('Id')),'portraitGuiKey':nullable(ref('Id')),'portraitStyle':enum('photo','painted'),'strengthChoice':integer(0,2),'employments':arr(ref('Employment'),0,200)})
D['Manager']['properties']['runtimeSlot']=dict(integer(0,4),description='Optional runtime record slot; record 4 is a preserved club record while coaching. slot remains the logical human slot.')
D['Ownership']=obj({'teamId':ref('Id'),'controller':enum('human','ai'),'managerId':nullable(ref('Id')),'sinceRevision':ref('Revision')})
D['Scope']=obj({'managerId':nullable(ref('Id')),'teamId':nullable(ref('Id')),'role':enum('club','national','observer','session'),'scopeId':ref('Id'),'allowedCommands':arr(string(100),0,100)})
D['Page']=obj({'limit':integer(1,200),'cursor':nullable(string(2048)),'nextCursor':nullable(string(2048)),'snapshotRevision':ref('Revision'),'total':nullable(integer()),'sort':arr(obj({'field':string(100),'direction':enum('asc','desc')}),1,5)})