20260703173210

This commit is contained in:
oneao committed 2026-07-03 17:32:11 +08:00
1 parent d0f7f0d3d8
commit 3556d5e8c1
15 files changed
+853 -143

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
-- 增量迁移:给衣服和搭配表添加归属者字段
-- 说明:owner_id 引用 b_family_member.user_id;可空;仅为归属标记,
-- 数据仍为家庭共享,不做隔离。
alter table b_clothing_clothes add column if not exists owner_id bigint;
alter table b_clothing_outfit add column if not exists owner_id bigint;
create index if not exists idx_b_clothing_clothes_family_owner
on b_clothing_clothes (family_id, owner_id, id);
create index if not exists idx_b_clothing_outfit_family_owner
on b_clothing_outfit (family_id, owner_id, id);