Nth Member Custom Field

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
andrewlaw
Posts: 24
Joined: 2025-06-11 09:22
Contact:

Nth Member Custom Field

Post by andrewlaw » 2025-08-29 19:53

Is there a way to add a 5th, 6th, etc Members custom field?

saymaad
AppGini Super Hero
AppGini Super Hero
Posts: 59
Joined: 2024-06-03 16:17

Re: Nth Member Custom Field

Post by saymaad » 2025-09-01 08:51

Yes, it's technically possible to add new custom fields by manually modifying the database structure. You can add additional columns directly to the membership_users table. However, this approach comes with maintainability overhead, e.g. if you're planning to use getMemberInfo() or rely on the default AppGini-generated admin pages, modifying the membership_users table directly is not recommended. The admin files do not offer hooks to support custom fields in this table, and any changes you make will be overwritten the next time you regenerate your application with AppGini.

Recommended Approach
Consider creating a separate table, e.g. user_extended, member_profile, or any name that suits your use case. You can then link this table to the built-in membership_users table via a memberID foreign key. This keeps your custom data separate from AppGini's system tables and ensures:
  • Your changes won't be overwritten during regeneration.
  • You maintain clean separation between system and your custom logic.
  • Your customization aligns with best practices for working with AppGini and keeps your app maintainable and upgrade-friendly.

Post Reply