EntitySchema
- class app.portfolio.models.entity.entity_schema.EntitySchema[source]
Bases:
EntitySchemaBase
,Generic
Inheritance Diagram for EntitySchema
Methods
resolve_forward_references
([namespace])Attributes
- annotations: Annotated[frozenset[Annotation], InstanceOf()] = FieldInfo(annotation=NoneType, required=False, default_factory=frozenset, description='The annotations associated with this entity.', exclude_if=<function EntitySchema.<lambda>>)
- extra_dependency_uids: frozenset[Uid] = FieldInfo(annotation=NoneType, required=False, default_factory=frozenset, description='Extra dependency UIDs. These can be used to create dependencies in addition to those automatically tracked by the entity.', exclude=True, json_schema_extra={'propagate': False}, repr=False)
- uid: Uid = FieldInfo(annotation=NoneType, required=True, description='Unique identifier for the entity.', json_schema_extra={'readOnly': True}, validate_default=True)
- version: Annotated[int, Gt(gt=0)] = FieldInfo(annotation=NoneType, required=False, default_factory=<lambda>, description='The version of this entity. Incremented when the entity is cloned as part of an update action.', exclude=True, json_schema_extra={'readOnly': True}, validate_default=True, metadata=[Ge(ge=1)])