mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
- Updated DeptModel and RoleModel to make the `code` field mandatory and unique. - Enhanced DeptCreateSchema and RoleCreateSchema to require a valid `code` format, ensuring it starts with a letter and is 2-16 characters long. - Implemented validation logic in the backend to check for existing codes during updates, preventing duplicates. - Adjusted frontend forms to reflect the required `code` field and added validation messages for user guidance.