Skip to content

Commit

Permalink
feat(models): introduce events
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jan 10, 2025
1 parent c0ed284 commit ed91e1a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pfp_api/models.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
from pydantic import BaseModel, Field
from typing import List, Optional


class Entity(BaseModel): ...


class Event(Entity):
label: str = None


class Person(Entity):
person: str = None
label: str = Field(..., example="Arthur Schnitzler")
graph: str = None
events: Optional[List[Event]] = None

0 comments on commit ed91e1a

Please sign in to comment.