- Introduced CRUD operations for user management, including create, invite, update, disable, and reactivate functionalities. - Enhanced user listing with filtering options based on status and search queries. - Implemented multi-service quota management for users, allowing specification of mail, drive, and photos storage limits. - Added audit log export functionality with validation for format and limit parameters. - Established strict RBAC for admin routes, ensuring proper permission checks for read and write operations. - Updated validation logic for user-related requests and improved error handling across the user management API. - Revised database schema to support new user status and quota fields, along with necessary migrations. - Updated project checklist to reflect the completion of user management and admin RBAC enhancements.
10 lines
242 B
SQL
10 lines
242 B
SQL
DROP INDEX IF EXISTS idx_users_status;
|
|
|
|
ALTER TABLE users
|
|
DROP CONSTRAINT IF EXISTS users_status_valid_chk;
|
|
|
|
ALTER TABLE users
|
|
DROP COLUMN IF EXISTS disabled_at,
|
|
DROP COLUMN IF EXISTS invited_at,
|
|
DROP COLUMN IF EXISTS status;
|