fix(nextgen): seed missing sysadmin@school.com user
Build and Push Docker Images / build (api) (push) Successful in 2m26s Details
Build and Push Docker Images / build (musicseerr) (push) Successful in 7m21s Details
Build and Push Docker Images / build (web) (push) Successful in 1m32s Details
Build and Push Docker Images / build (nextgen) (push) Successful in 7m51s Details
Build and Push Docker Images / build (worker) (push) Successful in 10m9s Details
Build and Push Docker Images / deploy (push) Successful in 23s Details

This commit is contained in:
fchinembiri 2026-08-12 05:01:49 +02:00
parent dfa2cfd783
commit c6a3776332
2 changed files with 2 additions and 0 deletions

View File

@ -75,6 +75,7 @@ function runPrimarySchoolSeed(dbInstance) {
`);
const coreUatUsers = [
{ uid: 'uid-sysadmin', email: 'sysadmin@school.com', role: 'systems_admin',first_name: 'Systems', last_name: 'Admin', pwd: defaultPwdHash, phone: '+263771000000' },
{ uid: 'uid-superadmin', email: 'superadmin@school.com', role: 'school_admin', first_name: 'Super', last_name: 'Admin', pwd: defaultPwdHash, phone: '+263771000001' },
{ uid: 'uid-admin', email: 'admin@school.com', role: 'school_admin', first_name: 'System', last_name: 'Admin', pwd: defaultPwdHash, phone: '+263771000002' },
{ uid: 'uid-principal', email: 'principal@school.com', role: 'principal', first_name: 'Tendai', last_name: 'Moyo', pwd: princPwdHash, phone: '+263771000003' },

View File

@ -11,6 +11,7 @@ async function seedUsersAndStaff(db) {
const hashPrinc = bcrypt.hashSync('principal123', 4);
const users = [
{ uid: 'uid-sysadmin', email: 'sysadmin@school.com', first_name: 'Systems', last_name: 'Admin', role: 'systems_admin',password: hashDefault },
{ uid: 'uid-admin', email: 'admin@school.com', first_name: 'System', last_name: 'Admin', role: 'school_admin', password: hashDefault },
{ uid: 'uid-principal', email: 'principal@school.com', first_name: 'Tendai', last_name: 'Moyo', role: 'principal', password: hashPrinc },
{ uid: 'uid-teacher', email: 'teacher@school.com', first_name: 'Blessing', last_name: 'Chiwenga', role: 'teacher', password: hashTeacher },