I want to use ORM database model.
I have 3 types of users and every type have different form to add,save posts, limit fields.
What will be the best solution to create model to cover all users?
For example, i have table with this column:
User admin should have access to create,update all fields, because he see full form to update.
User moderator should have acces to create,update all fields, except post_admin, because he don't see this field in his form.
User normal should have access only to fields name, text and tags, because there are only fields, that he see in his form.
When i limit only forms, and i try to create model, i see error, because some fields are missing and to create, update i need to send all fields, that are in database.