@startuml UML Class Diagram class User { +id: Integer (primary key) +name: String +email: String (encrypted) +password: String (hashed) +posts: Relationship -- +create_user(db, user) +get_users(db) +get_user(db, user_id) +update_user(db, user_id, user_update) +delete_user(db, user_id) } class Post { +id: Integer (primary key) +title: String +content: String +user_id: Integer (foreign key) +owner: Relationship -- +create_post(db, post) +get_posts(db) +get_post(db, post_id) +update_post(db, post_id, post_update) } class UserCreate { +name: String +email: String +password: String } class UserResponse { +id: Integer +name: String +email: String } class PostCreate { +title: String +content: String +user_id: Integer } class PostResponse { +id: Integer +title: String +content: String +user_id: Integer } User ||--o{ Post : "has many" @enduml