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):
role: Indexed(str) = Field(title='Poste')
entity_id: str = Field(foreignKey={
"reference": {
"resource": "entity",
"schema": "Entity",
"condition": "entity_data.type=individual"
}
},
title='Employé'
position: Indexed(str) = Field(title='Poste')
entity_id: str = Field(
foreignKey={
"reference": {
"resource": "entity",
"schema": "Entity",
"condition": "entity_data.type=individual"
}
},
title='Employé'
)
class Config: