
const { v4: uuid } = require("uuid");

module.exports = {
  /**
   * @param{import("sequelize").QueryInterface} queryInterface
   * @return {Promise<void>}
   */
  async up(queryInterface) {
    const createdAt = new Date();
    const updatedAt = new Date();

    /** @type {Map<string, string>} */
    const idMap = new Map();

    /**
     * @param {string} key
     * @return {string}
     */
    function getId(key) {
      if (idMap.has(key)) {
        return idMap.get(key);
      }
      const id = uuid();
      idMap.set(key, id);
      return id;
    }

    await queryInterface.bulkInsert("roles", [
      
      
      { id: getId("Administrator"), name: "Administrator", createdAt, updatedAt },
      
      
        
          { id: getId("DistrictOperationsLead"), name: "District Operations Lead", createdAt, updatedAt },
        
          { id: getId("SchoolOperationsManager"), name: "School Operations Manager", createdAt, updatedAt },
        
          { id: getId("AcademicCoordinator"), name: "Academic Coordinator", createdAt, updatedAt },
        
          { id: getId("TeacherLead"), name: "Teacher Lead", createdAt, updatedAt },
        
          { id: getId("FamilyLiaison"), name: "Family Liaison", createdAt, updatedAt },
        
      
      
      { id: getId("Public"), name: "Public", createdAt, updatedAt },
    ]);

    /**
     * @param {string} name
     */
    function createPermissions(name) {
      return [
        { id: getId(`CREATE_${name.toUpperCase()}`), createdAt, updatedAt, name: `CREATE_${name.toUpperCase()}` },
        { id: getId(`READ_${name.toUpperCase()}`), createdAt, updatedAt, name: `READ_${name.toUpperCase()}` },
        { id: getId(`UPDATE_${name.toUpperCase()}`), createdAt, updatedAt, name: `UPDATE_${name.toUpperCase()}` },
        { id: getId(`DELETE_${name.toUpperCase()}`), createdAt, updatedAt, name: `DELETE_${name.toUpperCase()}` }
      ];
    }

    const entities = [
      "users","roles","permissions","schools","campuses","academic_years","terms","grade_levels","subjects","rooms","students","parents","student_parent_links","teachers","classes","class_enrollments","course_sections","timetable_entries","attendance_sessions","attendance_records","assignments","submissions","grade_items","grade_records","announcements","messages","message_recipients","events",,
    ];
await queryInterface.bulkInsert("permissions", entities.flatMap(createPermissions));
await queryInterface.bulkInsert("permissions", [{ id: getId(`READ_API_DOCS`), createdAt, updatedAt, name: `READ_API_DOCS` }]);
await queryInterface.bulkInsert("permissions", [{ id: getId(`CREATE_SEARCH`), createdAt, updatedAt, name: `CREATE_SEARCH`}]);


await queryInterface.sequelize.query(`create table "rolesPermissionsPermissions"
(
"createdAt"           timestamp with time zone not null,
"updatedAt"           timestamp with time zone not null,
"roles_permissionsId" uuid                     not null,
"permissionId"        uuid                     not null,
primary key ("roles_permissionsId", "permissionId")
);`);


await queryInterface.bulkInsert("rolesPermissionsPermissions", [
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_USERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_SCHOOLS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_SCHOOLS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_SCHOOLS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_SCHOOLS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_SCHOOLS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_SCHOOLS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_SCHOOLS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_SCHOOLS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_SCHOOLS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_CAMPUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_CAMPUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_CAMPUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_CAMPUSES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_CAMPUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_CAMPUSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_CAMPUSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_CAMPUSES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_CAMPUSES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_CAMPUSES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_ACADEMIC_YEARS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_ACADEMIC_YEARS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_ACADEMIC_YEARS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_TERMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_TERMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_TERMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_TERMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_TERMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_TERMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_TERMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_TERMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_TERMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_TERMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_TERMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_GRADE_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_GRADE_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_GRADE_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_GRADE_LEVELS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_GRADE_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_GRADE_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_GRADE_LEVELS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_GRADE_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_GRADE_LEVELS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_GRADE_LEVELS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_GRADE_LEVELS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_SUBJECTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_SUBJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_SUBJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_SUBJECTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_SUBJECTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_ROOMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_ROOMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_ROOMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_STUDENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_STUDENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_STUDENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_STUDENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('UPDATE_STUDENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_PARENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_PARENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_PARENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_PARENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_PARENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_PARENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_PARENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_PARENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_PARENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_PARENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('UPDATE_PARENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_STUDENT_PARENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_STUDENT_PARENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_STUDENT_PARENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_STUDENT_PARENT_LINKS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_STUDENT_PARENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_STUDENT_PARENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_STUDENT_PARENT_LINKS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_STUDENT_PARENT_LINKS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_STUDENT_PARENT_LINKS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_STUDENT_PARENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('UPDATE_STUDENT_PARENT_LINKS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_TEACHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_TEACHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_TEACHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_TEACHERS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_TEACHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_TEACHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_TEACHERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_TEACHERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_TEACHERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_TEACHERS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_TEACHERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_CLASSES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_CLASSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_CLASSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_CLASS_ENROLLMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_CLASS_ENROLLMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_CLASS_ENROLLMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_CLASS_ENROLLMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_CLASS_ENROLLMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_CLASS_ENROLLMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_CLASS_ENROLLMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_CLASS_ENROLLMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_CLASS_ENROLLMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_CLASS_ENROLLMENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_CLASS_ENROLLMENTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_COURSE_SECTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_COURSE_SECTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_COURSE_SECTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_COURSE_SECTIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_COURSE_SECTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_COURSE_SECTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_COURSE_SECTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_COURSE_SECTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_COURSE_SECTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_COURSE_SECTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_COURSE_SECTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_COURSE_SECTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_COURSE_SECTIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_TIMETABLE_ENTRIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_ATTENDANCE_SESSIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_ATTENDANCE_RECORDS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_ASSIGNMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_ASSIGNMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_ASSIGNMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('CREATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_ASSIGNMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_SUBMISSIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_SUBMISSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_SUBMISSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('CREATE_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_SUBMISSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_SUBMISSIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_GRADE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_GRADE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_GRADE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_GRADE_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_GRADE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_GRADE_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_GRADE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_GRADE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_GRADE_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('CREATE_GRADE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_GRADE_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_GRADE_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_GRADE_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_GRADE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_GRADE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_GRADE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_GRADE_RECORDS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_GRADE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_GRADE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_GRADE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_GRADE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_GRADE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('CREATE_GRADE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_GRADE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_GRADE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_GRADE_RECORDS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_ANNOUNCEMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_MESSAGES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('CREATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('CREATE_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_MESSAGES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('UPDATE_MESSAGES') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_MESSAGE_RECIPIENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('CREATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_MESSAGE_RECIPIENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('UPDATE_MESSAGE_RECIPIENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('READ_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('UPDATE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('DELETE_EVENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('READ_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('UPDATE_EVENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('READ_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('UPDATE_EVENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('READ_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('UPDATE_EVENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('READ_EVENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('UPDATE_EVENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("DistrictOperationsLead"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("SchoolOperationsManager"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("AcademicCoordinator"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("TeacherLead"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("FamilyLiaison"), permissionId: getId('CREATE_SEARCH') },
        
      
      
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_USERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SCHOOLS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SCHOOLS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SCHOOLS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SCHOOLS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CAMPUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CAMPUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CAMPUSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CAMPUSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ACADEMIC_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ACADEMIC_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ACADEMIC_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ACADEMIC_YEARS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TERMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TERMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TERMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TERMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GRADE_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GRADE_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GRADE_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GRADE_LEVELS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SUBJECTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ROOMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ROOMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STUDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STUDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STUDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STUDENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PARENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PARENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PARENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PARENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_STUDENT_PARENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_STUDENT_PARENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_STUDENT_PARENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_STUDENT_PARENT_LINKS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TEACHERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TEACHERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TEACHERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TEACHERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CLASSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CLASSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CLASSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CLASSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_CLASS_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CLASS_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CLASS_ENROLLMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CLASS_ENROLLMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_COURSE_SECTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_COURSE_SECTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_COURSE_SECTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_COURSE_SECTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_TIMETABLE_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_TIMETABLE_ENTRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ATTENDANCE_SESSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ATTENDANCE_RECORDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_SUBMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GRADE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GRADE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GRADE_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GRADE_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_GRADE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_GRADE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_GRADE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_GRADE_RECORDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_ANNOUNCEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ANNOUNCEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ANNOUNCEMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MESSAGES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MESSAGES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_MESSAGE_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_MESSAGE_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_MESSAGE_RECIPIENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_MESSAGE_RECIPIENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EVENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EVENTS') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_API_DOCS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_SEARCH') },
    ]);


  await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("SuperAdmin")}' WHERE "email"='super_admin@flatlogic.com'`);
  await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("Administrator")}' WHERE "email"='admin@flatlogic.com'`);
  
   
      
      
        
        
           await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("DistrictOperationsLead")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("SchoolOperationsManager")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

