first commit
This commit is contained in:
30
monitor/migrations/0003_systemstatus.py
Normal file
30
monitor/migrations/0003_systemstatus.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 6.0 on 2025-12-09 21:49
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('monitor', '0002_marketanalysis'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='SystemStatus',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||||
('last_hourly_update', models.DateTimeField(blank=True, null=True)),
|
||||
('last_successful_fetch', models.DateTimeField(blank=True, null=True)),
|
||||
('current_price', models.DecimalField(blank=True, decimal_places=2, max_digits=20, null=True)),
|
||||
('last_error', models.TextField(blank=True)),
|
||||
('is_stale', models.BooleanField(default=True)),
|
||||
('is_healthy', models.BooleanField(default=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name_plural': 'System Statuses',
|
||||
'ordering': ['-timestamp'],
|
||||
},
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user