ca1b3da1df
- 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.
7 lines
300 B
SQL
7 lines
300 B
SQL
-- 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';
|