36 lines
1.7 KiB
Python
36 lines
1.7 KiB
Python
# Generated by Django 5.2.7 on 2026-04-15 14:17
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='PostizInstallBrief',
|
|
fields=[
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('title', models.CharField(max_length=120)),
|
|
('public_url', models.URLField(help_text='Public URL where the reverse proxy will expose Postiz.')),
|
|
('node_version', models.CharField(choices=[('18 LTS', '18 LTS'), ('20 LTS', '20 LTS'), ('22 Current', '22 Current')], default='20 LTS', max_length=20)),
|
|
('package_manager', models.CharField(choices=[('pnpm', 'pnpm'), ('npm', 'npm')], default='pnpm', max_length=10)),
|
|
('postgres_ready', models.BooleanField(default=False)),
|
|
('redis_ready', models.BooleanField(default=False)),
|
|
('temporal_ready', models.BooleanField(default=False)),
|
|
('email_provider', models.CharField(choices=[('none', 'Skip for now'), ('resend', 'Resend'), ('smtp', 'SMTP / Nodemailer')], default='none', max_length=20)),
|
|
('upload_strategy', models.CharField(choices=[('local', 'Local uploads'), ('r2', 'Cloudflare R2'), ('later', 'Decide later')], default='local', max_length=20)),
|
|
('notes', models.TextField(blank=True)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
],
|
|
options={
|
|
'ordering': ['-updated_at'],
|
|
},
|
|
),
|
|
]
|