snapshot: preserve branding foundation and platform owner split

This commit is contained in:
Md Bayazid Bostame
2026-03-26 11:43:54 +01:00
parent 8926d6860c
commit 51700cfa8b
22 changed files with 966 additions and 242 deletions

View File

@@ -0,0 +1,33 @@
# Generated by Django 5.1.5 on 2026-03-26 10:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('workflows', '0035_workflowconfig_remote_backup_enabled_and_more'),
]
operations = [
migrations.CreateModel(
name='PortalBranding',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(default='Default', max_length=80, unique=True)),
('portal_title', models.CharField(default='TUBCO Onboarding & Offboarding Portal', max_length=255)),
('company_name', models.CharField(default='TUBCO', max_length=255)),
('support_email', models.EmailField(blank=True, default='info@tub.co', max_length=254)),
('default_language', models.CharField(choices=[('de', 'Deutsch'), ('en', 'English')], default='de', max_length=10)),
('logo_image', models.ImageField(blank=True, null=True, upload_to='branding/')),
('pdf_letterhead', models.FileField(blank=True, null=True, upload_to='branding/')),
('primary_color', models.CharField(blank=True, default='#000078', max_length=20)),
('secondary_color', models.CharField(blank=True, default='#c0002b', max_length=20)),
('updated_at', models.DateTimeField(auto_now=True)),
],
options={
'verbose_name': 'Portal Branding',
'verbose_name_plural': 'Portal Branding',
},
),
]

View File

@@ -0,0 +1,24 @@
# Generated by Django 5.1.5 on 2026-03-26 10:25
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('workflows', '0036_portalbranding'),
]
operations = [
migrations.AlterField(
model_name='portalbranding',
name='logo_image',
field=models.FileField(blank=True, null=True, upload_to='branding/', validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['svg', 'png', 'jpg', 'jpeg', 'webp'])]),
),
migrations.AlterField(
model_name='portalbranding',
name='pdf_letterhead',
field=models.FileField(blank=True, null=True, upload_to='branding/', validators=[django.core.validators.FileExtensionValidator(allowed_extensions=['pdf'])]),
),
]