Files
yourpart3/backend/utils/initializeSettings.js
Torsten Schulz (local) 16703f467f
All checks were successful
Deploy to production / deploy (push) Successful in 2m53s
feat(falukant): add character visual representation and settings
- Introduced FalukantCharacterVisual component to display character portraits and 3D figures based on user settings.
- Updated DirectorInfo, ChurchView, PoliticsView, and other components to utilize the new character visual component.
- Added visual settings management for users, allowing selection between portrait styles and display modes (portraits, 3D, or both).
- Implemented age rules for engagement and marriage in the backend, ensuring compliance with specified age limits.
- Created a new settings view for Falukant to manage visual preferences.
- Added new images for medieval character portraits.
- Updated translations for new settings and features in multiple languages.
2026-07-24 10:55:19 +02:00

35 lines
995 B
JavaScript
Executable File

import SettingsType from "../models/type/settings.js";
const initializeSettings = async () => {
await SettingsType.findOrCreate({
where: { name: 'personal' },
defaults: { name: 'personal' }
});
await SettingsType.findOrCreate({
where: { name: 'view' },
defaults: { name: 'view' }
});
await SettingsType.findOrCreate({
where: { name: 'sexuality' },
defaults: { name: 'sexuality' }
});
await SettingsType.findOrCreate({
where: { name: 'flirt' },
defaults: { name: 'flirt' }
});
await SettingsType.findOrCreate({
where: { name: 'account' },
defaults: { name: 'account' }
});
await SettingsType.findOrCreate({
where: { name: 'languageAssistant' },
defaults: { name: 'languageAssistant' }
});
await SettingsType.findOrCreate({
where: { name: 'falukant' },
defaults: { name: 'falukant' }
});
};
export default initializeSettings;