Initial commit

This commit is contained in:
wangxuming
2026-07-12 15:53:24 +08:00
commit 68d61700d5
252 changed files with 23291 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
CREATE OR REPLACE FUNCTION protect_super_admin() RETURNS trigger AS $$
BEGIN
IF OLD.username = 'xqkwljtadmin' THEN
RAISE EXCEPTION 'protected super administrator cannot be updated or deleted';
END IF;
RETURN COALESCE(NEW, OLD);
END;
$$ LANGUAGE plpgsql;