用户表 ID 改为 UUID V7 并由业务层生成

This commit is contained in:
fish
2026-04-13 20:26:29 +08:00
parent 49af914f9b
commit e95bc4d196
4 changed files with 48 additions and 38 deletions

View File

@@ -14,7 +14,10 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
# 数据库
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "chrono"] }
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "postgres", "chrono", "uuid"] }
# UUID
uuid = { version = "1", features = ["v7", "serde"] }
# Redis
redis = { version = "0.29", features = ["tokio-comp"] }