refactor: organize type definitions into dedicated db/types/ directory

- Move type files to src/db/types/: currency_type, listing_id, user_id, money_amount, telegram_user_id
- Create types/mod.rs with proper re-exports for all type modules
- Update db/mod.rs to import from new types module instead of individual files
- All tests pass - no functionality changes
- Improves code organization by clearly separating types, DAOs, and models
This commit is contained in:
Dylan Knutson
2025-08-28 01:17:45 +00:00
parent 3a7d0a6905
commit 5212175df5
8 changed files with 16 additions and 11 deletions

View File

@@ -10,6 +10,7 @@ sqlx = { version = "0.8.6", features = [
"runtime-tokio-rustls",
"sqlite",
"chrono",
"macros",
"rust_decimal",
] }
rust_decimal = { version = "1.33", features = ["serde"] }