
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("SuperAdmin"), name: "Super Administrator", createdAt, updatedAt },
      
      
      { id: getId("Administrator"), name: "Administrator", createdAt, updatedAt },
      
      
        
          { id: getId("YayasanManager"), name: "Yayasan Manager", createdAt, updatedAt },
        
          { id: getId("KepalaSekolah"), name: "Kepala Sekolah", createdAt, updatedAt },
        
          { id: getId("TataUsaha"), name: "Tata Usaha", createdAt, updatedAt },
        
          { id: getId("WaliKelas"), name: "Wali Kelas", createdAt, updatedAt },
        
          { id: getId("OrangTua"), name: "Orang Tua", 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","academic_years","education_levels","classes","students","parent_student_links","subjects","class_subjects","timetable_entries","attendance_sessions","attendance_records","announcements","assignments","assignment_submissions","exam_categories","exams","exam_questions","exam_question_choices","exam_attempts","exam_answers","fee_definitions","billing_items","payments","notification_logs",,
    ];
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.bulkUpdate('roles', { globalAccess: true }, { id: getId('SuperAdmin') });


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("YayasanManager"), permissionId: getId('CREATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_USERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_USERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_USERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_ACADEMIC_YEARS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_ACADEMIC_YEARS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_ACADEMIC_YEARS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_ACADEMIC_YEARS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_EDUCATION_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_EDUCATION_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_EDUCATION_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_EDUCATION_LEVELS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_EDUCATION_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_EDUCATION_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_EDUCATION_LEVELS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_EDUCATION_LEVELS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_EDUCATION_LEVELS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_EDUCATION_LEVELS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_CLASSES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_CLASSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_CLASSES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_CLASSES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_STUDENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_STUDENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('CREATE_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_STUDENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_STUDENTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_PARENT_STUDENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_PARENT_STUDENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_PARENT_STUDENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_PARENT_STUDENT_LINKS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_PARENT_STUDENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_PARENT_STUDENT_LINKS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('CREATE_PARENT_STUDENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_PARENT_STUDENT_LINKS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_PARENT_STUDENT_LINKS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_PARENT_STUDENT_LINKS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_PARENT_STUDENT_LINKS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_SUBJECTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_SUBJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_SUBJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_SUBJECTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_CLASS_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_CLASS_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_CLASS_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_CLASS_SUBJECTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_CLASS_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_CLASS_SUBJECTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_CLASS_SUBJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_CLASS_SUBJECTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_CLASS_SUBJECTS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_TIMETABLE_ENTRIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_ATTENDANCE_SESSIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_ATTENDANCE_RECORDS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_ANNOUNCEMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_ANNOUNCEMENTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_ASSIGNMENTS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_ASSIGNMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_ASSIGNMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('CREATE_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_ASSIGNMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_ASSIGNMENTS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('CREATE_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('UPDATE_ASSIGNMENT_SUBMISSIONS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_EXAM_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_EXAM_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_EXAM_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_EXAM_CATEGORIES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_EXAM_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_EXAM_CATEGORIES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_EXAM_CATEGORIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_EXAM_CATEGORIES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_EXAM_CATEGORIES') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_EXAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_EXAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_EXAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_EXAMS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_EXAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_EXAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_EXAMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_EXAMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('CREATE_EXAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_EXAMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_EXAMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_EXAMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_EXAM_QUESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_EXAM_QUESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_EXAM_QUESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_EXAM_QUESTIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_EXAM_QUESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_EXAM_QUESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_EXAM_QUESTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_EXAM_QUESTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('CREATE_EXAM_QUESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_EXAM_QUESTIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_EXAM_QUESTIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_EXAM_QUESTION_CHOICES') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('CREATE_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_EXAM_QUESTION_CHOICES') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_EXAM_ATTEMPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_EXAM_ATTEMPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_EXAM_ATTEMPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_EXAM_ATTEMPTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_EXAM_ATTEMPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_EXAM_ATTEMPTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_EXAM_ATTEMPTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_EXAM_ATTEMPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_EXAM_ATTEMPTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_EXAM_ATTEMPTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('UPDATE_EXAM_ATTEMPTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_EXAM_ANSWERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_EXAM_ANSWERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_EXAM_ANSWERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_EXAM_ANSWERS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_EXAM_ANSWERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_EXAM_ANSWERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_EXAM_ANSWERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_EXAM_ANSWERS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('UPDATE_EXAM_ANSWERS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_EXAM_ANSWERS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_FEE_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_FEE_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_FEE_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_FEE_DEFINITIONS') },
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_FEE_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_FEE_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_FEE_DEFINITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('CREATE_FEE_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_FEE_DEFINITIONS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_FEE_DEFINITIONS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_BILLING_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_BILLING_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_BILLING_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_BILLING_ITEMS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_BILLING_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_BILLING_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('CREATE_BILLING_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_BILLING_ITEMS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_BILLING_ITEMS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_BILLING_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_BILLING_ITEMS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_PAYMENTS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('CREATE_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_PAYMENTS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('UPDATE_PAYMENTS') },
                    
                  
                    
                  
                  
             
          
    
  
    
    
      
      
          
                
                
               
                
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_NOTIFICATION_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('READ_NOTIFICATION_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('UPDATE_NOTIFICATION_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('DELETE_NOTIFICATION_LOGS') },
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('READ_NOTIFICATION_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('UPDATE_NOTIFICATION_LOGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('READ_NOTIFICATION_LOGS') },
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('UPDATE_NOTIFICATION_LOGS') },
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('READ_NOTIFICATION_LOGS') },
                    
                  
                    
                  
                    
                  
                  
                
               
                
                  
                    
                  
                    
                      { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), permissionId: getId('READ_NOTIFICATION_LOGS') },
                    
                  
                    
                  
                    
                  
                  
             
          
    
  
    
     
  
      
      
        
            { createdAt, updatedAt, roles_permissionsId: getId("YayasanManager"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("KepalaSekolah"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("TataUsaha"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("WaliKelas"), permissionId: getId('CREATE_SEARCH') },
        
            { createdAt, updatedAt, roles_permissionsId: getId("OrangTua"), 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_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_EDUCATION_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EDUCATION_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EDUCATION_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EDUCATION_LEVELS') },
    
    { 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_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_PARENT_STUDENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PARENT_STUDENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PARENT_STUDENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PARENT_STUDENT_LINKS') },
    
    { 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_CLASS_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_CLASS_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_CLASS_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_CLASS_SUBJECTS') },
    
    { 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_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_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_ASSIGNMENT_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_ASSIGNMENT_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_ASSIGNMENT_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_ASSIGNMENT_SUBMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXAM_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXAM_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXAM_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXAM_CATEGORIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXAMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXAM_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXAM_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXAM_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXAM_QUESTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXAM_QUESTION_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXAM_QUESTION_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXAM_QUESTION_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXAM_QUESTION_CHOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXAM_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXAM_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXAM_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXAM_ATTEMPTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_EXAM_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_EXAM_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_EXAM_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_EXAM_ANSWERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_FEE_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_FEE_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_FEE_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_FEE_DEFINITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_BILLING_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_BILLING_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_BILLING_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_BILLING_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('CREATE_NOTIFICATION_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('READ_NOTIFICATION_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('UPDATE_NOTIFICATION_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("Administrator"), permissionId: getId('DELETE_NOTIFICATION_LOGS') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_USERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_USERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ROLES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ROLES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PERMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PERMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SCHOOLS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SCHOOLS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SCHOOLS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SCHOOLS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ACADEMIC_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ACADEMIC_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ACADEMIC_YEARS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ACADEMIC_YEARS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EDUCATION_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EDUCATION_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EDUCATION_LEVELS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EDUCATION_LEVELS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CLASSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CLASSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CLASSES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CLASSES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_STUDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_STUDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_STUDENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_STUDENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PARENT_STUDENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PARENT_STUDENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PARENT_STUDENT_LINKS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PARENT_STUDENT_LINKS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_SUBJECTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_CLASS_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_CLASS_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_CLASS_SUBJECTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_CLASS_SUBJECTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_TIMETABLE_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_TIMETABLE_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_TIMETABLE_ENTRIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_TIMETABLE_ENTRIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ATTENDANCE_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ATTENDANCE_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ATTENDANCE_SESSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ATTENDANCE_SESSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ATTENDANCE_RECORDS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ATTENDANCE_RECORDS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ANNOUNCEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ANNOUNCEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ANNOUNCEMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ANNOUNCEMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ASSIGNMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ASSIGNMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_ASSIGNMENT_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_ASSIGNMENT_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_ASSIGNMENT_SUBMISSIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_ASSIGNMENT_SUBMISSIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXAM_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXAM_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXAM_CATEGORIES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXAM_CATEGORIES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXAMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXAMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXAM_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXAM_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXAM_QUESTIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXAM_QUESTIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXAM_QUESTION_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXAM_QUESTION_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXAM_QUESTION_CHOICES') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXAM_QUESTION_CHOICES') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXAM_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXAM_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXAM_ATTEMPTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXAM_ATTEMPTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_EXAM_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_EXAM_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_EXAM_ANSWERS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_EXAM_ANSWERS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_FEE_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_FEE_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_FEE_DEFINITIONS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_FEE_DEFINITIONS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_BILLING_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_BILLING_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_BILLING_ITEMS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_BILLING_ITEMS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_PAYMENTS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_PAYMENTS') },
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_NOTIFICATION_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_NOTIFICATION_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('UPDATE_NOTIFICATION_LOGS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('DELETE_NOTIFICATION_LOGS') },
    
    
    
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('READ_API_DOCS') },
    { createdAt, updatedAt, roles_permissionsId: getId("SuperAdmin"), permissionId: getId('CREATE_SEARCH') },
    
    { 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("YayasanManager")}' WHERE "email"='client@hello.com'`);
        await queryInterface.sequelize.query(`UPDATE "users" SET "app_roleId"='${getId("KepalaSekolah")}' WHERE "email"='john@doe.com'`);
       
      
      

}
};

