feat(organization): add member limit feature

- Introduced a new member limit feature for organizations, allowing a maximum number of members to be set (default is 50; 0 means unlimited).
- Updated API endpoints to handle member limit during organization creation and updates.
- Implemented validation to prevent adding members when the limit is reached.
- Enhanced UI components to display and manage member limits, including localization updates for English and Chinese.
- Added migration files to support the new member limit column in the organizations table.

This update improves organization management by allowing administrators to control membership size.
This commit is contained in:
wizardchen
2026-01-30 20:26:41 +08:00
committed by lyingbug
parent b1b6396ac0
commit ca1b3da1df
15 changed files with 566 additions and 240 deletions
@@ -0,0 +1,3 @@
-- Migration: 000013_organization_member_limit (down)
ALTER TABLE organizations
DROP COLUMN IF EXISTS member_limit;
@@ -0,0 +1,6 @@
-- Migration: 000013_organization_member_limit
-- Description: Add member_limit to organizations (0 = unlimited)
ALTER TABLE organizations
ADD COLUMN IF NOT EXISTS member_limit INTEGER NOT NULL DEFAULT 50;
COMMENT ON COLUMN organizations.member_limit IS 'Max members allowed; 0 means no limit';