feat: add append-only course/user data import and expand user profile
Support uploading structured JSON to create courses, classes, and students without wiping existing data, and merge user name fields while adding gender and registration details from source sheets.
This commit is contained in:
@@ -146,8 +146,7 @@ const seedDatabase = async ({ disconnectOnComplete = false } = {}) => {
|
||||
if (!adminUser) {
|
||||
const passwordHash = await bcrypt.hash(config.SUPERADMIN_PASSWORD, 10);
|
||||
await User.create({
|
||||
name: 'مدیر',
|
||||
surname: 'ارشد',
|
||||
name: 'مدیر ارشد',
|
||||
nationalIdCode: config.SUPERADMIN_NATIONAL_ID,
|
||||
phoneNumber: config.SUPERADMIN_PHONE,
|
||||
email: config.SUPERADMIN_EMAIL || undefined,
|
||||
|
||||
Reference in New Issue
Block a user