🌐
UMID Federated Identity
One UMID across all apps, cross-platform auto-merge
UMID (UserMatrix ID) is the federated identity. One UMID runs through all UM-integrated apps, cross-platform accounts auto-merge. User identity is owned by users, apps are consumers.
example.sql
// 用户主表
CREATE TABLE um_user (
id BIGINT PRIMARY KEY AUTO_INCREMENT,
openid VARCHAR(64), -- UMID
login_type VARCHAR(20),
nickname VARCHAR(100),
avatar VARCHAR(500),
phone VARCHAR(20),
email VARCHAR(100),
score INT DEFAULT 0,
balance DECIMAL(10,2) DEFAULT 0
);
-- 第三方绑定表(一个 UMID 可绑定多个平台)
CREATE TABLE um_oauth (
user_id BIGINT,
appid VARCHAR(32),
type VARCHAR(20), -- wx/alipay/qq/douyin
openid VARCHAR(64), -- 第三方 openid
access_token VARCHAR(255)
);Core Features
6 core features, each works standalone
Cross-platform merge
WeChat login app A, Alipay login app B, UM auto-recognizes same user
User asset ownership
Users own their identity, apps are consumers not landlords
Cross-app data flow
Points/balance/activity in app A usable in app B (with consent)
Device fingerprint
Multi-dimensional auto-merge via fingerprint/phone/email
OAuth binding table
um_oauth records user_id × appid × type × openid mapping
Unified social_uid
Apps link local users via social_uid, unified across apps