bmc_hub/migrations/079_email_templates.sql
Christian 56d6d45aa2 feat(sag): Add Varekøb & Salg module with database migration and frontend template
- Created a new SQL migration for the sag_salgsvarer table to manage sales and purchase items.
- Implemented a new HTML template for the Varekøb & Salg module, including summary cards and tables for sales and purchases.
- Added JavaScript functions for loading and rendering order data dynamically.
- Introduced a new backend search module for customers, contacts, hardware, and locations with autocomplete functionality.
- Developed an email templates API for managing system and customer-specific email templates.
- Created multiple migrations for Nextcloud instances, cache, audit logs, email templates, sag comments, hardware locations, and billing methods.
- Enhanced the sag module with solutions, order lines, work types, and 2FA support for user authentication.
2026-02-02 20:23:56 +01:00

39 lines
963 B
SQL

-- Migration: 079_email_templates
-- Created: 2026-02-01
INSERT INTO settings (key, value, category, description, value_type, is_public)
VALUES
(
'email_template_internal_subject',
'Intern besked fra BMC Hub',
'email_templates',
'Intern email emne',
'string',
false
),
(
'email_template_internal_body',
'Hej team,\n\n[Indsæt besked]\n\n--\nBMC Hub',
'email_templates',
'Intern email skabelon',
'text',
false
),
(
'email_template_external_subject',
'Besked fra BMC Networks',
'email_templates',
'Ekstern email emne',
'string',
false
),
(
'email_template_external_body',
'Hej {{customer_name}},\n\n[Indsæt besked]\n\nVenlig hilsen\nBMC Networks',
'email_templates',
'Ekstern email skabelon',
'text',
false
)
ON CONFLICT (key) DO NOTHING;