- 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.
25 lines
497 B
TOML
25 lines
497 B
TOML
[package]
|
|
name = "models"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
publish = false
|
|
|
|
[lib]
|
|
name = "models"
|
|
path = "src/lib.rs"
|
|
|
|
[dependencies]
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
sea-orm = { workspace = true, features = [
|
|
"sqlx-postgres",
|
|
"sqlx-sqlite",
|
|
"runtime-tokio-rustls",
|
|
"macros",
|
|
] }
|
|
uuid = { version = "1.18.1", features = ["v4", "serde"] }
|
|
validator = { workspace = true, features = ["derive"] }
|
|
utoipa = { workspace = true }
|
|
|
|
common = { path = "../common" }
|