Update app/models.py
Browse files- app/models.py +25 -0
app/models.py
CHANGED
|
@@ -1,6 +1,31 @@
|
|
| 1 |
from pydantic import BaseModel, Field
|
| 2 |
from typing import List, Optional, Dict, Any
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
class GeoLocation(BaseModel):
|
| 5 |
latitude: float
|
| 6 |
longitude: float
|
|
|
|
| 1 |
from pydantic import BaseModel, Field
|
| 2 |
from typing import List, Optional, Dict, Any
|
| 3 |
|
| 4 |
+
# --- Physics Models (Needed by engine.py) ---
|
| 5 |
+
class PlanetPosition(BaseModel):
|
| 6 |
+
name: str
|
| 7 |
+
longitude: float
|
| 8 |
+
latitude: float
|
| 9 |
+
speed: float
|
| 10 |
+
house: int
|
| 11 |
+
is_retrograde: bool
|
| 12 |
+
|
| 13 |
+
class HexagramAddress(BaseModel):
|
| 14 |
+
gate: int
|
| 15 |
+
line: int
|
| 16 |
+
color: int
|
| 17 |
+
tone: int
|
| 18 |
+
base: int
|
| 19 |
+
|
| 20 |
+
class CognitiveProfile(BaseModel):
|
| 21 |
+
digestion: str
|
| 22 |
+
environment: str
|
| 23 |
+
perspective: str
|
| 24 |
+
motivation: str
|
| 25 |
+
orientation_mind: str
|
| 26 |
+
orientation_body: str
|
| 27 |
+
|
| 28 |
+
# --- Family System Models (For Dashboard/JSON) ---
|
| 29 |
class GeoLocation(BaseModel):
|
| 30 |
latitude: float
|
| 31 |
longitude: float
|