mirror of
https://github.com/house-of-vanity/OutFleet.git
synced 2025-08-21 14:37:16 +00:00
Force sync and purge
This commit is contained in:
@@ -1,46 +0,0 @@
|
||||
# Generated manually for TaskExecutionLog model
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('vpn', '0001_initial'), # This might need to be adjusted
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='TaskExecutionLog',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('task_id', models.CharField(help_text='Celery task ID', max_length=255)),
|
||||
('task_name', models.CharField(help_text='Task name', max_length=100)),
|
||||
('action', models.CharField(help_text='Action performed', max_length=100)),
|
||||
('status', models.CharField(choices=[('STARTED', 'Started'), ('SUCCESS', 'Success'), ('FAILURE', 'Failure'), ('RETRY', 'Retry')], default='STARTED', max_length=20)),
|
||||
('message', models.TextField(help_text='Detailed execution message')),
|
||||
('execution_time', models.FloatField(blank=True, help_text='Execution time in seconds', null=True)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('server', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='vpn.server')),
|
||||
('user', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='vpn.user')),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Task Execution Log',
|
||||
'verbose_name_plural': 'Task Execution Logs',
|
||||
'ordering': ['-created_at'],
|
||||
},
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='taskexecutionlog',
|
||||
index=models.Index(fields=['task_id'], name='vpn_taskexe_task_id_e7f4b1_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='taskexecutionlog',
|
||||
index=models.Index(fields=['created_at'], name='vpn_taskexe_created_c4a9b5_idx'),
|
||||
),
|
||||
migrations.AddIndex(
|
||||
model_name='taskexecutionlog',
|
||||
index=models.Index(fields=['status'], name='vpn_taskexe_status_1b2c3d_idx'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user