Changing role to position in comployee model

This commit is contained in:
2025-04-16 21:32:49 +02:00
parent b0c4128e01
commit 15b77ff09f

View File

@@ -38,15 +38,16 @@ class Individual(EntityType):
class Employee(BaseModel): class Employee(BaseModel):
role: Indexed(str) = Field(title='Poste') position: Indexed(str) = Field(title='Poste')
entity_id: str = Field(foreignKey={ entity_id: str = Field(
"reference": { foreignKey={
"resource": "entity", "reference": {
"schema": "Entity", "resource": "entity",
"condition": "entity_data.type=individual" "schema": "Entity",
} "condition": "entity_data.type=individual"
}, }
title='Employé' },
title='Employé'
) )
class Config: class Config: