@startuml entity accounts { *user_id : INTEGER <> -- *username : TEXT *userpassword : TEXT } entity blog { *doc_id : INTEGER <> -- *doc_title : TEXT *doc_text: TEXT *doc_created_time : INTEGER *user_id : <> } entity session { *session_id : INTEGER <> -- *session_hashid : TEXT *user_id : <> } entity image { *image_id : INTEGER <> -- *image_base64 : TEXT *image_mimetype : TEXT } entity blog_image { *blog_image : INTEGER <> -- *doc_id : <> *image_id : <> } accounts ||..o{ blog accounts ||..o{ session blog_image ||--|| image blog_image ||--|| blog @enduml