Preferred database design method for assigning user roles? (Hats vs. Groups)

后端 未结 9 1289
后悔当初
后悔当初 2021-02-01 10:47

I have medium sized MySQL database with a primary \"persons\" table which contains basic contact information about every human being connected to the theatre and theatre school

9条回答
  •  余生分开走
    2021-02-01 11:19

    I'm using an ACL package for fine-grained permissions on the site - the heart of my question is more about how to store the metadata for individuals who have different roles and build a few safeguards into the system for data integrity (such that a person must have a teacher record in order to be set as the teacher of a class - the foreign key constraint references the teacher table, not the person table).

提交回复
热议问题