Changing role to position in comployee model
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user