feat: Refactor user and thought models to use UUIDs instead of integers
- Updated user and thought models to utilize UUIDs for primary keys. - Modified persistence functions to accommodate UUIDs for user and thought IDs. - Implemented tag functionality with new Tag and ThoughtTag models. - Added migration scripts to create new tables for tags and thought-tag relationships. - Enhanced thought creation to parse hashtags and link them to thoughts. - Updated tests to reflect changes in user and thought ID types.
This commit is contained in:
@@ -17,11 +17,11 @@ members = ["api", "app", "doc", "models", "migration", "utils"]
|
||||
tower = { version = "0.5.2", default-features = false }
|
||||
axum = { version = "0.8.4", default-features = false }
|
||||
sea-orm = { version = "1.1.12" }
|
||||
sea-query = { version = "0.32.6" } # Added sea-query dependency
|
||||
sea-query = { version = "0.32.6" } # Added sea-query dependency
|
||||
serde = { version = "1.0.219", features = ["derive"] }
|
||||
serde_json = { version = "1.0.140", features = ["raw_value"] }
|
||||
tracing = "0.1.41"
|
||||
utoipa = { version = "5.4.0", features = ["macros", "chrono"] }
|
||||
utoipa = { version = "5.4.0", features = ["macros", "chrono", "uuid"] }
|
||||
validator = { version = "0.20.0", default-features = false }
|
||||
chrono = { version = "0.4.41", features = ["serde"] }
|
||||
tokio = { version = "1.45.1", features = ["full"] }
|
||||
|
Reference in New Issue
Block a user