chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)

This commit is contained in:
runny committed 2026-11-13 17:54:56 +08:00
commit 9097ee699d
5769 files changed
+1446466

No files matched your search

@@ -0,0 +1,12 @@
-- Migration: 000143_users_display_name
-- users.display_name stores the real name (姓名) of OIDC-provisioned users.
-- Employee-ID style IdPs (Casdoor) put the employee number in username; the
-- display name arrives via a configurable claim (default `nickname`) and is
-- written at provisioning plus refreshed on every OIDC login.
DO $$ BEGIN RAISE NOTICE '[Migration 000143] Adding users.display_name column...'; END $$;
ALTER TABLE users
ADD COLUMN IF NOT EXISTS display_name VARCHAR(200) NOT NULL DEFAULT '';
COMMENT ON COLUMN users.display_name IS 'Real/display name from the OIDC provider (claim configurable, default nickname)';