Add HTTP /v1 MVC, TCP send path, groups with server-side member-avatar collage, object-storage upload, and friends/favorites around the architecture-v3 layout. Co-authored-by: Cursor <cursoragent@cursor.com>
6 lines
360 B
SQL
6 lines
360 B
SQL
-- user_devices.id is a table-local AUTO_INCREMENT row key, not Snowflake.
|
||
-- Business identity remains (user_id, device_id). Existing Snowflake values stay; new rows continue from MAX(id)+1.
|
||
|
||
ALTER TABLE user_devices
|
||
MODIFY COLUMN id BIGINT NOT NULL AUTO_INCREMENT COMMENT '行 id,表内自增,仅内部用;业务唯一键是 (user_id, device_id)';
|