feat: add postgres storage and remote sync

This commit is contained in:
2025-11-07 16:59:28 +08:00
parent c4be264ea5
commit d0ba2b188b
32 changed files with 1101 additions and 1170 deletions

11
scripts/env_loader.py Normal file
View File

@@ -0,0 +1,11 @@
from pathlib import Path
from dotenv import load_dotenv
def load_env():
base_dir = Path(__file__).resolve().parents[1]
dotenv_path = base_dir / ".env"
if dotenv_path.exists():
load_dotenv(dotenv_path)