mirror of
https://github.com/narrrl/holy-flavor-rater.git
synced 2026-11-03 16:41:27 +01:00
added missing migrations and finished admin feature implementation
This commit is contained in:
1 parent
be61b6bbcd
commit
cb2356c4e4
1 file changed
+40
@@ -0,0 +1,40 @@
|
||||
# Generated by Django 6.0.2 on 2026-02-19 16:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api', '0027_alter_notification_notification_type'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Job',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('name', models.CharField(choices=[('sync_flavors', 'Sync Shopify Flavors'), ('cleanup_duplicates', 'Cleanup Duplicate Flavors'), ('backup_db', 'Database Backup'), ('seed_legacy', 'Seed Legacy Data')], max_length=100)),
|
||||
('status', models.CharField(choices=[('pending', 'Pending'), ('running', 'Running'), ('completed', 'Completed'), ('failed', 'Failed')], default='pending', max_length=20)),
|
||||
('last_run', models.DateTimeField(blank=True, null=True)),
|
||||
('next_run', models.DateTimeField(blank=True, null=True)),
|
||||
('interval_hours', models.IntegerField(default=0, help_text='Set to 0 to disable periodic run.')),
|
||||
('last_output', models.TextField(blank=True)),
|
||||
('error_message', models.TextField(blank=True)),
|
||||
],
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SystemConfig',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('site_name', models.CharField(default='Holy Flavors Archive', max_length=100)),
|
||||
('maintenance_mode', models.BooleanField(default=False)),
|
||||
('allow_new_signups', models.BooleanField(default=True)),
|
||||
('require_email_verification', models.BooleanField(default=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'System Configuration',
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in new issue
Block a user