Appearance
Journey — Profile & avatar
Version: 1.1
Date: 2026-11-26
Status: Working baseline (profile fields PROPOSED)
display_name: sau khi user sửa, Core là SoT; ensure không đè (PROPOSED).account_preferences: locale, timezone, theme, email_notifications_enabled (PROPOSED).- Avatar:
- Upload / promote qua File Service → Core gán
avatar_file_idsoft-ref. - Đồng thời ghi
avatar_file_meta(JSONB:display_name,content_type,size_bytes,source_updated_at— không lặpfile_id) — snapshot lúc gán/đổi/clear; stale nếusource_updated_at≠ FSupdated_at. - SoT bytes + metadata = File Service;
avatar_file_metachỉ cache hiển thị — ví dụ của pattern D-005 DECIDED (Owner 2026-11-26; bắt buộc cho file refs domain). - Client dùng meta để placeholder UI; variant/original vẫn qua FS (
GET /v1/files/{file_id}/{size},GET /v1/files/{file_id}).
- Upload / promote qua File Service → Core gán
- Clear avatar: null cả
avatar_file_idvàavatar_file_meta; lifecycle file cũ theo File SoT. - Password change: chỉ Keycloak.